activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo K. Shikida" <>
Subject how to configure activemq jdbc persistence under tomee?
Date Fri, 31 Jan 2014 12:52:10 GMT

I had this configuration for tomee

    <Resource id="Default JMS Resource Adapter"
        BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=true
        ServerUrl = tcp://localhost:61616
        DataSource = MyDataSource

    <Resource id="MyDataSource" type="javax.sql.DataSource">
        JdbcDriver = oracle.jdbc.OracleDriver
        JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
        UserName = xxxx
        Password = xxxx

    <Container id="MyJmsMdbContainer" ctype="MESSAGE">
        ResourceAdapter = Default JMS Resource Adapter

This configures tomee's embedded activemq

Now, I want to give activemq more memory, so I've changed into this

    <Resource id="Default JMS Resource Adapter"
        BrokerXmlConfig = xbean:file:conf/activemq.xml
        ServerUrl = tcp://localhost:61616
        DataSource = MyDataSource

and added the same activemq.xml of, just adding

                <transportConnector name="anythingHere"

and I'd like to replace kahaDB with my oracle datasource.

it seems that I have to remove "DataSource = MyDataSource" from tomee.xml
and define the persistence inside activemq.xml, right?

My doubts are

[1] does the name in the transport connector is relevant?
[2] shall I need to replace kahaDB with

      <jdbcPersistenceAdapter dataSource="#my-ds"/>

[3] where do I have to set my-ds? at tomee.xml or somewhere else?
[4] am I missing anything else?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message