JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 

Deployment on Open Liberty

From JPPF 6.2 Documentation

Jump to: navigation, search

Contents

Main Page > J2EE Connector > Deployment > Deployment on Open Liberty


1 Deploying the JPPF resource adapter

1) copy the file jppf_ra_OpenLiberty.rar in this folder: <OPEN_LIBERTY_HOME>/usr/servers/<server>, where <OPEN_LIBERTY_HOME> is the root installation folder for Open Liberty, and <server> is the name of the server profile you are using.

2) add the following features to your server.xml:

<featureManager>
  <feature>jndi-1.0</feature>
  <feature>jca-1.7</feature>
</featureManager>

3) In the server.xml file, configure the resource adapter as follows:

<resourceAdapter id="jppf_ra" location="${server.config.dir}/jppf_ra_OpenLiberty.rar">
  <classloader apiTypeVisibility="spec,ibm-api,api,stable,third-party"/>
</resourceAdapter>

4) In the server.xml file, configure the JPPF connection factory as follows:

<connectionFactory jndiName="eis/JPPFConnectionFactory">
  <properties.jppf_ra ConfigurationSource="classpath|jppf.properties"/>
</connectionFactory> 

2 Deploying the demo application

1) copy the file JPPF_J2EE_Demo_OpenLiberty.ear to <OPEN_LIBERTY_HOME>/usr/servers/<server>/apps

2) add the following feature to your server.xml:

<featureManager>
  <feature>jsp-2.3</feature>
</featureManager>

3) configure the enterprise application in your server .xml:

<application type="ear" id="JPPF_J2EE_Demo_OpenLiberty"
  location="JPPF_J2EE_Demo_OpenLiberty.ear" name="JPPF_J2EE_Demo_OpenLiberty">
  <classloader classProviderRef="jppf_ra"
    apiTypeVisibility="spec,ibm-api,api,stable,third-party"/>
</application>

Important: the value of the classProviderRef attribute in the class loader declaration of the application, must match exactly the value of the resource adapter's id attribute, otherwise the application will not be able to access the JPPF classes.

3 Full working server.xml example

<?xml version="1.0" encoding="UTF-8"?>
<server description="JPPF server">
  <featureManager>
    <feature>jndi-1.0</feature>
    <feature>jsp-2.3</feature>
    <feature>jca-1.7</feature>
  </featureManager>

  <httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9080" httpsPort="9443" />

  <!-- Do not automatically expand WAR files and EAR files -->
  <applicationManager autoExpand="false"/>

  <!-- Deployment of the JPPF demo application -->
  <application type="ear" id="JPPF_J2EE_Demo_OpenLiberty"
    location="JPPF_J2EE_Demo_OpenLiberty.ear" name="JPPF_J2EE_Demo_OpenLiberty">
    <classloader classProviderRef="jppf_ra" apiTypeVisibility="spec,ibm-api,api,stable,third-party"/>
  </application>

  <!--
  Deployment of the JPPF resource adapter.
  The .rar file is assumed to be in the same directory as this server.xml
  -->
  <resourceAdapter id="jppf_ra" location="${server.config.dir}/jppf_ra_OpenLiberty.rar">
    <classloader apiTypeVisibility="spec,ibm-api,api,stable,third-party"/>
  </resourceAdapter>

  <!-- Configuration of the JPPF connection factory -->
  <connectionFactory jndiName="eis/JPPFConnectionFactory">
    <properties.jppf_ra ConfigurationSource="classpath|jppf.properties"/>
  </connectionFactory> 
</server>
Main Page > J2EE Connector > Deployment > Deployment on Open Liberty



JPPF Copyright © 2005-2020 JPPF.org Powered by MediaWiki