Problem:
- Product: BES5.x
When the same EJB is deployed to >1 partition, how can a client access the EJB in a specific partition?
Assuming the same JNDI name is used for the EJB in all partitions.
Resolution:
The default behavior is client will contact the OSAgent and will be directed to the EJB in different partitions on a round-robin basis.
Example:
First Client ---> EJB A inside Partition X
Second Client ---> EJB A inside Partition Y
To restrict the clients to access EJB A inside Partition X only, the clients will have to bootstrap to the Naming Service of Partition X.
1. Open BES Console
2. Right click on Partition X, select "VisiBroker" tab, Click on "Advanced" button
3. Add this line to the vbroker.properties file that pops up (To fix the port no of the naming service)
vbroker.se.iiop_tp.scm.iiop_tp.listener.port=20002
4. Add this to the client startup parameters.
-DORBInitRef=NameService=iioploc://1.2@hostname:20002/NameService
#bootstrap
#Security
#EJB
#VisiBroker