[jboss-user] [JNDI/Naming/Network] - JDNI Lookup - Naming Not Found with JBOSS 4.2.2

senthilrajan.nitt do-not-reply at jboss.com
Fri Apr 18 11:17:13 EDT 2008


Hi,

I am trying to set my local environment in JBOSS 4.2.2 server for my project.

I have configured the Datasource to point to my local oracle instance. The JBOSS log shows up as follows.


19:29:13,031 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
19:29:13,984 INFO  [A] Bound to JNDI name: queue/A
19:29:13,984 INFO  [B] Bound to JNDI name: queue/B
19:29:14,000 INFO  [C] Bound to JNDI name: queue/C
19:29:14,000 INFO  [D] Bound to JNDI name: queue/D
19:29:14,000 INFO  [ex] Bound to JNDI name: queue/ex
19:29:14,031 INFO  [testTopic] Bound to JNDI name: topic/testTopic
19:29:14,031 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
19:29:14,046 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

19:29:14,046 INFO  [testQueue] Bound to JNDI name: queue/testQueue
19:29:14,140 INFO  [UILServerILService] JBossMQ UIL service available at : /127.
0.0.1:8093
19:29:14,203 INFO  [DLQ] Bound to JNDI name: queue/DLQ
19:29:14,703 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
19:29:14,937 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'

When i try to lookup for my Datasource i got NamenotFound Exception.


Context ctx = new InitialContext();
Object ds = ctx.lookup("java:OracleDS");
System.out.println("Got the object : "+ds)

But when i look the object  by name : topic/testTopic i got the object.

Context ctx = new InitialContext();
Object ds = ctx.lookup("topic/testTopic");
System.out.println("Got the object : "+ds)

Could anybody please help me what i have to do  to work properly?

Thanks,
Senthil


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145179#4145179

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145179



More information about the jboss-user mailing list