2 Replies Latest reply on Apr 6, 2007 9:08 AM by Krishna Kumar

    ConnectionFactory & Connection without using JNDI.

    Krishna Kumar Newbie

      I need to establish the ConnectionFactory & Connection without using JNDI in JBOSS AS 4.0.5 with JBOSS Messaging.

      Thanks in advance.

        • 1. Re: ConnectionFactory & Connection without using JNDI.
          Clebert Suconic Master

          How would you do that?

          It is possible, but it would require a whole lot of hack, and I don't think we support that.

          But If you have a nice idea on how this would make sense, and what would be a pretty API for finding ConnectionFactories without JNDI, I would like to hear you.

          • 2. Re: ConnectionFactory & Connection without using JNDI.
            Krishna Kumar Newbie

            In JBossMQ we got the Connection factory(without using jndi lookup) by using SpyConnectionFactory class.

            The Code snippet uses SpyConnectionFactory for JBossMQ:

            ConnectionFactory connFactory = (ConnectionFactory)new SpyConnectionFactory(loadProperties());

            public Properties loadProperties() {
            Properties props = new Properties();
            props.setProperty(UILServerILFactory.SERVER_IL_FACTORY_KEY, UILServerILFactory.SERVER_IL_FACTORY);
            props.setProperty(UILServerILFactory.CLIENT_IL_SERVICE_KEY, UILServerILFactory.CLIENT_IL_SERVICE);
            props.setProperty(UILServerILFactory.UIL_ADDRESS_KEY, uilAddress);
            props.setProperty(UILServerILFactory.UIL_PORT_KEY, uilPort);

            return props;

            We are in need of the same functionality API in JBoss Messaging same as SpyConnectionFactory in JBossMQ.

            Thanks in advance.