Weblogic 8.1 queues/topics and Hermes v1.6

Help
2004-08-19
2004-08-19
  • Del Simmons
    Del Simmons
    2004-08-19

    Sorry to beat this topic to death, as I see it's already been discussed a few times and some people report success. I've read all the threads on the issue and still can't seem to get it right.

    If anyone who's actually gotten to a queue on Weblogic 8.1 could help me out here, I'd greatly appreciate it.

    Question 1: What jars should I include in my PROVIDER_EXT path? I have seen both weblogic.jar and jms510.jar mentioned. Is that all I need?

    Question 2: What should my config file look like? I have got the following config at this moment based on other forum posts:

    -------------------------------------
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <config maxMessagesInBrowserPane="1000" auditDirectory="C:\temp" copyJMSReplyTo="false" maxThreadPoolSize="5" copyJMSType="false" copyJMSPriority="false" copyJMSExpiration="false" messageFilesDir="D:\hermes-v1.6\bin\.\messages" copyJMSCorrelationID="false">
        <renderer className="hermes.renderers.DefaultMessageRenderer">
            <properties>
                <property name="toStringOnObjectMessage" value="false"/>
                <property name="bytesIsObjectBufferSize" value="65536"/>
                <property name="bytesIsObject" value="false"/>
            </properties>
        </renderer>
        <loader noFactories="true" jar="D:\bea\weblogic81\server\lib\weblogic.jar"/>
        <loader noFactories="true" jar="D:\bea\weblogic81\server\lib\jms510.jar"/>
        <factory>
            <provider className="hermes.JNDIQueueConnectionFactory">
                <properties>
                    <property name="binding" value="javax/jms/DefaultJmsConnectionFactory"/>
                    <property name="initialContextFactory" value="weblogic.jndi.WLInitialContextFactory"/>
                    <property name="providerURL" value="t3://90.106.5.146:7001"/>
                </properties>
            </provider>
            <connection>
                <session transacted="true" reconnects="0" audit="false" id="Weblogic 8.1"/>
            </connection>
            <destination name="jms/com.bellsouth.ci.arch.CIMetricsQueue" shortName="CIMetricsQueue" domain="1"/>
        </factory>
    </config>
    ------------------------------

    Question 3: What/Where is DefaultJmsConnectionFactory? I am currently getting a "Cannot resolve" error on that class. What is it? Where is it? I can't find it anywhere.

    If you guys would help me get to my queue, I'll be glad to compile all Weblogic tips and details into a single post with step by step instructions so nobody else will have to ask about this.

     
    • Del Simmons
      Del Simmons
      2004-08-19

      I finally got it.. The change I made was to use the QueueConnectionFactory instead of a DefaultJmsConnectionFactory. Here is my config file for anyone who needs it:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <config maxMessagesInBrowserPane="1000" auditDirectory="C:\temp" copyJMSReplyTo="false" maxThreadPoolSize="5" copyJMSType="false" copyJMSPriority="false" copyJMSExpiration="false" messageFilesDir="D:\hermes-v1.6\bin\.\messages" copyJMSCorrelationID="false">
          <watch updateFrequency="30000" id="com.bellsouth.ci.arch.CIMetricsQueue" defaultAgeAlertThreshold="0" defaultDepthAlertThreshold="0" showAge="true"/>
          <renderer className="hermes.renderers.DefaultMessageRenderer">
              <properties>
                  <property name="toStringOnObjectMessage" value="false"/>
                  <property name="bytesIsObjectBufferSize" value="65536"/>
                  <property name="bytesIsObject" value="false"/>
              </properties>
          </renderer>
          <loader noFactories="true" jar="..\providers\activemq-1.0-SNAPSHOT\lib\concurrent-1.3.2.jar"/>
          <loader noFactories="true" jar="..\providers\activemq-1.0-SNAPSHOT\lib\geronimo-spec-j2ee-management-1.0-rc1.jar"/>
          <loader factories="org.codehaus.activemq.ActiveMQConnectionFactory,org.codehaus.activemq.ActiveMQConnectionFactory" jar="..\providers\activemq-1.0-SNAPSHOT\activemq-1.0-SNAPSHOT.jar"/>
          <loader noFactories="true" jar="D:\bea\weblogic81\server\lib\weblogic.jar"/>
          <loader noFactories="true" jar="D:\bea\weblogic81\server\lib\jms510.jar"/>
          <factory>
              <provider className="hermes.providers.file.FileConnectionFactory">
                  <properties>
                      <property name="baseDirectory" value="messages"/>
                  </properties>
              </provider>
              <connection/>
              <destination name="examples.xml" domain="1"/>
          </factory>
          <factory>
              <provider className="org.codehaus.activemq.ActiveMQConnectionFactory">
                  <properties>
                      <property name="useEmbeddedBroker" value="true"/>
                  </properties>
              </provider>
              <connection/>
              <destination name="testTopic" domain="2"/>
              <destination name="testQueue" className="org.codehaus.activemq.message.ActiveMQQueue" domain="1"/>
          </factory>
          <factory>
              <provider className="hermes.NullConnectionFactory">
                  <properties/>
              </provider>
              <connection/>
          </factory>
          <factory>
              <provider className="hermes.JNDIQueueConnectionFactory">
                  <properties>
                      <property name="binding" value="javax.jms.QueueConnectionFactory"/>
                      <property name="initialContextFactory" value="weblogic.jndi.WLInitialContextFactory"/>
                      <property name="providerURL" value="t3://90.106.5.146:6001"/>
                  </properties>
              </provider>
              <connection username="weblogic" password="weblogic">
                  <session transacted="true" reconnects="0" audit="false" id="Weblogic-Gateway"/>
              </connection>
              <destination name="com.bellsouth.ci.arch.CIMetricsQueue" shortName="CIMetricsQueue-gateway" className="weblogic.jms.common.DestinationImpl" domain="1"/>
          </factory>
          <factory>
              <provider className="hermes.JNDIQueueConnectionFactory">
                  <properties>
                      <property name="initialContextFactory" value="weblogic.jndi.WLInitialContextFactory"/>
                      <property name="binding" value="javax.jms.QueueConnectionFactory"/>
                      <property name="providerURL" value="t3://90.106.5.146:7001"/>
                  </properties>
              </provider>
              <connection username="weblogic" password="weblogic">
                  <session transacted="true" reconnects="0" audit="false" id="Weblogic-CI"/>
              </connection>
              <destination name="com.bellsouth.ci.arch.CIMetricsQueue" shortName="CIMetricsQueue-CI" className="weblogic.jms.common.DestinationImpl" domain="1"/>
          </factory>
      </config>