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

    create TopicConnectionFactory

    cpeng

      How can I create a different TopicConnectionFactory?

      Thanks,

        • 1. Re: create TopicConnectionFactory
          hchirino

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

          • 2. Re: create TopicConnectionFactory
            cpeng

            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
              hchirino

              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