Did weblogic5.1 supports JMS

Discussions

EJB programming & troubleshooting: Did weblogic5.1 supports JMS

  1. Did weblogic5.1 supports JMS (1 messages)

    Am using weblogic5.1.Did weblogic5.1 supports JMS. Since while
    look up am getting NameNotFoundException

    QueueConnectionFactory qconFactory = (QueueConnectionFactory)ic.lookup(QueueConnectionFactory.class.getName());

    QueueConnectionFactory qconFactory = (QueueConnectionFactory)ic.lookup("javax.jms.QueueConnectionFactory");

    Both ways I have looked up,am getting NameNotFoundException
    exception.Also I have looked in the weblogic console.Only
    javax.transaction.UserTransaction is associated in the Naming
    folder.There is no javax.jms.QueueConnectionFactory association.

    Thanks in advance.
    Regards,
    Vinoth.c
  2. You must describe your factory in weblogic.properties.
    From the WL5.1 docs:
    <cite>
    ConnectionFactories allow JMS clients to create JMS connections. They are configurable so that they create connections with predefined attributes. The JMS specification classifies ConnectionFactories, Queues, and Topics as "administered" objects. They are configured by the messaging system administrator and added to the JNDI namespace to allow access to JMS clients.

    To define a WebLogic JMS ConnectionFactory, add a weblogic.jms.connectionFactoryName property:

      weblogic.jms.connectionFactoryName.factoryName=jndiName
    </cite>

    See the full documentation here: http://www.weblogic.com/docs51/classdocs/API_jms.html#configuring

    WBR,
      Stanislav Markin
      Brainbench MVP for Java 1
      http://www.brainbench.com