3 Replies Latest reply on Sep 26, 2001 9:13 PM by Hiram Chirino

    create TopicConnectionFactory

    Ching Newbie

      How can I create a different TopicConnectionFactory?

      Thanks,

        • 1. Re: create TopicConnectionFactory
          Hiram Chirino Expert

          I what way do you want it to be 'different'??

          • 2. Re: create TopicConnectionFactory
            Ching Newbie

            Instead of using the system default one(TopicConnectionFactory-->ConnectionFactory), I would like to create a separate one w/ different JNDI name mapping. Not sure how the NamingAlias attribute of the MBean works. Is it where I can achieve my objective?

            Thanks,

            • 3. Re: create TopicConnectionFactory
              Hiram Chirino Expert

              Add a MBean to the jboss.jcml file to do the NamingAlias thing...

              The snipplet below sets up a alias from "CoolNewName" --> "ConnectionFactory"


              CoolNewName
              ConnectionFactory



              OR you can change where JBossMQ binds the object in JNDI. This too is done with an MBean section in jboss.jcml... Just change "ConnectionFactory" or "XAConnectionFactory" values to whatever new value you want. It may have problems with something like:
              "someting/with/a/path/ConnectionFactory" (let me know if there is a problem, we need to get that fixed).


              ConnectionFactory
              XAConnectionFactory