[jboss-user] [JBoss Messaging] - Re: non-serializable XAResource error from JBoss Messaging -

ajayazariah do-not-reply at jboss.com
Wed Mar 4 09:35:50 EST 2009


configuration below:


  | 1) conf/jbossjta-properties.xml : 
  | 
  | 
  | Node 1: 
  | 
  |         <!-- (Must be unique across all Arjuna instances.) -->
  |         <property name="com.arjuna.ats.arjuna.xa.nodeIdentifier" value="1"/>
  | 
  |         <!-- Configure which transactions must be recovered. Must match nodeIdentifier -->
  |         <property name="com.arjuna.ats.jta.xaRecoveryNode" value="1"/>
  | 
  |         <!-- configure XA recovery for JBoss Messaging -->
  |         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING1"
  | 		value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/DefaultJMSProvider"/>
  | 
  |         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING2" 
  | 		value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/RemoteProvider2"/>
  | 
  |         <!-- specifying XA recovery for Oracle -->
  |         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.Oracle" 
  | 		value="com.arjuna.ats.internal.jdbc.recovery.OracleXARecovery;oraclejta-properties.xml"/>
  | 
  | 
  | Node 2: 
  | 
  |         <!-- (Must be unique across all Arjuna instances.) -->
  |         <property name="com.arjuna.ats.arjuna.xa.nodeIdentifier" value="2"/>
  | 
  |         <!-- Configure which transactions must be recovered. Must match nodeIdentifier -->
  |         <property name="com.arjuna.ats.jta.xaRecoveryNode" value="2"/>
  | 
  |         <!-- configure XA recovery for JBoss Messaging -->
  |         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING1"
  | 		value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/DefaultJMSProvider"/>
  | 
  |         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING2" 
  | 		value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/RemoteProvider2"/>
  | 
  |         <!-- specifying XA recovery for Oracle -->
  |         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.Oracle" 
  | 		value="com.arjuna.ats.internal.jdbc.recovery.OracleXARecovery;oraclejta-properties.xml"/>
  | 
  | 
  | 
  | 2) deploy/hajndi-jms-ds.xml
  | 
  | Node 1:
  | 
  |   <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |      name="jboss.jms:service=JMSProviderLoader,name=RemoteProvider2">
  |     <attribute name="ProviderName">RemoteProvider2</attribute>
  |     <attribute name="ProviderAdapterClass">
  |       org.jboss.jms.jndi.JNDIProviderAdapter
  |     </attribute>
  |     <!-- The combined connection factory -->
  |     <attribute name="FactoryRef">XAConnectionFactory</attribute>
  |     <!-- The queue connection factory -->
  |     <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
  |     <!-- The topic factory -->
  |     <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
  |     <attribute name="Properties">
  |        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |        java.naming.provider.url=node_2_hostname:1099
  |     </attribute>
  |   </mbean>
  | 
  | Node 2:
  | 
  |   <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |      name="jboss.jms:service=JMSProviderLoader,name=RemoteProvider2">
  |     <attribute name="ProviderName">RemoteProvider2</attribute>
  |     <attribute name="ProviderAdapterClass">
  |       org.jboss.jms.jndi.JNDIProviderAdapter
  |     </attribute>
  |     <!-- The combined connection factory -->
  |     <attribute name="FactoryRef">XAConnectionFactory</attribute>
  |     <!-- The queue connection factory -->
  |     <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
  |     <!-- The topic factory -->
  |     <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
  |     <attribute name="Properties">
  |        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |        java.naming.provider.url=node_1_hostname:1099
  |     </attribute>
  |   </mbean>
  | 
  | 
  | 
  | 3) conf/oraclejta-properties.xml
  | 
  | <transaction-service>
  |   <properties name="jdbc" type="system">
  |     <property name="DatabaseURL" value="jdbc:oracle:thin:@dbhost:25000:sid"/>
  |     <property name="UserName" value="jboss"/>
  |     <property name="Password" value="jboss"/>
  |   </properties>
  | </transaction-service>
  | 
  | 
  | 
  | 4)   Oracle user "jboss" has been granted following permissions:
  |        select on DBA_PENDING_TRANSACTIONS,
  |        execute on SYS.DBMS_SYSTEM
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214921#4214921

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214921



More information about the jboss-user mailing list