I'm having a bit of trouble load balancing my message producing SSBs and my 
MDBs under jboss 4.2.1.  I have got a singleton JMS successfully switching 
between nodes when I shut the active one down so hopefully I'm almost there.

However, my SSBs fail when trying to get the connection factory for the queue 
if they are not on the node running the jms instance.  These a re EJB3 beans, 
the connection factory for my SSB is injected via

@Resource(mappedName="ConnectionFactory")
  | private QueueConnectionFactory connectionFactory;

and the code that fails is

InitialContext ctx = new InitialContext();
  | QueueConnection qu =  connectionFactory.createQueueConnection();
  | QueueSession session = qu.createQueueSession(false, 
  |     Session.AUTO_ACKNOWLEDGE);
  | Queue queue = (Queue) ctx.lookup("queue/SystemLogQueue")

Presumably I need to make this refer to the HAJNDI?

Can anyone recommended the best way to make this maintainable so it can be 
deployed under a clustered/non-clustered environment with the least effort?

Kind Regards, Vic


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257352#4257352

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257352
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to