[jboss-user] [JNDI and Naming] - Issue with HA JNDI

Maurizio Moscatelli do-not-reply at jboss.com
Mon Jan 10 18:03:13 EST 2011

Maurizio Moscatelli [http://community.jboss.org/people/topizio] created the discussion

"Issue with HA JNDI"

To view the discussion, visit: http://community.jboss.org/message/579887#579887

Hi guys,

    I'm trying to build an develop environment with two JBoss AS in cluster mode balanced via Apache mod_jk to deploy an EAR application with two WAR and two MDBs in HA mode.

Unfortunately something goes wrong because when one server is online the application run correctly. When the second server enter in the cluster it's unable to reach the MDBs defined in the master node. Every time I've got the exception *javax.naming.NameNotFoundException: queue not bound.*

As the guide said I left untouched the *jndi.properties* and I've changed the each jboss.xml as the follows:

*             <res-ref-name>queue/Engine</res-ref-name>*
*             <jndi-name>jnp://localhost:1100/queue/Engine</jndi-name>*

and each ejb-jar.xml as the follows:

<ejb-jar >
   <description><![CDATA[No Description.]]></description>
      <message-driven >
         <description><![CDATA[Bean to access messages]]></description>
*         <ejb-name>Engine</ejb-name>* 
*         <ejb-class>com.web.ejb.engine.EngineBean</ejb-class>*
*            <destination-type>javax.jms.Queue</destination-type>*
*             <res-type>javax.jms.Queue</res-type>*
*             <res-ref-name>queue/Engine</res-ref-name>*
*             <res-auth>Container</res-auth>*

I've tried to query the service *JNDIView* in jmx-console and HA-JNDI Namespace is still empty.

Have somebody got any idea?

Thanks a lot for your attention.

Best regards

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110110/50a2ac29/attachment-0001.html 

More information about the jboss-user mailing list