beautypg.com

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

Page 91

background image

ServerUrl
java.lang.String
tcp://localhost:61616

Change the authentication details : Username

UserName
java.lang.String
system

Change the authentication details : Password

Password
java.lang.String
manager

4.

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

Change the URL to point to the NSMQ listen URL

tcp://localhost:61616

Change the client ID

NSASJ

Change the authentication details : Username

system

Change the authentication details : Password

manager

Map the JNDI names with the physical names of destinations to be used by

element.

For example,

jndi-name="java:jboss/activemq/queue/outbound">
QUEUE.OUTBOUND

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

This manual is related to the following products: