• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Configuring <connection-url> in local-tx-datasource  RSS feed

 
Ranch Hand
Posts: 126
1
Java Opera Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Nice to meet you after sometime.

I have a problem where i need to connect to a datasource through a dedicated server in JBOSS.

Below is my code in cib-ds.xml




I have tried different combinations like below.



But still , I get a org.jboss.resource.JBossResourceException always.

The JBOSS version i am using is 4.2.2 and oracle database version 10g.


Also , since I'm connecting to a single database , i think i need not go for XA if i'm right.

Any suggestions guys?.

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't work with Oracle, but according to their docs, I think the URL should be:



So your next-to-last URL was the closest, but you should have dropped the "//"
 
karthik Suryanarayanan
Ranch Hand
Posts: 126
1
Java Opera Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
I just resolved it by adding the connection URL just like entry in tnsora file with service name.
Thanks for your reply .
 
No holds barred. And no bars holed. Except this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!