33.3. Specific Configuration

JOnAS A embeds JORAM server s0. The jonas-ra.xml descriptor packaged in the joram_for_jonas_ra.rar archive file must provide the following information:

<jonas-config-property>
   <jonas-config-property-name>
      HostName
   </jonas-config-property-name>
   <jonas-config-property-value>
      hostA
   </jonas-config-property-value>
</jonas-config-property>  

The other default settings do not need to be changed.

JOnAS B embedds JORAM server s1. The jonas-ra.xml descriptor packaged in the joram_for_jonas_ra.rar archive file must provide the following properties values:

<jonas-config-property>
    <jonas-config-property-name>
       ServerId
    </jonas-config-property-name>
    <jonas-config-property-value>
       1
    </jonas-config-property-value>
</jonas-config-property>
<jonas-config-property>
    <jonas-config-property-name>
       ServerName
    </jonas-config-property-name>
    <jonas-config-property-value>
      s1
    </jonas-config-property-value>
</jonas-config-property>
<jonas-config-property>
    <jonas-config-property-name>
       HostName
    </jonas-config-property-name>
    <jonas-config-property-value>
       hostB
    </jonas-config-property-value>
</jonas-config-property>

The other default settings do not need to be changed.

The shared queue is hosted by JORAM server s1. You then need to declare it in JOnAS B's joram-admin.cfg file as follows:

Queue   scn:comp/sharedQueue

The scn:comp/ prefix is a standard way to specify which JNDI provider should be used. In this case, the shared queue is bound to JORAM's distributed JNDI server, and may be retrieved from both JOnAS A and JOnAS B. To provide this mechanism, both JOnAS servers must provide access to a standard jndi.properties file. For JOnAS A, the file looks as follows, and should be put in its conf/ directory:

java.naming.factory.url.pkgs    
   org.objectweb.jonas.naming:fr.dyade.aaa.jndi2
scn.naming.factory.host         hostA
scn.naming.factory.port         16400

For JOnAS B, the file looks as follows, and should be put in the right conf/ directory:

java.naming.factory.url.pkgs    
   org.objectweb.jonas.naming:fr.dyade.aaa.jndi2
scn.naming.factory.host         hostB
scn.naming.factory.port         16400