• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI naming in weblogic

 
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servers -> Your server name -> View JNDI tree
 
Renjan Thomas
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic