1 2 Previous Next 19 Replies Latest reply on Sep 2, 2004 10:26 PM by skidvd Go to original post
      • 15. Re: JMS and HTTPServerILService
        skidvd

         

        "adrian@jboss.org" wrote:
        What is the "GenericeConnectionFactory"?

        If you mean the connection factory used by the mdb, the jndi name is specified
        on the jms provider in jms-ds.xml


        Oops, my typing skill strike again :)

        I meant the GenericConnectionFactory as shown in the following log4j output:

        [junit] 2795 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory - Extracting SpyConnectionFactory from reference
         [junit] 2930 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory - The GenericConnectionFactory is: GenericConnectionFactory[server=org.jboss.mq.il.uil2.UILServerIL@1878144 connectionProperties={UIL_ADDRESS_KEY=192.168.123.200, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}]
         [junit] 2944 [main] DEBUG com.ensuren.ose.server.results.DiscoveryResultsBeanTestCase - ConnectionFactory lookup took 190 ms
         [junit] 3026 [main] DEBUG org.jboss.mq.Connection - Setting the clockDaemon's thread factory


        No matter what I do, I cannot seem to cause the GenericConnectionFactory to return the desired HTTPServerIL.

        My jms-ds.xml file contains the following:

        <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
         name="jboss.mq:service=JMSProviderLoader,type=https,name=HTTPSJMSProvider,socketType=SSL">
         <depends>jboss.mq:service=HTTPInvocationLayer,type=HTTPS</depends>
        
         <attribute name="ProviderName">HTTPSJMSProvider</attribute>
         <attribute name="ProviderAdapterClass">
         org.jboss.jms.jndi.JNDIProviderAdapter
         </attribute>
         <!-- The queue connection factory -->
         <attribute name="QueueFactoryRef">HTTPXAConnectionFactory</attribute>
         <!-- The topic factory -->
         <attribute name="TopicFactoryRef">HTTPXAConnectionFactory</attribute>
         <attribute name="Properties">
         java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
         java.naming.provider.url=https://${jboss.bind.address}:8633/invoker/JNDIFactory
         </attribute>
         </mbean>


        As always, I'd appreciate any assistance in determing what config changes need to be made to cause the GenericConnectionFactory to return an HTTPServerIL.

        Thanks.

        • 16. Re: JMS and HTTPServerILService

           


          [junit] 2795 [main]


          Is not an MDB.

          • 17. Re: JMS and HTTPServerILService
            skidvd

            No, it is a client that is publishing to a topic that has been looked up via JNDI. I want the publish to occur over HTTPIL, not UIL2.

            • 18. Re: JMS and HTTPServerILService

              So lookup("HTTPConnectionFactory") rather than "ConnectionFactory".

              Pretty basic stuff. Have you read the "Getting started guide"?

              • 19. Re: JMS and HTTPServerILService
                skidvd

                Aha, that's it. Yes I have read the guide, but this particular client uses both EJBs and pubs to JMS - both are intended to be across HTTPS. I'm sure that I missing something there and that the jndi lookup is wrong - I have been focusing entirely on the server side config - which appears to be correct now.

                Thanks again for all your help! I knew I was missing something basic and just needed another pair of eyes to point me towards it - when you get so deep in this stuff it's easy to loose the forest for the trees.

                Thanks again!!!

                1 2 Previous Next