1 Reply Latest reply on Jan 17, 2013 11:40 PM by jp_b4u

    How to Configure TopicConnection Factory in JBOSS 5.1 ?

    jp_b4u

           Iam Migrating my aplication from Jboss 4.2 to Jboss 5.1 .

           In Jboss 4.2 we configured Connection Factories in uil2-service.xml file.

         Can any one please tell me in Which JBOSS 5.1 xml file need to Configure COnnection factory JNDI name and other details.

       

                            Source :

                            InitialContext iniCtx = new InitialContext();

              Object tmp = iniCtx.lookup("BLOTTER_CONNECTIONFACTORY");

              TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;

              conn = tcf.createTopicConnection();

       

                            Error:

       

                  ERROR [STDERR] javax.naming.NameNotFoundException: BLOTTERS_CONNECTION_FACTORY not bound

       

       

      Jboss5.1 in deploy/messaging folder we have below two xml files .

       

      connection-factories-service.xml

      jms-ds.xml

       

      In which xml file I need to configure Connection-Factory [ in Jboss 4.2 , Connection Factory is configured in uil2-service.xml file ]

       

      Do I need to configure in one of the above xml's ?

       

      Is there any xml I need to configure Connection factory.

       

      Will JBOSS 5 supports multiple  Connection factories ?

       

      Thanks

      Prakash

      Thanks in Advance.

      Prakash

        • 1. Re: How to Configure TopicConnection Factory in JBOSS 5.1 ?
          jp_b4u

          In JBOSS 4x:
          File : jboss-4.2.3.GA\server\SyndicateTreasury\deploy\jms\uil2-service.xml
          <mbean code="org.jboss.naming.NamingAlias" name="jboss.mq:service=InvocationLayer,type=UIL">
          <attribute name="FromName">UILConnectionFactory</attribute>
          <attribute name="ToName">BLOTTERS_CONNECTION_FACTORY</attribute>
          <depends>jboss:service=Naming</depends>
          </mbean>
          In JBOSS 5x :
          File: Jboss-5.1.0.-jdk\server\default\deploy\messaging\connection-factories-service.xml
          <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
          name="jboss.messaging.connectionfactory:service=BLOTTERS_CONNECTION_FACTORY"
          xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
          <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
          <depends optional-attributename="
          Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
          <depends>jboss.messaging:service=PostOffice</depends>
          <attribute name="JNDIBindings">
          <bindings>
          <binding>/BLOTTERS_CONNECTION_FACTORY</binding>
          </bindings>
          </attribute>
          <attribute name="PrefetchSize">1000</attribute>
          </mbean>