This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes adding JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "adding JNDI" Watch "adding JNDI" New topic
Author

adding JNDI

sam liyanage
Ranch Hand

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

Joined: May 14, 2008
Posts: 5812
    
    7

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
sam liyanage
Ranch Hand

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

Joined: Mar 21, 2008
Posts: 202

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: 9953
    
161

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?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
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: 202
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: 5812
    
    7

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.
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
ela ela THanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding JNDI
 
Similar Threads
JTA objects
WA #1.....word association
lookup meaning?
ejb
J2EE technology would allow the system to interact with the LDAP server?