1 Reply Latest reply: Apr 18, 2012 10:06 AM by Nikos Massios RSS

Setting the Default Remote Interface

Nikos Massios Novice

 

Dear all,

 

We are using JBoss 5.1 EAP. We have an EJB that needs to be started several times on the same server in different EARs. The problem we have is that when the EJB is started it binds to a set of JNDI names. The name it uses for the Default Remote Business Interface is not qualified by the EAR name. This causes problems when multiple instances of the same EJB have to be started in the server. The EJB unfortunately is not written by us. Is there a way to override the Default Remote Business Interface without modifying the ejb jar?

 

 

Nikos

 

 

Some logs...

 

15:28:59,528 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=WhiteBureauScorecardsEAR.ear,jar=jrules-res-session-ejb3-JBOSS5.jar,name=IlrStatelessSessionEJB3,service=EJB3

15:28:59,528 INFO  [JBossASKernel]   with dependencies:

15:28:59,528 INFO  [JBossASKernel]   and demands:

15:28:59,528 INFO  [JBossASKernel]     jboss.ejb:service=EJBTimerService

15:28:59,528 INFO  [JBossASKernel]   and supplies:

15:28:59,528 INFO  [JBossASKernel]     Class:ilog.rules.res.session.impl.ejb3.IlrStatelessSessionRemote

15:28:59,528 INFO  [JBossASKernel]     jndi:IlrStatelessSessionEJB3

15:28:59,528 INFO  [JBossASKernel]     jndi:WhiteBureauScorecardsEAR/IlrStatelessSessionEJB3/remote-ilog.rules.res.session.impl.ejb3.IlrStatelessSessionRemote

15:28:59,543 INFO  [JBossASKernel]     Class:ilog.rules.res.session.impl.ejb3.IlrStatelessSessionLocal

15:28:59,543 INFO  [JBossASKernel]     jndi:WhiteBureauScorecardsEAR/IlrStatelessSessionEJB3/local

15:28:59,543 INFO  [JBossASKernel]     jndi:WhiteBureauScorecardsEAR/IlrStatelessSessionEJB3/local-ilog.rules.res.session.impl.ejb3.IlrStatelessSessionLocal

15:28:59,543 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=WhiteBureauScorecardsEAR.ear,jar=jrules-res-session-ejb3-JBOSS5.jar,name=IlrStatelessSessionEJB3,service=EJB3) to KernelDeployment of: jrules-res-session-ejb3-JBOSS5.jar

 

 

 

15:29:00,574 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=WhiteBureauScorecardsEAR.ear,jar=jrules-res-session-ejb3-JBOSS5.jar,name=IlrStatelessSessionEJB3,service=EJB3

15:29:00,574 INFO  [EJBContainer] STARTED EJB: ilog.rules.res.session.impl.ejb3.IlrStatelessSessionEJB3 ejbName: IlrStatelessSessionEJB3

15:29:00,605 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

 

    IlrStatelessSessionEJB3 - EJB3.x Default Remote Business Interface

    WhiteBureauScorecardsEAR/IlrStatelessSessionEJB3/remote-ilog.rules.res.session.impl.ejb3.IlrStatelessSessionRemote - EJB3.x Remote Business Interface

    WhiteBureauScorecardsEAR/IlrStatelessSessionEJB3/local - EJB3.x Default Local Business Interface

    WhiteBureauScorecardsEAR/IlrStatelessSessionEJB3/local-ilog.rules.res.session.impl.ejb3.IlrStatelessSessionLocal - EJB3.x Local Business Interface