• Post Reply Bookmark Topic Watch Topic
  • New Topic

jdbc driver

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question about the URL for jdbc connection in EJB in Inprse app server.
It works if I have the following:
URL:
jdbc racle:thin:@serverName ortNum BName
But if I want to use just generic name like
jdbc racle:thin:@DBName
it does not work for me.
The main purpose is that I want the oracle naming server to resolve the database name, not to hardcode the port number and server name in my code.
BTW, I can connect to the database using sql plus 3.3 with the generic name, so I believe my oracle client setup is correct.
I am using oraclethin driver now, I wander if there is any other driver will support the generic name to access the database for the entity bean.

Any suggestion will be greatly appreciated.
zhongwwu

 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"zhongwu"
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
Also, I think you will get a better responce to your question on the "JDBC" forum so I'm moving it there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!