camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tops <ilya.solov...@gmail.com>
Subject Re: sending oracle XMLType message to activeMQ
Date Fri, 10 Feb 2012 17:34:49 GMT
Hi Ashwin!

Let me answer to your questions:

1. Yes, ActiveMQ (5.5.1) uses a persistent store, but this store is MySQL
not the Oracle database. Therefore it's not clear for me why the class that
thrown the exception is oracle.jdbc.driver.T2CConnection:

Caused by: java.io.NotSerializableException:
oracle.jdbc.driver.T2CConnection

This is the respective ActiveMQ configuration part:

    <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
        <property name="url"
value="jdbc:mysql://foo.com/activemq?relaxAutoCommit=true"/>
        <property name="username" value="activemq"/>
        <property name="password" value="activemq"/>
        <property name="maxActive" value="200"/>
        <property name="poolPreparedStatements" value="true"/>
    </bean>


       <persistenceFactory>
            <journalPersistenceAdapterFactory journalLogFiles="5"
dataDirectory="${activemq.base}/activemq-data" dataSource="#mysql-ds"/>
         </persistenceFactory>


2. I went through the oracle documentation once again, just to make sure
that value of the object is serialized:

http://docs.oracle.com/cd/B28359_01/appdev.111/b28391/serialized-form.html#oracle_xdb_XMLType


we use XMLType xtype.getClobVal() - which is one of the serialized fields,
according to documentation mentioned above.

--
View this message in context: http://camel.465427.n5.nabble.com/sending-oracle-XMLType-message-to-activeMQ-tp5466141p5473294.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message