Service Virtualization

Expand all | Collapse all

How To Create JNDI Initial Context Asset?

Jump to Best Answer
  • 1.  How To Create JNDI Initial Context Asset?

    Posted 04-05-2016 11:32 AM

    I'm trying to figure out how to record a very simple JMS application that uses Apache ActiveMQ.

     

    My simple application uses JNDI to look up the connection factory and build up the resources.

     

    The CA docs for the JNDI asset are EXTREMELY  limited.

     

    When I attempt to test my JNDI Initial Context asset, I get this error ::

    Verifying Asset
    Error: Class not found: org.apache.activemq.jndi.ActiveMQInitialContextFactory
    

     

    Here is my config for my JNDI asset.

     

    JNDI_Error.png

     

    What am I doing wrong?



  • 2.  Re: How To Create JNDI Initial Context Asset?
    Best Answer

    Posted 04-05-2016 12:11 PM

    I believe you are going to need to drop the activemq-client-<yourVersion>.jar into LISA_HOME/hotdeploy.  For example, if running ActiveMQ v5.8.0, the jar would be activemq-client-5.8.0.jar.

    You may be able to get away with using com.itko.activemq.jndi.ActiveMQInitialContextFactory -- but no guarantees that this will work.



  • 3.  Re: How To Create JNDI Initial Context Asset?

    Posted 04-05-2016 12:25 PM

    That was it!  Thank you!