Java Web Start에 대해 애플리케이션 클라이언트 런타임 종속성 컴포넌트 준비

JWS(Java™ Web Start)를 사용하여 Java EE(Java Platform, Enterprise Edition) 애플리케이션 클라이언트 애플리케이션, 씬 애플리케이션 클라이언트 애플리케이션 또는 둘 다를 실행하려면 IBM®이 제공하는 Java Runtime Environment 구현 JAR(Java Archive), 라이브러리 JAR 파일 및 WebSphere® Application Server용 애플리케이션 클라이언트에 번들링된 특성 파일이 JWS에 설치되어 있어야 합니다. 애플리케이션 클라이언트 설치에서 애플리케이션 클라이언트 런타임 종속성 컴포넌트를 빌드하기 위한 단계를 학습하십시오. 이는 애플리케이션 서버에 설치할 수 있는 웹 애플리케이션 아카이브(WAR) 파일로 패키지됩니다.

시작하기 전에

클라이언트 애플리케이션이 배치하는 운영 체제에 대한 WebSphere Application Server용 애플리케이션 클라이언트를 설치하십시오. 여러 운영 체제에 클라이언트 애플리케이션을 배치하기 위한 요구사항이 있는 경우 클라이언트 애플리케이션이 지원하는 각 운영 체제에 대해 애플리케이션 클라이언트 런타임 종속성 컴포넌트를 별도로 빌드해야 합니다.

[Windows][Linux]예를 들면, 클라이언트 애플리케이션이 Windows 운영 체제 및 Linux 운영 체제 모두에 배치하는 경우 Windows용 WebSphere Application Server의 애플리케이션 클라이언트가 설치된 Windows 운영 체제에 애플리케이션 클라이언트 런타임 종속성 컴포넌트를 빌드하는 태스크의 단계를 수행해야 합니다. 그리고 나서, Linux용 WebSphere Application Server의 애플리케이션 클라이언트가 설치된 Linux 운영 체제에서 Linux용 애플리케이션 클라이언트 런타임 종속성 컴포넌트를 빌드하기 위해 이 태스크에 대해 단계를 반복하십시오.

프로시저

  1. 클라이언트 애플리케이션 지원 운영 체제에 대해 WebSphere Application Server용 애플리케이션 클라이언트를 설치하십시오.

    [Windows]C:\Program Files\IBM\WebSphere\AppClient 디렉토리에서 애플리케이션 클라이언트를 설치하십시오.

  2. 디렉토리를 설치 bin 디렉토리로 변경하십시오.
    [Windows]Windows 운영 체제에서, 디렉토리는 다음과 같습니다.
    CD C:\Program files\IBM\WebSphere\AppClient\bin
  3. buildClientRuntime 도구를 실행하여 애플리케이션 클라이언트 설치의 SSL 키 저장소 및 신뢰 저장소 파일, Java Standard Edition Runtime Environment, 런타임 라이브러리 JAR 파일 및 특성 파일을 포함하는 애플리케이션 클라이언트 런타임 라이브러리 JAR 파일을 생성하십시오.
    [Windows]예를 들어, 버전 7.0을 사용하고 애플리케이션 클라이언트 설치에 포함된 테스트 인증서를 사용하는 경우:
    buildClientRuntime C:\WebApp1\runtime\WASClient7.0_windows.jar ..\etc\DummyClientKeyFilejar WebAS 
    "websphere dummy client" JKS
  4. 애플리케이션 클라이언트 설치의 특성 디렉토리에 있는 특성 파일을 지정된 위치에서 properties.jar 파일로 패키징하려면 buildClientLibJars 도구를 실행하십시오. buildClientLibJars 도구는 또한 WebSphereClientLauncher.jar 파일 및 WebSphereClientRuntimeInstaller.jar 파일을 애플리케이션 클라이언트 설치에서 지정된 위치로 복사합니다. 지정된 위치의 모든 jar 파일은 제공된 인증서로 서명됩니다.
    예를 들어, 버전 7.0을 사용하고 애플리케이션 클라이언트 설치에 포함된 테스트 인증서를 사용하는 경우:
    buildClientLibJars C:\Temp\webstart ..\etc\DummyClientKeyFilejar WebAS "websphere dummy client" JKS
  5. JSP(JavaServer Pages) 파일을 작성하거나 서블릿을 통해 애플리케이션 클라이언트 런타임 설치 프로그램 JNLP(Java Network Launching Protocol) 디스크립터를 생성하여 Java Web Start 요청에 응답하십시오. 애플리케이션 클라이언트 설치에서 Java Web Start 배치 샘플을 참조하십시오.
  6. 애플리케이션 클라이언트 런타임 설치 프로그램 JNLP 디스크립터 생성을 위한 두 개의 서명된 JAR 파일 WASClient7.0_windows.jarWebSphereClientRuntimeInstaller.jar을 웹 애플리케이션 아카이브(WAR) 파일로 패키징하십시오. 이 WAR 파일은 애플리케이션 서버에 배치될 수 있는 EAR 파일로 패키징됩니다. 애플리케이션 클라이언트 설치에서 Java Web Start 배치 샘플을 참조하십시오.

