Discussions

EJB design: How to find default JNDI name is bounded

  1. How to find default JNDI name is bounded (3 messages)

    Hai,

    How do I find whether JNDI name "javax.jts.Usertransaction" is bounded
    by default.Is it possible to produce list of JNDI names (default JNDI names ) output programmatically.

    For JMS operation, default JNDI name is "javax.jms.QueueConnectionFactory"
    (documentation says).But I am getting javax.naming.NameNotFoundException

    Thanks in Advance,
    With Regards,
    Vinoth.C
  2. what app server are u using?
  3. How to find default JNDI name is bounded[ Go to top ]


    Do the following and you should be okay......
    Regards

    Ajeet Koru

    --------------------------------------------
    final QueueConnectionFactory factory = (QueueConnectionFactory)_context.lookup(QueueConnectionFactory.class.getName());


    _connection = factory.createQueueConnection();
  4. Am using weblogic5.1.
    Also I have tried using this..

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

    Still I am getting javax.naming.NameNotFoundException

    Regards,
    Vinoth.C