NameNotFoundException: not bound

Applies to:
JBoss 3.2
Oracle 9i
ANT

Description:
Error with ejb-jar.xml when running the client code.

Cause:
References in ejb-jar.xml and datasource are not correctly setup.

admin JAVA-EJB

  1. admin
    March 9th, 2009 at 18:22 | #1

    Follow these steps to do a context.lookup(“java:comp/env/OracleDS”):
    1. In ejb-jar.xml file, include the following lines:

    OracleDS
    javax.sql.DataSource
    Container

    2. Map the datasource declaration and reference in ejb-jar.xml:


    OracleDS
    java:/OracleDS

  1. No trackbacks yet.