결과

웹 애플리케이션은 애플리케이션 클라이언트 런타임 및 JRE 환경에 서비스를 제공한 준비가 되었습니다.

<!-- This sample program applies to WebSphere Application Server, Version 6.1.
It is provided AS IS and may be used, executed, copied and modified 
without royalty payment by customer (a) for its own instruction and study, (b) in order 
to develop applications designed to run with an IBM WebSphere product, either for customer's 
own internal use or for redistribution by customer, as part of such an application, in 
customer's own products.

Product 5630-A36,  (C) COPYRIGHT International Business Machines Corp., 2005
All Rights Reserved * Licensed Materials - Property of IBM
-->

<%-- // to set the Last_Modified header so that the JNLP client will know whether to download
     // the JNLP file again and update the cached copy.
     String jspPath = application.getRealPath(request.getServletPath());
     java.io.File jspFile = new java.io.File(jspPath);
     long lastModified = jspFile.lastModified();
%><%    
      // locally declared variables
      String url=request.getRequestURL().toString(); 
      String jnlpCodeBase=url.substring(0,url.lastIndexOf('/'));
      String jnlpRefURL=url.substring(url.lastIndexOf('/')+1,url.length());

      // Need to set a JNLP mime type - if WebStart is installed on the client,
      // this header will induce the browser to drive the WebStart Client
      response.setContentType("application/x-java-jnlp-file");                            1
      response.setHeader("Cache-Control", null);
      response.setHeader("Set-Cookie", null);
      response.setHeader("Vary", null);
      response.setDateHeader("Last-Modified", lastModified);

      // An installer must reply with the version number for a given install
      if (response.containsHeader("x-java-jnlp-version-id"))
        response.setHeader("x-java-jnlp-version-id", "WASClient6.1.0");               2
      else
        response.addHeader("x-java-jnlp-version-id", "WASClient6.1.0");
%>
     
<?xml version="1.0" encoding="utf-8"?>

<!-- ============================================================== -->
<!-- TODO: change "codebase" to the actual url location of this jsp -->
<!-- ============================================================== -->

<jnlp spec="1.0+"
codebase="http://YOUR_APP_SERVER:PORTNUMBER/WEBAPP_CONTEXT_ROOT/Runtime/WebSphereJre">

<information>
  <title>Application Client Java Runtime Environment</title>
  <vendor>IBM</vendor>
  <icon href="icon.gif"/>
  <description>Application Client Java Runtime Environment</description>
  <description kind="short">Application Client JRE</description>
  <description kind="tooltip">Application Client JRE</description>
  <offline-allowed/>
</information>

<security>
	<all-permissions/>
</security>

	<resources>
		<j2se version="1.4+"/><%-- The installer can use any 1.4 JRE --%> 3
 		<jar href="WebSphereClientRuntimeInstaller.jar" main="true"/>	4		

				<!-- JRE version registration with Web Start -->
		<property name="com.ibm.websphere.client.jre.version" value="WASClient6.1.0"/>	5	
	</resources>

	<resources os="Windows">	6	
<!-- ============================================================== -->
<!-- TODO: the property value for UNIX platform is "java/jre/bin/javaw" -->
<!--   and the "os" value match to your target client machine platform             -->
<!-- ============================================================== -->

			<jar href="WASClient6.1.0_Windows.jar"/>	7	
	
<!-- ============================================================== -->
<!-- TODO:  property value for UNIX platform is "java/jre/bin/javaw" -->
<!-- ============================================================== -->
<!-- relative path of the jre executable —->

						<property name="com.ibm.websphere.client.jre.launch.java"
	value="java\jre\bin\javaw.exe"/>	8	
	
	</resources>
		<installer-desc main-class="com.ibm.websphere.client.installer.ClientRuntimeInstaller"/>
</jnlp>
  1. 파일은 브라우저가 JNLP 파일을 처리할 수 있도록 JNLP MIME 유형임을 지정합니다.
  2. HTTP 헤더 필드 x-java-jnlp-version-id를 설정하여 응답에 이 애플리케이션 클라이언트 런타임 종속성 컴포넌트의 정확한 버전을 지정합니다.
  3. 설치 프로그램을 실행하는 데 필요한 JRE 버전을 지정합니다.
  4. ClientRuntimeInstaller 클래스를 포함하는 설치기 WebSphereClientRuntimeInstaller.jar 파일을 지정합니다.
  5. 애플리케이션 클라이언트 런타임 종속성 컴포넌트 버전을 정의하는 시스템 특성을 지정합니다. 이 버전은 JNLP 클라이언트에 필요합니다.
  6. 특정 플랫폼의 자원을 지정합니다. 지원되는 각 클라이언트 애플리케이션 플랫폼에는 별도의 자체 JAR 파일이 필요합니다.
  7. 애플리케이션 클라이언트 런타임 종속성 컴포넌트 JAR 파일을 지정합니다.
  8. 클라이언트 애플리케이션의 JVM을 시작하는 호출의 프로그램을 지정합니다.

주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tcli_jrerun
파일 이름:tcli_jrerun.html