Quantcast

[jira] [Commented] (GERONIMO-6562) Geronimo: RecoverTask is throwing an XAException in the jboss fuse when using transactionManager

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6562) Geronimo: RecoverTask is throwing an XAException in the jboss fuse when using transactionManager

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002271#comment-16002271 ]

 Ramu kakarla commented on GERONIMO-6562:
-----------------------------------------

Hello Rajesh,
The example runs in fuse 6.3 . If you want to test in 6.2.1 then change dependency  versions to 6.2.1 in pom
The Test case  has 3 bundles, mysql1,mysql2 used to create two datasources and routing bundle has camel routes just to insert into two databases.

Please install below features in karaf

features:install camel-sql
features:install jndi
features:install connector
features:install transaction
osgi:install -s wrap:mvn:mysql/mysql-connector-java/5.1.37


 osgi:install -s mvn:com.mysql1/mysql1/1.0
  osgi:install -s mvn:com.mysql2/mysql2/1.0
  osgi:install -s mvn:com.route/route1/1.0


logs:
###############################################################################################################################
2017-04-18 13:13:36,771 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Apache Camel 2.17.0.redhat-630254 (CamelContext: camel-1) is starting
2017-04-18 13:13:36,773 | INFO  | rint Extender: 3 | ManagedManagementStrategy        | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | JMX is enabled
2017-04-18 13:13:36,855 | INFO  | rint Extender: 3 | DefaultRuntimeEndpointRegistry   | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
2017-04-18 13:13:36,922 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2017-04-18 13:13:36,922 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2017-04-18 13:13:36,965 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Route: timerToLog started and consuming from: Endpoint[timer://foo?period=60s]
2017-04-18 13:13:36,967 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Route: routeMysql1 started and consuming from: Endpoint[direct://insertMysql1]
2017-04-18 13:13:36,968 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Route: routeMysql2 started and consuming from: Endpoint[direct://insertMysql2]
2017-04-18 13:13:36,969 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Total 3 routes, of which 3 are started.
2017-04-18 13:13:36,970 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630254 | Apache Camel 2.17.0.redhat-630254 (CamelContext: camel-1) started in 0.199 seconds
#####################################################################################################################################



> Geronimo: RecoverTask is throwing an XAException in the jboss fuse when using transactionManager
> ------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6562
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6562
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues)
>          Components: Aries
>         Environment: ALL
>            Reporter: Rajesh
>         Attachments: msql-xasample.zip, XA-Aries-transactions-Mysql-6.3.zip
>
>
> I am getting the below error keep printing in the log when application uses TransactionManager that comes with the jboss fuse server
> 2017-02-28 22:07:15,475 | ERROR | RetryTimer       | RecoveryController               | 11623 - org.apache.aries.transaction.manager - 1.3.0 | Recovery error: null
> my application uses blueprint and camel. And i have printed the datasource confuguration in the blueprint below
> <bean id="oracleXaDataSource" class="oracle.jdbc.xa.client.OracleXADataSource" destroy-method="close">
>    <property name="user" value="${datasource.user}" />
>    <property name="password" value="${datasource.password}" />
>    <property name="URL" value="${datasource.url}" />
> </bean>
>
>
> <service interface="javax.sql.XADataSource" ref="oracleXaDataSource">
> <service-properties>
> <entry key="osgi.jndi.service.name" value="jdbc/oracleDB" />
> <entry key="datasource.name" value="oracleDB" />
> <entry key="aries.xa.name" value="oracleDB" />
> <entry key="aries.xa.username" value="${datasource.user}" />
> <entry key="aries.xa.password" value="${datasource.password}" />
> <entry key="aries.xa.pooling" value="true" />
> <entry key="aries.xa.poolMinSize" value="0" />
> <entry key="aries.xa.poolMaxSize" value="20" />
> <!-- <entry key="aries.xa.exceptionSorter" value="${aries.xa.exceptionSorter}" /> -->
> <entry key="aries.xa.transaction" value="none" />
> </service-properties>
> </service>



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...