• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding JNDI

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone tell me how to add datasource to jboss JNDI?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THERE IS NO SUCH A FILE IN THAT LOCATION .CAN YOU EXPLAING IN DETAIL PLEAS?
 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can you tell us which database you want to use and what version of server you are accessing.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find oracle-ds.xml in

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

modify it accordingly.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ela ela THanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic