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;
InitialContext ctx = new InitialContext(); QueueConnection qu = connectionFactory.createQueueConnection(); QueueSession session = qu.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = (Queue) ctx.lookup("queue/SystemLogQueue")
I believe I've got this sorted,