Skip to Content
avatar image
Former Member

Using external JMS provider

I am trying to use Tibco EMS as an external jms provider.

I created new factory (named TibcoFN) in JMSConnector service using visual administrator

Then I deployed and started it without any visible problem.

Then I created reference in a web.xml file of web application.

When I am calling lookup of initial context I always get naming exception.

What steps am I missing?

Piya

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    May 23, 2006 at 06:08 AM

    Hi Piya,

    It would help if you post the exact naming exception you are experiencing.

    In order to use the external provider you need to register (i.e. the server must be able to instantiate classes from the Tibco client library), you may check how it is done from the link provided by Amol.

    Then in order to use it in your servlet/JSP you will need to perform a lookup with a name similar to the following

    java:comp/env/myDeclaredResource

    But before that you must have declared the Tibco resources in your application via xml descriptors while you were deploying it, check this link :

    http://help.sap.com/saphelp_nw04/helpdata/en/15/6d56f65fb59e4db97253c89c5cfefd/frameset.htm

    Btw, the JMS provider is the built in, default JMS provider (i.e. SAP equivalent of Tibco), its settings have absolutely no effect over the integrating external JMS provider. You should be concerned only with the JMS connector.

    HTH

    Peter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2006 at 03:27 AM

    Are you sure you have done all the required setup on Tibco side?

    have you gone thro' the documentation on connecting to and using external JMS provider from SAP WebAS? check this link

    http://help.sap.com/saphelp_nw04/helpdata/en/cd/4d4941abbb4c0de10000000a1550b0/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2006 at 03:29 AM

    Hi

    Have u defined the ConnectionFactory Classes in the Connection Factories Tab (JMS Provider). please check this and let me know ?

    regards

    rajesh kr

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2006 at 07:35 PM

    Thanks everyone for responding. I was able to solve this problem. I had not imported the library in JMS libraries.

    Piya

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I am trying to use ActiveMQ as my external JMS provider and having a hard time doing so. I've deployed the activemq jar file in the JMS Connector service > library, and defined jms-factories.xml like:

      <?xml version="1.0" encoding="UTF-8" ?>

      <jms-factories>

      <connection-factory>

      <factory-name>jms/ConnectionFactory</factory-name>

      <library-name>activemq</library-name>

      <context-factory-type>

      <link-factory-name>jmsfactory/default/QueueConnectionFactory</link-factory-name>

      <initial-context-factory>com.sap.engine.services.jndi.InitialContextFactoryImpl</initial-context-factory>

      <provider-url>sapvm-vc:61616</provider-url>

      <security-principal></security-principal>

      <security-credentials></security-credentials>

      </context-factory-type>

      </connection-factory>

      </jms-factories>

      But I am getting the following error:

      Application error occurred during request processing.

      Details: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exampleManagerContainer' defined in class path resource [integrationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection;

      Exception id: [005056AB07A0005B0000004100000614000449BF8461CFBE]

      Any ideas, please???

      thanks,