• 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

adding JNDI

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can anyone tell me how to add datasource to jboss JNDI?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THERE IS NO SUCH A FILE IN THAT LOCATION .CAN YOU EXPLAING IN DETAIL PLEAS?
 
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can you tell us which database you want to use and what version of server you are accessing.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ela ela THanks
 
Yup, yup, yup. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic