You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Leonardo K. Shikida" <sh...@gmail.com> on 2014/01/31 13:52:10 UTC

how to configure activemq jdbc persistence under tomee?

Hi

I had this configuration for tomee

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

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

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

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"
type="ActiveMQResourceAdapter">
        BrokerXmlConfig = xbean:file:conf/activemq.xml
        ServerUrl = tcp://localhost:61616
        DataSource = MyDataSource
    </Resource>

and added the same activemq.xml of
http://activemq.apache.org/xml-configuration.html, just adding

            <transportConnectors>
                <transportConnector name="anythingHere"
uri="broker:(tcp://localhost:61616)?persistent=true"/>
            </transportConnectors>

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

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

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


TIA

Leo

Re: how to configure activemq jdbc persistence under tomee?

Posted by James Carman <ja...@carmanconsulting.com>.
That's what community is all about, man.  You worked your way through
an issue and found a solution that might be helpful to folks.  If
others have better ideas, they'll help you out on the docs.  We're all
here helping each other.

On Fri, Jan 31, 2014 at 1:42 PM, Leonardo K. Shikida <sh...@gmail.com> wrote:
> thanks, but I don't feel like I have authority to show the others the way.
>
> it would be like a blind leading the blind
>
> I just made mine work. If the options I am using are wisely chosen, this is
> questionable
>
> ;-)
>
> []
>
> Leo
>
> []
>
> Leo
>
>
> On Fri, Jan 31, 2014 at 4:30 PM, James Carman <ja...@carmanconsulting.com>wrote:
>
>> Agreed!  Feel free to request access to the wiki, so that you can help
>> out with docs (perhaps putting some snippets from your blog post).
>> You'll need to file an ICLA first if you haven't done so already.
>>
>> On Fri, Jan 31, 2014 at 1:26 PM, Leonardo K. Shikida <sh...@gmail.com>
>> wrote:
>> > np
>> >
>> > I wish activemq have more examples in the online docs
>> >
>> > sometimes, an example tells more and faster than a bunch of API
>> definitions
>> >
>> > []
>> >
>> > Leo
>> >
>> >
>> > On Fri, Jan 31, 2014 at 4:12 PM, James Carman <
>> james@carmanconsulting.com>wrote:
>> >
>> >> Great.  Glad you figured it out and sorry we couldn't help you out.
>> >>
>> >> On Fri, Jan 31, 2014 at 1:07 PM, Leonardo K. Shikida <shikida@gmail.com
>> >
>> >> wrote:
>> >> > sure, I'll write a big blog post and then I'll share it here
>> >> >
>> >> > thanks
>> >> >
>> >> > Kenji
>> >> >
>> >> > []
>> >> >
>> >> > Leo
>> >> >
>> >> >
>> >> > On Fri, Jan 31, 2014 at 3:52 PM, James Carman <
>> >> james@carmanconsulting.com>wrote:
>> >> >
>> >> >> Care to briefly share your resolution?  Other folks might run into
>> the
>> >> >> same issue.
>> >> >>
>> >> >> On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <
>> >> shikida@gmail.com>
>> >> >> wrote:
>> >> >> > problem solved
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > []
>> >> >> >
>> >> >> > Leo
>> >> >> >
>> >> >> >
>> >> >> > On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <
>> >> shikida@gmail.com
>> >> >> >wrote:
>> >> >> >
>> >> >> >> still struggling to make it work
>> >> >> >>
>> >> >> >> here's the complete problem description
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
>> >> >> >>
>> >> >> >> TIA
>> >> >> >>
>> >> >> >> Leo
>> >> >> >>
>> >> >> >> []
>> >> >> >>
>> >> >> >> Leo
>> >> >> >>
>> >> >> >>
>> >> >> >> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <
>> >> >> shikida@gmail.com>wrote:
>> >> >> >>
>> >> >> >>> Hi
>> >> >> >>>
>> >> >> >>> I had this configuration for tomee
>> >> >> >>>
>> >> >> >>>     <Resource id="Default JMS Resource Adapter"
>> >> >> >>> type="ActiveMQResourceAdapter">
>> >> >> >>>         BrokerXmlConfig =
>> >> >> broker:(tcp://localhost:61616)?persistent=true
>> >> >> >>>         ServerUrl = tcp://localhost:61616
>> >> >> >>>         DataSource = MyDataSource
>> >> >> >>>     </Resource>
>> >> >> >>>
>> >> >> >>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
>> >> >> >>>         JdbcDriver = oracle.jdbc.OracleDriver
>> >> >> >>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
>> >> >> >>>         UserName = xxxx
>> >> >> >>>         Password = xxxx
>> >> >> >>>     </Resource>
>> >> >> >>>
>> >> >> >>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>> >> >> >>>         ResourceAdapter = Default JMS Resource Adapter
>> >> >> >>>     </Container>
>> >> >> >>>
>> >> >> >>> 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"
>> >> >> >>> type="ActiveMQResourceAdapter">
>> >> >> >>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
>> >> >> >>>         ServerUrl = tcp://localhost:61616
>> >> >> >>>         DataSource = MyDataSource
>> >> >> >>>     </Resource>
>> >> >> >>>
>> >> >> >>> and added the same activemq.xml of
>> >> >> >>> http://activemq.apache.org/xml-configuration.html, just adding
>> >> >> >>>
>> >> >> >>>             <transportConnectors>
>> >> >> >>>                 <transportConnector name="anythingHere"
>> >> >> >>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
>> >> >> >>>             </transportConnectors>
>> >> >> >>>
>> >> >> >>> 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
>> >> >> >>>
>> >> >> >>> <persistenceAdapter>
>> >> >> >>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
>> >> >> >>> </persistenceAdapter>
>> >> >> >>>
>> >> >> >>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
>> >> >> >>> [4] am I missing anything else?
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> TIA
>> >> >> >>>
>> >> >> >>> Leo
>> >> >> >>>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
thanks, but I don't feel like I have authority to show the others the way.

it would be like a blind leading the blind

I just made mine work. If the options I am using are wisely chosen, this is
questionable

;-)

