Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

JNDI naming in weblogic

 
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I tryed creating a datasource in weblogic and I gave the JNDI name as jdbc/sampleDS. while am lookup that from context am getting exception that the look is failed for the name jdbc.sampleDS.

How come the "/" replaced my ".".

Any constraint in weblogic that the JNDI should not use "/" . ?

Please assist me.
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

There is no constraint in weblogic like that............

anyways which version of weblogic are you using??
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please post the code how you are doing for the JNDI lookup. May be, modify the code to look for 'sampleDS'. Also cerate data source name as 'sampleDS'
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Weblogic 8.1 ...

Same code working in OC4J and SOA suite..
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you look at the WL JNDI tree ? That will tell you what name the DS is bound against
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to lookup the JNDI tree in weblogic. Looking up the tre is upto Application server imple rite.

As per J2ee Spec is not possible. Please correct me if am wrong.
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servers -> Your server name -> View JNDI tree
 
Renjan Thomas
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can verify whether the jndi name in bound to that particular server by checking the WLS jndi tree.

If it is WLS 8.1 .. right click on that particular managed server where your DS is targetted from console , you can see a view jndi tree option ..select that and verify how the jndi name is reflected on server.
 
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!