i am new to j2ee and jboss.
I am using a startup class as mbean .
In some method of startup class
i am trying to lookup a jndi name "OnMobileDSN"
DataSource ds = (DataSource) ctx.lookup ("OnmobileDSN");
Also in oracle-service.xml
i am binding the datasource to this name as
During server startup the jndiname is bound to java:/OnMobileDSN
but during my mbean startup i am getting the exception
16:08:22,257 ERROR [STDERR] javax.naming.NameNotFoundException: OnMobileDSN not
i wud appreciate help from anyone.
try it with java: infront of it
Do not know why the other one does not work