8 Replies Latest reply on Apr 11, 2008 3:07 AM by Abhishek Kalsy

    topic not bound in HAJMS

    Ana Holzbach Newbie


      We're using JBoss 4.2.0.GA. We have two nodes running a flex-based application that calls some business methods on clustered ejbs, which in turn use JMS to update state on the client. I've setup a named partition (LCSTest) with two nodes, and gave this partition its own multicast address (there are other partitions in the network). The JMS topics are deployed in deploy-hasingleton in both nodes and the nodes are configured to access the same SQL Server datasource for JMS data.

      The beans are annotated as follows:

      public class BedManagementServiceBean implements BedManagementService {
       private SessionContext mSessionContext;
       @Resource(mappedName = "TopicConnectionFactory")
       private ConnectionFactory mJmsConnectionFactory;
       @Resource(mappedName = "topic/RoomService/BedStaffUpdate")
       private Topic mStaffUpdateTopic;

      and jboss.xml has these contents:


      I've deployed the hajms-examples.jar in a third server to test the two nodes in the cluster, and successfully verified that the setup was working.

      JNDIView lists all the beans in both nodes, but lists the topics only in the singleton master, which makes sense. But the topics are only available in the singleton master. The node that is not the master gets an NameNotFoundException "topic not bound".

      Any suggestions will be much appreciated. Thanks !