Integrations for web container, Invoking ejbs, Integrations for web – HP Integrity NonStop H-Series User Manual

Page 91

Advertising
background image

<config-property-name>ServerUrl</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>tcp://localhost:61616</config-property-value>

Change the authentication details : Username

<config-property-name>UserName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>system</config-property-value>

Change the authentication details : Password

<config-property-name>Password</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>manager</config-property-value>

4.

Open the <temp>/META-INF/ironjacamar.xml and change the following properties in
the <connection-definition> element:

Change the URL to point to the NSMQ listen URL

<config-property name="ServerURL">tcp://localhost:61616</config-property>

Change the client ID

<config-property name="ClientId">NSASJ</config-property>

Change the authentication details : Username

<config-property name="Username">system</config-property>

Change the authentication details : Password

<config-property name="Password">manager</config-property>

Map the JNDI names with the physical names of destinations to be used by
<admin-objects>

element.

For example,

<admin-object classname="org.apache.activemq.command.ActiveMQQueue"
jndi-name="java:jboss/activemq/queue/outbound"> <config-property name="PhysicalName">
QUEUE.OUTBOUND</config-property></admin-object>

Integrations for Web Container

Invoking EJBs

NSASJ allows Servlets and EJBs to be deployed. It also provides actual isolation of classes due to
its modular class loading architecture. The default isolation levels can be changed through
configuration. To allow Servlets in the web container to invoke EJBs deployed in the NSASJ instance’s
EJB container, the EJBs must not be isolated from the Servlets. This is achieved either by packaging
them together in an EAR or by making sure that the EJB interface is available for the Servlet.

The best practice is to have all APIs and Interfaces in a separate jar and make it as a dependency
for the web application, so that the modules are looked up. The lookup can be through JNDI lookup
or through CDI using annotations such as @EJB. There are no specific configuration changes to
NSASJ’s domain.xml.

Integrations for Web Container

91

Advertising
This manual is related to the following products: