Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE 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
Old September 24th, 2003, 09:42 AM
Registered User
Join Date: Jun 2003
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.



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 Wrox Book Feedback 1 September 24th, 2003 09:15 AM

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