Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 24th, 2003, 09:42 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:

<datasources>
  <xa-datasource>
    <jndi-name>jdbc/estat</jndi-name>
    <track-connection-by-tx>true</track-connection-by-tx>
    <isSameRM-override-value>false</isSameRM-override-value>
    <managedconnectionfactory-class>
        org.jboss.resource.adapter.jdbc.xa.oracle.XAOracle ManagedConnectionFactory
    </managedconnectionfactory-class>
    <transaction-isolation></transaction-isolation>
    <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
    <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>
  </xa-datasource>

  <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>
  </mbean>
</datasources>

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.

Greetings,

Nadja
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:52 AM.


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