Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > Wrox Book Feedback
| Search | Today's Posts | Mark Forums Read
Wrox Book Feedback A forum to submit feedback on Wrox books if other forums on P2P have been unable to address your book-specific needs. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Wrox Book Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 24th, 2003, 09:09 AM
Registered User
Join Date: Jun 2003
Location: Hannover, Low Sachsony, Germany.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to configure XA-DataSource for Oracle in JBoss

Hallo everybody,

I'm using JBoss 3.2.1 with intergrated Tomcat.

Does anybody know how to configure XA-DataSource for Oracle 8.1.6. I've made till now following steps:

I've copied file oracle-xa-ds.xml from example directory to default/deploy directory. Here is this file:

        org.jboss.resource.adapter.jdbc.xa.oracle.XAOracle ManagedConnectionFactory
    <xa-datasource-property name="URL">jdbc:oracle:thin:@serv2b:1521:dastat</xa-datasource-property>
    <xa-datasource-property name="User">bmftprod</xa-datasource-property>
    <xa-datasource-property name="Password">hisdast</xa-datasource-property>
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.Oracle ExceptionSorter</exception-sorter-class-name>

  <mbean code="org.jboss.resource.adapter.jdbc.xa.oracle.Or acleXAExceptionFormatter"
         name="jboss.jca:service=OracleXAExceptionFormatter ">
    <depends optional-attribute-name="TransactionManagerService">jboss:service=Tra nsactionManager</depends>

I've set pad on true in file transaction-service.xml. But when getting connection from datasource I always get exception like:

 Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: enlistResource failed

Does anybody know what else should be done? I would be very appreciated for any help.


Reply With Quote
  #2 (permalink)  
Old September 24th, 2003, 09:15 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts

read this: http://p2p.wrox.com/topic.asp?TOPIC_ID=1378

Hal Levy
NOT a Wiley/Wrox Employee
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object datasource VS DataSource SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 July 27th, 2006 10:44 PM
<xsl:for-each select="tokenize($indoc,'&#xA;')"> kapy_kal XSLT 4 June 9th, 2006 07:33 AM
DataSource, Oracle... mali djuro JSP Basics 0 October 20th, 2003 07:51 AM
oracle management server configure problem mateenmohd Oracle 1 October 13th, 2003 05:11 PM
How to configure XA-DataSource for Oracle in JBoss keseln J2EE 0 September 24th, 2003 09:42 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.