aspose file tools
The moose likes JBoss and the fly likes adding JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "adding JNDI" Watch "adding JNDI" New topic
Author

adding JNDI

sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 643
can anyone tell me how to add datasource to jboss JNDI?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

Place a *-ds.xml file for your datasource in the server/xxx/deploy directory. Youy can find example *-ds.xml file for a variety of database at docs/examples/jca - get one that matches your database and modify it.


JBoss In Action
sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 643
THERE IS NO SUCH A FILE IN THAT LOCATION .CAN YOU EXPLAING IN DETAIL PLEAS?
Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 191

Can you tell us which database you want to use and what version of server you are accessing.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8142
    
  52

aruna sameera wrote:THERE IS NO SUCH A FILE IN THAT LOCATION .CAN YOU EXPLAING IN DETAIL PLEAS?


Aruna,

Using all caps in a post is considered rude and amounts to shouting. Please do not use all caps.

Which exact location did you look for the -ds.xml files? And have you done any changes to a default installation of JBoss?
sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 643
my database is oracle and i am using jdbc driver to connect data base.but there is no oracle-ds.xml file in "C:\jboss-4.2.3.GA\server\default\deploy"
this path?what shuld i do?
Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 191
You can find oracle-ds.xml in

C:\jboss-4.2.3.GA\docs\examples\jca

modify it accordingly.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

aruna sameera wrote:there is no oracle-ds.xml file in "C:\jboss-4.2.3.GA\server\default\deploy" this path?


Why did you look in only one of the two directories that I mentioned? (I never even said the files were there.) If you would have looked in both directories, you might not have gotten so frustrated that you had to yell. Also, if you would have said you were using Oracle I could have given you the exact file name, but I'm not good at reading minds especially at this distance.
sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 643
ela ela THanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: adding JNDI
 
Similar Threads
ejb
J2EE technology would allow the system to interact with the LDAP server?
WA #1.....word association
lookup meaning?
JTA objects