[]

Leo

[]

Leo


On Fri, Jan 31, 2014 at 4:30 PM, James Carman <ja...@carmanconsulting.com>wrote:

> Agreed!  Feel free to request access to the wiki, so that you can help
> out with docs (perhaps putting some snippets from your blog post).
> You'll need to file an ICLA first if you haven't done so already.
>
> On Fri, Jan 31, 2014 at 1:26 PM, Leonardo K. Shikida <sh...@gmail.com>
> wrote:
> > np
> >
> > I wish activemq have more examples in the online docs
> >
> > sometimes, an example tells more and faster than a bunch of API
> definitions
> >
> > []
> >
> > Leo
> >
> >
> > On Fri, Jan 31, 2014 at 4:12 PM, James Carman <
> james@carmanconsulting.com>wrote:
> >
> >> Great.  Glad you figured it out and sorry we couldn't help you out.
> >>
> >> On Fri, Jan 31, 2014 at 1:07 PM, Leonardo K. Shikida <shikida@gmail.com
> >
> >> wrote:
> >> > sure, I'll write a big blog post and then I'll share it here
> >> >
> >> > thanks
> >> >
> >> > Kenji
> >> >
> >> > []
> >> >
> >> > Leo
> >> >
> >> >
> >> > On Fri, Jan 31, 2014 at 3:52 PM, James Carman <
> >> james@carmanconsulting.com>wrote:
> >> >
> >> >> Care to briefly share your resolution?  Other folks might run into
> the
> >> >> same issue.
> >> >>
> >> >> On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <
> >> shikida@gmail.com>
> >> >> wrote:
> >> >> > problem solved
> >> >> >
> >> >> >
> >> >> >
> >> >> > []
> >> >> >
> >> >> > Leo
> >> >> >
> >> >> >
> >> >> > On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <
> >> shikida@gmail.com
> >> >> >wrote:
> >> >> >
> >> >> >> still struggling to make it work
> >> >> >>
> >> >> >> here's the complete problem description
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >>
> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
> >> >> >>
> >> >> >> TIA
> >> >> >>
> >> >> >> Leo
> >> >> >>
> >> >> >> []
> >> >> >>
> >> >> >> Leo
> >> >> >>
> >> >> >>
> >> >> >> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <
> >> >> shikida@gmail.com>wrote:
> >> >> >>
> >> >> >>> Hi
> >> >> >>>
> >> >> >>> I had this configuration for tomee
> >> >> >>>
> >> >> >>>     <Resource id="Default JMS Resource Adapter"
> >> >> >>> type="ActiveMQResourceAdapter">
> >> >> >>>         BrokerXmlConfig =
> >> >> broker:(tcp://localhost:61616)?persistent=true
> >> >> >>>         ServerUrl = tcp://localhost:61616
> >> >> >>>         DataSource = MyDataSource
> >> >> >>>     </Resource>
> >> >> >>>
> >> >> >>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
> >> >> >>>         JdbcDriver = oracle.jdbc.OracleDriver
> >> >> >>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
> >> >> >>>         UserName = xxxx
> >> >> >>>         Password = xxxx
> >> >> >>>     </Resource>
> >> >> >>>
> >> >> >>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
> >> >> >>>         ResourceAdapter = Default JMS Resource Adapter
> >> >> >>>     </Container>
> >> >> >>>
> >> >> >>> 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"
> >> >> >>> type="ActiveMQResourceAdapter">
> >> >> >>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
> >> >> >>>         ServerUrl = tcp://localhost:61616
> >> >> >>>         DataSource = MyDataSource
> >> >> >>>     </Resource>
> >> >> >>>
> >> >> >>> and added the same activemq.xml of
> >> >> >>> http://activemq.apache.org/xml-configuration.html, just adding
> >> >> >>>
> >> >> >>>             <transportConnectors>
> >> >> >>>                 <transportConnector name="anythingHere"
> >> >> >>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
> >> >> >>>             </transportConnectors>
> >> >> >>>
> >> >> >>> 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
> >> >> >>>
> >> >> >>> <persistenceAdapter>
> >> >> >>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
> >> >> >>> </persistenceAdapter>
> >> >> >>>
> >> >> >>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
> >> >> >>> [4] am I missing anything else?
> >> >> >>>
> >> >> >>>
> >> >> >>> TIA
> >> >> >>>
> >> >> >>> Leo
> >> >> >>>
> >> >> >>
> >> >> >>
> >> >>
> >>
>

Re: how to configure activemq jdbc persistence under tomee?

Posted by James Carman <ja...@carmanconsulting.com>.
Agreed!  Feel free to request access to the wiki, so that you can help
out with docs (perhaps putting some snippets from your blog post).
You'll need to file an ICLA first if you haven't done so already.

On Fri, Jan 31, 2014 at 1:26 PM, Leonardo K. Shikida <sh...@gmail.com> wrote:
> np
>
> I wish activemq have more examples in the online docs
>
> sometimes, an example tells more and faster than a bunch of API definitions
>
> []
>
> Leo
>
>
> On Fri, Jan 31, 2014 at 4:12 PM, James Carman <ja...@carmanconsulting.com>wrote:
>
>> Great.  Glad you figured it out and sorry we couldn't help you out.
>>
>> On Fri, Jan 31, 2014 at 1:07 PM, Leonardo K. Shikida <sh...@gmail.com>
>> wrote:
>> > sure, I'll write a big blog post and then I'll share it here
>> >
>> > thanks
>> >
>> > Kenji
>> >
>> > []
>> >
>> > Leo
>> >
>> >
>> > On Fri, Jan 31, 2014 at 3:52 PM, James Carman <
>> james@carmanconsulting.com>wrote:
>> >
>> >> Care to briefly share your resolution?  Other folks might run into the
>> >> same issue.
>> >>
>> >> On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <
>> shikida@gmail.com>
>> >> wrote:
>> >> > problem solved
>> >> >
>> >> >
>> >> >
>> >> > []
>> >> >
>> >> > Leo
>> >> >
>> >> >
>> >> > On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <
>> shikida@gmail.com
>> >> >wrote:
>> >> >
>> >> >> still struggling to make it work
>> >> >>
>> >> >> here's the complete problem description
>> >> >>
>> >> >>
>> >> >>
>> >>
>> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
>> >> >>
>> >> >> TIA
>> >> >>
>> >> >> Leo
>> >> >>
>> >> >> []
>> >> >>
>> >> >> Leo
>> >> >>
>> >> >>
>> >> >> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <
>> >> shikida@gmail.com>wrote:
>> >> >>
>> >> >>> Hi
>> >> >>>
>> >> >>> I had this configuration for tomee
>> >> >>>
>> >> >>>     <Resource id="Default JMS Resource Adapter"
>> >> >>> type="ActiveMQResourceAdapter">
>> >> >>>         BrokerXmlConfig =
>> >> broker:(tcp://localhost:61616)?persistent=true
>> >> >>>         ServerUrl = tcp://localhost:61616
>> >> >>>         DataSource = MyDataSource
>> >> >>>     </Resource>
>> >> >>>
>> >> >>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
>> >> >>>         JdbcDriver = oracle.jdbc.OracleDriver
>> >> >>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
>> >> >>>         UserName = xxxx
>> >> >>>         Password = xxxx
>> >> >>>     </Resource>
>> >> >>>
>> >> >>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>> >> >>>         ResourceAdapter = Default JMS Resource Adapter
>> >> >>>     </Container>
>> >> >>>
>> >> >>> 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"
>> >> >>> type="ActiveMQResourceAdapter">
>> >> >>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
>> >> >>>         ServerUrl = tcp://localhost:61616
>> >> >>>         DataSource = MyDataSource
>> >> >>>     </Resource>
>> >> >>>
>> >> >>> and added the same activemq.xml of
>> >> >>> http://activemq.apache.org/xml-configuration.html, just adding
>> >> >>>
>> >> >>>             <transportConnectors>
>> >> >>>                 <transportConnector name="anythingHere"
>> >> >>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
>> >> >>>             </transportConnectors>
>> >> >>>
>> >> >>> 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
>> >> >>>
>> >> >>> <persistenceAdapter>
>> >> >>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
>> >> >>> </persistenceAdapter>
>> >> >>>
>> >> >>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
>> >> >>> [4] am I missing anything else?
>> >> >>>
>> >> >>>
>> >> >>> TIA
>> >> >>>
>> >> >>> Leo
>> >> >>>
>> >> >>
>> >> >>
>> >>
>>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
np

I wish activemq have more examples in the online docs

sometimes, an example tells more and faster than a bunch of API definitions

[]

Leo


On Fri, Jan 31, 2014 at 4:12 PM, James Carman <ja...@carmanconsulting.com>wrote:

> Great.  Glad you figured it out and sorry we couldn't help you out.
>
> On Fri, Jan 31, 2014 at 1:07 PM, Leonardo K. Shikida <sh...@gmail.com>
> wrote:
> > sure, I'll write a big blog post and then I'll share it here
> >
> > thanks
> >
> > Kenji
> >
> > []
> >
> > Leo
> >
> >
> > On Fri, Jan 31, 2014 at 3:52 PM, James Carman <
> james@carmanconsulting.com>wrote:
> >
> >> Care to briefly share your resolution?  Other folks might run into the
> >> same issue.
> >>
> >> On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <
> shikida@gmail.com>
> >> wrote:
> >> > problem solved
> >> >
> >> >
> >> >
> >> > []
> >> >
> >> > Leo
> >> >
> >> >
> >> > On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <
> shikida@gmail.com
> >> >wrote:
> >> >
> >> >> still struggling to make it work
> >> >>
> >> >> here's the complete problem description
> >> >>
> >> >>
> >> >>
> >>
> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
> >> >>
> >> >> TIA
> >> >>
> >> >> Leo
> >> >>
> >> >> []
> >> >>
> >> >> Leo
> >> >>
> >> >>
> >> >> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <
> >> shikida@gmail.com>wrote:
> >> >>
> >> >>> Hi
> >> >>>
> >> >>> I had this configuration for tomee
> >> >>>
> >> >>>     <Resource id="Default JMS Resource Adapter"
> >> >>> type="ActiveMQResourceAdapter">
> >> >>>         BrokerXmlConfig =
> >> broker:(tcp://localhost:61616)?persistent=true
> >> >>>         ServerUrl = tcp://localhost:61616
> >> >>>         DataSource = MyDataSource
> >> >>>     </Resource>
> >> >>>
> >> >>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
> >> >>>         JdbcDriver = oracle.jdbc.OracleDriver
> >> >>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
> >> >>>         UserName = xxxx
> >> >>>         Password = xxxx
> >> >>>     </Resource>
> >> >>>
> >> >>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
> >> >>>         ResourceAdapter = Default JMS Resource Adapter
> >> >>>     </Container>
> >> >>>
> >> >>> 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"
> >> >>> type="ActiveMQResourceAdapter">
> >> >>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
> >> >>>         ServerUrl = tcp://localhost:61616
> >> >>>         DataSource = MyDataSource
> >> >>>     </Resource>
> >> >>>
> >> >>> and added the same activemq.xml of
> >> >>> http://activemq.apache.org/xml-configuration.html, just adding
> >> >>>
> >> >>>             <transportConnectors>
> >> >>>                 <transportConnector name="anythingHere"
> >> >>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
> >> >>>             </transportConnectors>
> >> >>>
> >> >>> 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
> >> >>>
> >> >>> <persistenceAdapter>
> >> >>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
> >> >>> </persistenceAdapter>
> >> >>>
> >> >>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
> >> >>> [4] am I missing anything else?
> >> >>>
> >> >>>
> >> >>> TIA
> >> >>>
> >> >>> Leo
> >> >>>
> >> >>
> >> >>
> >>
>

Re: how to configure activemq jdbc persistence under tomee?

Posted by James Carman <ja...@carmanconsulting.com>.
Great.  Glad you figured it out and sorry we couldn't help you out.

On Fri, Jan 31, 2014 at 1:07 PM, Leonardo K. Shikida <sh...@gmail.com> wrote:
> sure, I'll write a big blog post and then I'll share it here
>
> thanks
>
> Kenji
>
> []
>
> Leo
>
>
> On Fri, Jan 31, 2014 at 3:52 PM, James Carman <ja...@carmanconsulting.com>wrote:
>
>> Care to briefly share your resolution?  Other folks might run into the
>> same issue.
>>
>> On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <sh...@gmail.com>
>> wrote:
>> > problem solved
>> >
>> >
>> >
>> > []
>> >
>> > Leo
>> >
>> >
>> > On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <shikida@gmail.com
>> >wrote:
>> >
>> >> still struggling to make it work
>> >>
>> >> here's the complete problem description
>> >>
>> >>
>> >>
>> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
>> >>
>> >> TIA
>> >>
>> >> Leo
>> >>
>> >> []
>> >>
>> >> Leo
>> >>
>> >>
>> >> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <
>> shikida@gmail.com>wrote:
>> >>
>> >>> Hi
>> >>>
>> >>> I had this configuration for tomee
>> >>>
>> >>>     <Resource id="Default JMS Resource Adapter"
>> >>> type="ActiveMQResourceAdapter">
>> >>>         BrokerXmlConfig =
>> broker:(tcp://localhost:61616)?persistent=true
>> >>>         ServerUrl = tcp://localhost:61616
>> >>>         DataSource = MyDataSource
>> >>>     </Resource>
>> >>>
>> >>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
>> >>>         JdbcDriver = oracle.jdbc.OracleDriver
>> >>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
>> >>>         UserName = xxxx
>> >>>         Password = xxxx
>> >>>     </Resource>
>> >>>
>> >>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>> >>>         ResourceAdapter = Default JMS Resource Adapter
>> >>>     </Container>
>> >>>
>> >>> 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"
>> >>> type="ActiveMQResourceAdapter">
>> >>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
>> >>>         ServerUrl = tcp://localhost:61616
>> >>>         DataSource = MyDataSource
>> >>>     </Resource>
>> >>>
>> >>> and added the same activemq.xml of
>> >>> http://activemq.apache.org/xml-configuration.html, just adding
>> >>>
>> >>>             <transportConnectors>
>> >>>                 <transportConnector name="anythingHere"
>> >>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
>> >>>             </transportConnectors>
>> >>>
>> >>> 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
>> >>>
>> >>> <persistenceAdapter>
>> >>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
>> >>> </persistenceAdapter>
>> >>>
>> >>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
>> >>> [4] am I missing anything else?
>> >>>
>> >>>
>> >>> TIA
>> >>>
>> >>> Leo
>> >>>
>> >>
>> >>
>>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
sure, I'll write a big blog post and then I'll share it here

thanks

Kenji

[]

Leo


On Fri, Jan 31, 2014 at 3:52 PM, James Carman <ja...@carmanconsulting.com>wrote:

> Care to briefly share your resolution?  Other folks might run into the
> same issue.
>
> On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <sh...@gmail.com>
> wrote:
> > problem solved
> >
> >
> >
> > []
> >
> > Leo
> >
> >
> > On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <shikida@gmail.com
> >wrote:
> >
> >> still struggling to make it work
> >>
> >> here's the complete problem description
> >>
> >>
> >>
> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
> >>
> >> TIA
> >>
> >> Leo
> >>
> >> []
> >>
> >> Leo
> >>
> >>
> >> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <
> shikida@gmail.com>wrote:
> >>
> >>> Hi
> >>>
> >>> I had this configuration for tomee
> >>>
> >>>     <Resource id="Default JMS Resource Adapter"
> >>> type="ActiveMQResourceAdapter">
> >>>         BrokerXmlConfig =
> broker:(tcp://localhost:61616)?persistent=true
> >>>         ServerUrl = tcp://localhost:61616
> >>>         DataSource = MyDataSource
> >>>     </Resource>
> >>>
> >>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
> >>>         JdbcDriver = oracle.jdbc.OracleDriver
> >>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
> >>>         UserName = xxxx
> >>>         Password = xxxx
> >>>     </Resource>
> >>>
> >>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
> >>>         ResourceAdapter = Default JMS Resource Adapter
> >>>     </Container>
> >>>
> >>> 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"
> >>> type="ActiveMQResourceAdapter">
> >>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
> >>>         ServerUrl = tcp://localhost:61616
> >>>         DataSource = MyDataSource
> >>>     </Resource>
> >>>
> >>> and added the same activemq.xml of
> >>> http://activemq.apache.org/xml-configuration.html, just adding
> >>>
> >>>             <transportConnectors>
> >>>                 <transportConnector name="anythingHere"
> >>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
> >>>             </transportConnectors>
> >>>
> >>> 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
> >>>
> >>> <persistenceAdapter>
> >>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
> >>> </persistenceAdapter>
> >>>
> >>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
> >>> [4] am I missing anything else?
> >>>
> >>>
> >>> TIA
> >>>
> >>> Leo
> >>>
> >>
> >>
>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
yeah.

how did I figured out => how did Romain, Andy and Ralf helped me actually
:-)

Romain is a saint

(to tell the whole story, add
http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087#21480087to
this)

;-)

[]

Leo


[]

Leo


On Fri, Jan 31, 2014 at 6:02 PM, Howard W. Smith, Jr. <
smithh032772@gmail.com> wrote:

> On Fri, Jan 31, 2014 at 12:52 PM, James Carman
> <ja...@carmanconsulting.com>wrote:
>
> > Care to briefly share your resolution?  Other folks might run into the
> > same issue.
> >
>
> Click URL below. :)
>
>
> http://openejb.979440.n4.nabble.com/adding-more-memory-to-embedded-activemq-in-tomee-td4667373.html
>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Fri, Jan 31, 2014 at 12:52 PM, James Carman
<ja...@carmanconsulting.com>wrote:

> Care to briefly share your resolution?  Other folks might run into the
> same issue.
>

Click URL below. :)

http://openejb.979440.n4.nabble.com/adding-more-memory-to-embedded-activemq-in-tomee-td4667373.html

Re: how to configure activemq jdbc persistence under tomee?

Posted by James Carman <ja...@carmanconsulting.com>.
Care to briefly share your resolution?  Other folks might run into the
same issue.

On Fri, Jan 31, 2014 at 12:48 PM, Leonardo K. Shikida <sh...@gmail.com> wrote:
> problem solved
>
>
>
> []
>
> Leo
>
>
> On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <sh...@gmail.com>wrote:
>
>> still struggling to make it work
>>
>> here's the complete problem description
>>
>>
>> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
>>
>> TIA
>>
>> Leo
>>
>> []
>>
>> Leo
>>
>>
>> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <sh...@gmail.com>wrote:
>>
>>> Hi
>>>
>>> I had this configuration for tomee
>>>
>>>     <Resource id="Default JMS Resource Adapter"
>>> type="ActiveMQResourceAdapter">
>>>         BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=true
>>>         ServerUrl = tcp://localhost:61616
>>>         DataSource = MyDataSource
>>>     </Resource>
>>>
>>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
>>>         JdbcDriver = oracle.jdbc.OracleDriver
>>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
>>>         UserName = xxxx
>>>         Password = xxxx
>>>     </Resource>
>>>
>>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>>>         ResourceAdapter = Default JMS Resource Adapter
>>>     </Container>
>>>
>>> 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"
>>> type="ActiveMQResourceAdapter">
>>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
>>>         ServerUrl = tcp://localhost:61616
>>>         DataSource = MyDataSource
>>>     </Resource>
>>>
>>> and added the same activemq.xml of
>>> http://activemq.apache.org/xml-configuration.html, just adding
>>>
>>>             <transportConnectors>
>>>                 <transportConnector name="anythingHere"
>>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
>>>             </transportConnectors>
>>>
>>> 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
>>>
>>> <persistenceAdapter>
>>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
>>> </persistenceAdapter>
>>>
>>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
>>> [4] am I missing anything else?
>>>
>>>
>>> TIA
>>>
>>> Leo
>>>
>>
>>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
problem solved



[]

Leo


On Fri, Jan 31, 2014 at 3:23 PM, Leonardo K. Shikida <sh...@gmail.com>wrote:

> still struggling to make it work
>
> here's the complete problem description
>
>
> http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087
>
> TIA
>
> Leo
>
> []
>
> Leo
>
>
> On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <sh...@gmail.com>wrote:
>
>> Hi
>>
>> I had this configuration for tomee
>>
>>     <Resource id="Default JMS Resource Adapter"
>> type="ActiveMQResourceAdapter">
>>         BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=true
>>         ServerUrl = tcp://localhost:61616
>>         DataSource = MyDataSource
>>     </Resource>
>>
>>     <Resource id="MyDataSource" type="javax.sql.DataSource">
>>         JdbcDriver = oracle.jdbc.OracleDriver
>>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
>>         UserName = xxxx
>>         Password = xxxx
>>     </Resource>
>>
>>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>>         ResourceAdapter = Default JMS Resource Adapter
>>     </Container>
>>
>> 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"
>> type="ActiveMQResourceAdapter">
>>         BrokerXmlConfig = xbean:file:conf/activemq.xml
>>         ServerUrl = tcp://localhost:61616
>>         DataSource = MyDataSource
>>     </Resource>
>>
>> and added the same activemq.xml of
>> http://activemq.apache.org/xml-configuration.html, just adding
>>
>>             <transportConnectors>
>>                 <transportConnector name="anythingHere"
>> uri="broker:(tcp://localhost:61616)?persistent=true"/>
>>             </transportConnectors>
>>
>> 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
>>
>> <persistenceAdapter>
>>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
>> </persistenceAdapter>
>>
>> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
>> [4] am I missing anything else?
>>
>>
>> TIA
>>
>> Leo
>>
>
>

Re: how to configure activemq jdbc persistence under tomee?

Posted by "Leonardo K. Shikida" <sh...@gmail.com>.
still struggling to make it work

here's the complete problem description

http://stackoverflow.com/questions/21479156/how-to-configure-activemq-memory-settings-under-apache-tomee/21480087

TIA

Leo

[]

Leo


On Fri, Jan 31, 2014 at 10:52 AM, Leonardo K. Shikida <sh...@gmail.com>wrote:

> Hi
>
> I had this configuration for tomee
>
>     <Resource id="Default JMS Resource Adapter"
> type="ActiveMQResourceAdapter">
>         BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=true
>         ServerUrl = tcp://localhost:61616
>         DataSource = MyDataSource
>     </Resource>
>
>     <Resource id="MyDataSource" type="javax.sql.DataSource">
>         JdbcDriver = oracle.jdbc.OracleDriver
>         JdbcUrl = jdbc:oracle:thin:@localhost:1521:XE
>         UserName = xxxx
>         Password = xxxx
>     </Resource>
>
>     <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>         ResourceAdapter = Default JMS Resource Adapter
>     </Container>
>
> 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"
> type="ActiveMQResourceAdapter">
>         BrokerXmlConfig = xbean:file:conf/activemq.xml
>         ServerUrl = tcp://localhost:61616
>         DataSource = MyDataSource
>     </Resource>
>
> and added the same activemq.xml of
> http://activemq.apache.org/xml-configuration.html, just adding
>
>             <transportConnectors>
>                 <transportConnector name="anythingHere"
> uri="broker:(tcp://localhost:61616)?persistent=true"/>
>             </transportConnectors>
>
> 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
>
> <persistenceAdapter>
>       <jdbcPersistenceAdapter dataSource="#my-ds"/>
> </persistenceAdapter>
>
> [3] where do I have to set my-ds? at tomee.xml or somewhere else?
> [4] am I missing anything else?
>
>
> TIA
>
> Leo
>