You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by jonathan_at_svg <jo...@springventuregroup.com> on 2015/10/05 19:44:14 UTC

Anyone have Artemis working with Apache TomEE?

Anyone have Artemis working with Apache TomEE? Hoping to find someone with a
tutorial or a working service.xml... 





--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
Thanks, that gets me a bit further. 

You can follow my progress here:
http://tomee-openejb.979440.n4.nabble.com/ActiveMQ-Artemis-td4676407.html


Looks like the connector is starting to start...



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702635.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
An alternative may be to simply implement the
javax.resource.spi.DissociatableManagedConnection interface if that's
possible... Romain said that's one of the big reason they create proxies is
to do connection tracking.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702736.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Jonathan Gallimore <jo...@gmail.com>.
JIRA opened: https://issues.apache.org/jira/browse/ARTEMIS-1321. That
commit should be updated now - hope its all ok. Many thanks for this!

Jon

On Wed, Aug 2, 2017 at 11:42 PM, Jonathan Gallimore <
jonathan.gallimore@gmail.com> wrote:

> Sure thing - I'll do that JIRA now and make the change. I haven't done
> much with the CLI (just created a broker really), but I'd love to help out
> with that. I can dig in later this week. No doubt I'll have some questions,
> I'll come back with those once I've taken an initial look.
>
> Cheers
>
> Jon
>
> On Wed, Aug 2, 2017 at 11:38 PM, Clebert Suconic <
> clebert.suconic@gmail.com> wrote:
>
>> I just requested you a change (just adding a JIRA to the commit)
>>
>>
>> and would you help us documenting, and perhaps contributing a patch to
>> the CLI? we can collaborate on that.
>>
>> On Wed, Aug 2, 2017 at 6:29 PM, Clebert Suconic
>> <cl...@gmail.com> wrote:
>> > Will merge it shortly.
>> >
>> >
>> > I wanted to have the cli being able to install the RA on tommee.  Like:
>> >
>> >
>> > Artemis tomee /tomeefolder
>> >
>> > On Wed, Aug 2, 2017 at 5:55 PM jgallimore <jonathan.gallimore@gmail.com
>> >
>> > wrote:
>> >>
>> >> I appreciate this is quite an old thread... but I think I have a
>> working
>> >> patch for TomEE that enables TomEE to use Artemis as a JMS provider.
>> The
>> >> only issue that I have run into is that TomEE's proxy generation
>> >> effectively
>> >> creates a subclass, and the 'final' modifier on
>> >> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
>> >> working.
>> >>
>> >> Is it possible to remove this modifier? I created a PR here:
>> >> https://github.com/apache/activemq-artemis/pull/1437
>> >>
>> >> Any feedback is welcome. Thanks in advance.
>> >>
>> >> Jon
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-
>> working-with-Apache-TomEE-tp4702611p4729190.html
>> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >
>> > --
>> > Clebert Suconic
>>
>>
>>
>> --
>> Clebert Suconic
>>
>
>

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
I just wanted to encapsulate whatever is needed and being a two lines
operation for users.  As easy as creating a server. That would be great.

On Wed, Aug 2, 2017 at 7:33 PM Jonathan Gallimore <
jonathan.gallimore@gmail.com> wrote:

> This is the patch for TomEE: https://github.com/apache/tomee/pull/99/ -
> I'm
> giving folks an opportunity to give some feedback before I merge it in. All
> being well, I should be able to merge that soon. To get this working in
> TomEE, Jonathan Fisher actually did the vast majority of the work here, and
> posted his service-jar.xml, tomee.xml and setup. I took that an wrapped it
> into a little test project here:
> https://github.com/jgallimore/artemis-setup
>
> The core module in this project defines a service-jar.xml file and has
> TomEE use that instead of the one that is baked in. The service-jar.xml
> file provides the defaults for the resource adapter, connection factory,
> queues and topics. Any of these resources which are used in an app, but not
> defined in tomee.xml, will pick up these defaults. The distribution module
> creates a pre-built TomEE with the necessary artemis jars added, and the
> test app includes a tomee.xml config file I used to test.
>
> Long story short, the following needs to be done to TomEE to use Artemis:
>
> * This:
>
> https://github.com/jgallimore/artemis-setup/blob/master/core/src/main/resources/META-INF/org.tomitribe.tomee.artemis/service-jar.xml
> needs to be deployed on the classpath
> under META-INF/org.tomitribe.tomee.artemis/service-jar.xml
> * The system property "openejb.provider.default" needs to be set to
> "org.tomitribe.tomee.artemis" (or whatever name you used under META-INF in
> the previous step) to pick up the service-jar.xml file
> * Add these libraries to TomEE's lib directory:
>
> https://github.com/jgallimore/artemis-setup/blob/master/distribution/pom.xml#L76-L92
> * Point the RA to the broker: by adding config to conf/tomee.xml:
> https://github.com/jgallimore/artemis-setup/blob/master/test/tomee.xml
>
> Its getting late here now, but I'll take a look at the CLI code tomorrow
> evening. Looking forward to working on that and collaborating with you.
>
> Cheers,
>
> Jon
>
> On Thu, Aug 3, 2017 at 12:10 AM, Clebert Suconic <
> clebert.suconic@gmail.com>
> wrote:
>
> > If you give me some pointers on what is needed to run Tomee with Artemis?
> >
> > On Wed, Aug 2, 2017 at 6:42 PM, Jonathan Gallimore
> > <jo...@gmail.com> wrote:
> > > Sure thing - I'll do that JIRA now and make the change. I haven't done
> > much
> > > with the CLI (just created a broker really), but I'd love to help out
> > with
> > > that. I can dig in later this week. No doubt I'll have some questions,
> > I'll
> > > come back with those once I've taken an initial look.
> > >
> > > Cheers
> > >
> > > Jon
> > >
> > > On Wed, Aug 2, 2017 at 11:38 PM, Clebert Suconic <
> > clebert.suconic@gmail.com>
> > > wrote:
> > >
> > >> I just requested you a change (just adding a JIRA to the commit)
> > >>
> > >>
> > >> and would you help us documenting, and perhaps contributing a patch to
> > >> the CLI? we can collaborate on that.
> > >>
> > >> On Wed, Aug 2, 2017 at 6:29 PM, Clebert Suconic
> > >> <cl...@gmail.com> wrote:
> > >> > Will merge it shortly.
> > >> >
> > >> >
> > >> > I wanted to have the cli being able to install the RA on tommee.
> > Like:
> > >> >
> > >> >
> > >> > Artemis tomee /tomeefolder
> > >> >
> > >> > On Wed, Aug 2, 2017 at 5:55 PM jgallimore <
> > jonathan.gallimore@gmail.com>
> > >> > wrote:
> > >> >>
> > >> >> I appreciate this is quite an old thread... but I think I have a
> > working
> > >> >> patch for TomEE that enables TomEE to use Artemis as a JMS
> provider.
> > The
> > >> >> only issue that I have run into is that TomEE's proxy generation
> > >> >> effectively
> > >> >> creates a subclass, and the 'final' modifier on
> > >> >> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
> > >> >> working.
> > >> >>
> > >> >> Is it possible to remove this modifier? I created a PR here:
> > >> >> https://github.com/apache/activemq-artemis/pull/1437
> > >> >>
> > >> >> Any feedback is welcome. Thanks in advance.
> > >> >>
> > >> >> Jon
> > >> >>
> > >> >>
> > >> >>
> > >> >> --
> > >> >> View this message in context:
> > >> >> http://activemq.2283324.n4.nabble.com/Anyone-have-
> > >> Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
> > >> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> > >> >
> > >> > --
> > >> > Clebert Suconic
> > >>
> > >>
> > >>
> > >> --
> > >> Clebert Suconic
> > >>
> >
> >
> >
> > --
> > Clebert Suconic
> >
>
-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by Jonathan Gallimore <jo...@gmail.com>.
This is the patch for TomEE: https://github.com/apache/tomee/pull/99/ - I'm
giving folks an opportunity to give some feedback before I merge it in. All
being well, I should be able to merge that soon. To get this working in
TomEE, Jonathan Fisher actually did the vast majority of the work here, and
posted his service-jar.xml, tomee.xml and setup. I took that an wrapped it
into a little test project here: https://github.com/jgallimore/artemis-setup

The core module in this project defines a service-jar.xml file and has
TomEE use that instead of the one that is baked in. The service-jar.xml
file provides the defaults for the resource adapter, connection factory,
queues and topics. Any of these resources which are used in an app, but not
defined in tomee.xml, will pick up these defaults. The distribution module
creates a pre-built TomEE with the necessary artemis jars added, and the
test app includes a tomee.xml config file I used to test.

Long story short, the following needs to be done to TomEE to use Artemis:

* This:
https://github.com/jgallimore/artemis-setup/blob/master/core/src/main/resources/META-INF/org.tomitribe.tomee.artemis/service-jar.xml
needs to be deployed on the classpath
under META-INF/org.tomitribe.tomee.artemis/service-jar.xml
* The system property "openejb.provider.default" needs to be set to
"org.tomitribe.tomee.artemis" (or whatever name you used under META-INF in
the previous step) to pick up the service-jar.xml file
* Add these libraries to TomEE's lib directory:
https://github.com/jgallimore/artemis-setup/blob/master/distribution/pom.xml#L76-L92
* Point the RA to the broker: by adding config to conf/tomee.xml:
https://github.com/jgallimore/artemis-setup/blob/master/test/tomee.xml

Its getting late here now, but I'll take a look at the CLI code tomorrow
evening. Looking forward to working on that and collaborating with you.

Cheers,

Jon

On Thu, Aug 3, 2017 at 12:10 AM, Clebert Suconic <cl...@gmail.com>
wrote:

> If you give me some pointers on what is needed to run Tomee with Artemis?
>
> On Wed, Aug 2, 2017 at 6:42 PM, Jonathan Gallimore
> <jo...@gmail.com> wrote:
> > Sure thing - I'll do that JIRA now and make the change. I haven't done
> much
> > with the CLI (just created a broker really), but I'd love to help out
> with
> > that. I can dig in later this week. No doubt I'll have some questions,
> I'll
> > come back with those once I've taken an initial look.
> >
> > Cheers
> >
> > Jon
> >
> > On Wed, Aug 2, 2017 at 11:38 PM, Clebert Suconic <
> clebert.suconic@gmail.com>
> > wrote:
> >
> >> I just requested you a change (just adding a JIRA to the commit)
> >>
> >>
> >> and would you help us documenting, and perhaps contributing a patch to
> >> the CLI? we can collaborate on that.
> >>
> >> On Wed, Aug 2, 2017 at 6:29 PM, Clebert Suconic
> >> <cl...@gmail.com> wrote:
> >> > Will merge it shortly.
> >> >
> >> >
> >> > I wanted to have the cli being able to install the RA on tommee.
> Like:
> >> >
> >> >
> >> > Artemis tomee /tomeefolder
> >> >
> >> > On Wed, Aug 2, 2017 at 5:55 PM jgallimore <
> jonathan.gallimore@gmail.com>
> >> > wrote:
> >> >>
> >> >> I appreciate this is quite an old thread... but I think I have a
> working
> >> >> patch for TomEE that enables TomEE to use Artemis as a JMS provider.
> The
> >> >> only issue that I have run into is that TomEE's proxy generation
> >> >> effectively
> >> >> creates a subclass, and the 'final' modifier on
> >> >> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
> >> >> working.
> >> >>
> >> >> Is it possible to remove this modifier? I created a PR here:
> >> >> https://github.com/apache/activemq-artemis/pull/1437
> >> >>
> >> >> Any feedback is welcome. Thanks in advance.
> >> >>
> >> >> Jon
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >> http://activemq.2283324.n4.nabble.com/Anyone-have-
> >> Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
> >> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >> >
> >> > --
> >> > Clebert Suconic
> >>
> >>
> >>
> >> --
> >> Clebert Suconic
> >>
>
>
>
> --
> Clebert Suconic
>

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
If you give me some pointers on what is needed to run Tomee with Artemis?

On Wed, Aug 2, 2017 at 6:42 PM, Jonathan Gallimore
<jo...@gmail.com> wrote:
> Sure thing - I'll do that JIRA now and make the change. I haven't done much
> with the CLI (just created a broker really), but I'd love to help out with
> that. I can dig in later this week. No doubt I'll have some questions, I'll
> come back with those once I've taken an initial look.
>
> Cheers
>
> Jon
>
> On Wed, Aug 2, 2017 at 11:38 PM, Clebert Suconic <cl...@gmail.com>
> wrote:
>
>> I just requested you a change (just adding a JIRA to the commit)
>>
>>
>> and would you help us documenting, and perhaps contributing a patch to
>> the CLI? we can collaborate on that.
>>
>> On Wed, Aug 2, 2017 at 6:29 PM, Clebert Suconic
>> <cl...@gmail.com> wrote:
>> > Will merge it shortly.
>> >
>> >
>> > I wanted to have the cli being able to install the RA on tommee.  Like:
>> >
>> >
>> > Artemis tomee /tomeefolder
>> >
>> > On Wed, Aug 2, 2017 at 5:55 PM jgallimore <jo...@gmail.com>
>> > wrote:
>> >>
>> >> I appreciate this is quite an old thread... but I think I have a working
>> >> patch for TomEE that enables TomEE to use Artemis as a JMS provider. The
>> >> only issue that I have run into is that TomEE's proxy generation
>> >> effectively
>> >> creates a subclass, and the 'final' modifier on
>> >> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
>> >> working.
>> >>
>> >> Is it possible to remove this modifier? I created a PR here:
>> >> https://github.com/apache/activemq-artemis/pull/1437
>> >>
>> >> Any feedback is welcome. Thanks in advance.
>> >>
>> >> Jon
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://activemq.2283324.n4.nabble.com/Anyone-have-
>> Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
>> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >
>> > --
>> > Clebert Suconic
>>
>>
>>
>> --
>> Clebert Suconic
>>



-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by Jonathan Gallimore <jo...@gmail.com>.
Sure thing - I'll do that JIRA now and make the change. I haven't done much
with the CLI (just created a broker really), but I'd love to help out with
that. I can dig in later this week. No doubt I'll have some questions, I'll
come back with those once I've taken an initial look.

Cheers

Jon

On Wed, Aug 2, 2017 at 11:38 PM, Clebert Suconic <cl...@gmail.com>
wrote:

> I just requested you a change (just adding a JIRA to the commit)
>
>
> and would you help us documenting, and perhaps contributing a patch to
> the CLI? we can collaborate on that.
>
> On Wed, Aug 2, 2017 at 6:29 PM, Clebert Suconic
> <cl...@gmail.com> wrote:
> > Will merge it shortly.
> >
> >
> > I wanted to have the cli being able to install the RA on tommee.  Like:
> >
> >
> > Artemis tomee /tomeefolder
> >
> > On Wed, Aug 2, 2017 at 5:55 PM jgallimore <jo...@gmail.com>
> > wrote:
> >>
> >> I appreciate this is quite an old thread... but I think I have a working
> >> patch for TomEE that enables TomEE to use Artemis as a JMS provider. The
> >> only issue that I have run into is that TomEE's proxy generation
> >> effectively
> >> creates a subclass, and the 'final' modifier on
> >> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
> >> working.
> >>
> >> Is it possible to remove this modifier? I created a PR here:
> >> https://github.com/apache/activemq-artemis/pull/1437
> >>
> >> Any feedback is welcome. Thanks in advance.
> >>
> >> Jon
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://activemq.2283324.n4.nabble.com/Anyone-have-
> Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
> > --
> > Clebert Suconic
>
>
>
> --
> Clebert Suconic
>

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
I just requested you a change (just adding a JIRA to the commit)


and would you help us documenting, and perhaps contributing a patch to
the CLI? we can collaborate on that.

On Wed, Aug 2, 2017 at 6:29 PM, Clebert Suconic
<cl...@gmail.com> wrote:
> Will merge it shortly.
>
>
> I wanted to have the cli being able to install the RA on tommee.  Like:
>
>
> Artemis tomee /tomeefolder
>
> On Wed, Aug 2, 2017 at 5:55 PM jgallimore <jo...@gmail.com>
> wrote:
>>
>> I appreciate this is quite an old thread... but I think I have a working
>> patch for TomEE that enables TomEE to use Artemis as a JMS provider. The
>> only issue that I have run into is that TomEE's proxy generation
>> effectively
>> creates a subclass, and the 'final' modifier on
>> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
>> working.
>>
>> Is it possible to remove this modifier? I created a PR here:
>> https://github.com/apache/activemq-artemis/pull/1437
>>
>> Any feedback is welcome. Thanks in advance.
>>
>> Jon
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
> --
> Clebert Suconic



-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
Will merge it shortly.


I wanted to have the cli being able to install the RA on tommee.  Like:


Artemis tomee /tomeefolder

On Wed, Aug 2, 2017 at 5:55 PM jgallimore <jo...@gmail.com>
wrote:

> I appreciate this is quite an old thread... but I think I have a working
> patch for TomEE that enables TomEE to use Artemis as a JMS provider. The
> only issue that I have run into is that TomEE's proxy generation
> effectively
> creates a subclass, and the 'final' modifier on
> org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from
> working.
>
> Is it possible to remove this modifier? I created a PR here:
> https://github.com/apache/activemq-artemis/pull/1437
>
> Any feedback is welcome. Thanks in advance.
>
> Jon
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by jgallimore <jo...@gmail.com>.
I appreciate this is quite an old thread... but I think I have a working
patch for TomEE that enables TomEE to use Artemis as a JMS provider. The
only issue that I have run into is that TomEE's proxy generation effectively
creates a subclass, and the 'final' modifier on
org.apache.activemq.artemis.ra.ActiveMQRASession prevents this from working.

Is it possible to remove this modifier? I created a PR here:
https://github.com/apache/activemq-artemis/pull/1437

Any feedback is welcome. Thanks in advance.

Jon



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4729190.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
I'm a bit tied up now.. I'm planning to work on it next week, but I
welcome anyone (you?) on contributing a fix...


On Wed, Oct 7, 2015 at 2:36 PM, jonathan_at_svg
<jo...@springventuregroup.com> wrote:
> Yes, that is the main motivation. ...that and we burst messages. Like we'll
> be sitting idle for a bit, then suddenly need to send 500 messages in under
> a second. Inter-VM deals with traffic jams a lot better than TCP.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702735.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by Tim Bain <tb...@alumni.duke.edu>.
TCP can be tuned to deal better with bursty traffic if you prevent the
congestion window from closing on an idle connection via the
tcp_slow_start_after_idle kernel setting.  But if I remember correctly, you
have to control the settings of both hosts or it won't do much good.  And
nothing says you're not still better off using the vm transport.

Tim
On Oct 7, 2015 12:46 PM, "jonathan_at_svg" <jo...@springventuregroup.com>
wrote:

> Yes, that is the main motivation. ...that and we burst messages. Like we'll
> be sitting idle for a bit, then suddenly need to send 500 messages in under
> a second. Inter-VM deals with traffic jams a lot better than TCP.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702735.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
Yes, that is the main motivation. ...that and we burst messages. Like we'll
be sitting idle for a bit, then suddenly need to send 500 messages in under
a second. Inter-VM deals with traffic jams a lot better than TCP.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702735.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
Tomee is requiring an interface being returned by the ResourceAdapter
and we are returning an actual endpoint, what's causing some issues as
they can't play with a proxy.

We will have to do some work but I can't figure out what yet.

On Tue, Oct 6, 2015 at 11:21 AM, jonathan_at_svg
<jo...@springventuregroup.com> wrote:
> So ideally... It would be BA to have an embedded broker in the VM accepting
> connections "in VM", then a single (unreliable) TCP uplink to a centralized
> broker. This is the pattern we've been trying to get working with normal
> ActiveMQ, but the embedded ActiveMQ broker in TomEE will not pass messages
> upstream to an external ActiveMQ instance, (but oddly enough will happily
> exchange messages with other embedded brokers).
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702663.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
So ideally... It would be BA to have an embedded broker in the VM accepting
connections "in VM", then a single (unreliable) TCP uplink to a centralized
broker. This is the pattern we've been trying to get working with normal
ActiveMQ, but the embedded ActiveMQ broker in TomEE will not pass messages
upstream to an external ActiveMQ instance, (but oddly enough will happily
exchange messages with other embedded brokers).



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702663.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by andytaylor <an...@gmail.com>.
or

connectorClassName="org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory"
connectionParameters="server-id=0"

if you have a invm acceptor

On 05/10/15 22:22, Clebert Suconic [via ActiveMQ] wrote:
> I have been putting connectionURI everywhere I could, and it seems
> this is specifically missing that part:
>
>
> For now, you will have to specify:
>
> connectionParameters="host=127.0.0.1;port=5446"
> connectorClassName="org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory"
>
>
>
> If you provide me with anything to get to where you are, I could
> change the Spec to accept a parameter with an URI, so you could use
> "tcp://HOST:Port", what should be much simpler.
>
>
> On Mon, Oct 5, 2015 at 4:44 PM, jonathan_at_svg
> <[hidden email] </user/SendEmail.jtp?type=node&node=4702632&i=0>> wrote:
>
>  >
>  > Nice! Thanks I looked all over the javadoc and somehow missed that.
>  >
>  > Ok, the resource adapter needs configuration. Is that done via the
>  > connectionParameters property? If so, is there any docs on what goes
> into
>  > that field?
>  >
>  > Currently on boot I'm throwing this stack trace:
>  >
>  > Caused by: java.lang.IllegalArgumentException: must provide either
>  > TransportType or DiscoveryGroupAddress and DiscoveryGroupPort for
>  > ResourceAdapter Connection Factory
>  >         at
>  >
> org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.createActiveMQConnectionFactory(ActiveMQResourceAdapter.java:1707)
>
>  >         at
>  >
> org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.setup(ActiveMQResourceAdapter.java:1552)
>
>  >         at
>  >
> org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:245)
>
>  >         at
>  >
> org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:2629)
>
>  >         at
>  >
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2442)
>
>  >         at
>  >
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:527)
>
>  >         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:439)
>  >         ... 17 more
>  >
>  >
>  >
>  >
>  > --
>  > View this message in context:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702631.html
>  > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>
>
> --
> Clebert Suconic
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702632.html
>
> To start a new topic under ActiveMQ - User, email
> ml-node+s2283324n2341805h35@n4.nabble.com
> To unsubscribe from ActiveMQ - User, click here
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2341805&code=YW5keS50YXlsczY3QGdtYWlsLmNvbXwyMzQxODA1fC05MDE1NDk1MzM=>.
> NAML
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>





--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702647.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
I have been putting connectionURI everywhere I could, and it seems
this is specifically missing that part:


For now, you will have to specify:

connectionParameters="host=127.0.0.1;port=5446"
connectorClassName="org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory"


If you provide me with anything to get to where you are, I could
change the Spec to accept a parameter with an URI, so you could use
"tcp://HOST:Port", what should be much simpler.


On Mon, Oct 5, 2015 at 4:44 PM, jonathan_at_svg
<jo...@springventuregroup.com> wrote:
>
> Nice! Thanks I looked all over the javadoc and somehow missed that.
>
> Ok, the resource adapter needs configuration. Is that done via the
> connectionParameters property? If so, is there any docs on what goes into
> that field?
>
> Currently on boot I'm throwing this stack trace:
>
> Caused by: java.lang.IllegalArgumentException: must provide either
> TransportType or DiscoveryGroupAddress and DiscoveryGroupPort for
> ResourceAdapter Connection Factory
>         at
> org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.createActiveMQConnectionFactory(ActiveMQResourceAdapter.java:1707)
>         at
> org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.setup(ActiveMQResourceAdapter.java:1552)
>         at
> org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:245)
>         at
> org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:2629)
>         at
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2442)
>         at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:527)
>         at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:439)
>         ... 17 more
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702631.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.




-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
Nice! Thanks I looked all over the javadoc and somehow missed that.

Ok, the resource adapter needs configuration. Is that done via the
connectionParameters property? If so, is there any docs on what goes into
that field?

Currently on boot I'm throwing this stack trace:

Caused by: java.lang.IllegalArgumentException: must provide either
TransportType or DiscoveryGroupAddress and DiscoveryGroupPort for
ResourceAdapter Connection Factory
	at
org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.createActiveMQConnectionFactory(ActiveMQResourceAdapter.java:1707)
	at
org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.setup(ActiveMQResourceAdapter.java:1552)
	at
org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:245)
	at
org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:2629)
	at
org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2442)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:527)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:439)
	... 17 more




--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702631.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec



it implements javax.resource.spi.ActivationSpec

On Mon, Oct 5, 2015 at 4:27 PM, jonathan_at_svg <
jonathan@springventuregroup.com> wrote:

> Does Artemis have an ActivationSpec class to configure JCA / MDBs?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702629.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
Does Artemis have an ActivationSpec class to configure JCA / MDBs?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702629.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
It's under the examples. (I'm not 100% sure it's the best place but it's
where it is now)


on the distribution:

./examples/features/sub-modules/artemis-ra-rar

mvn install would generate the JARs.. etc...
https://github.com/apache/activemq-artemis/tree/master/examples/features/sub-modules/artemis-ra-rar



On Mon, Oct 5, 2015 at 2:28 PM, jonathan_at_svg <
jonathan@springventuregroup.com> wrote:

> Yah if we get it working I'll post the config back here. I was hoping there
> was a generic guide for the JCA adapter somewhere, any chance you could me
> in the right direction?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702619.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
Clebert Suconic

Re: Anyone have Artemis working with Apache TomEE?

Posted by jonathan_at_svg <jo...@springventuregroup.com>.
Yah if we get it working I'll post the config back here. I was hoping there
was a generic guide for the JCA adapter somewhere, any chance you could me
in the right direction?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611p4702619.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Anyone have Artemis working with Apache TomEE?

Posted by Clebert Suconic <cl...@gmail.com>.
I'm not aware of anyone doing it...  that's an area that contributions are
welcomed.. I would be supportive though when you hit issues.

On Mon, Oct 5, 2015 at 1:44 PM, jonathan_at_svg <
jonathan@springventuregroup.com> wrote:

> Anyone have Artemis working with Apache TomEE? Hoping to find someone with
> a
> tutorial or a working service.xml...
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Anyone-have-Artemis-working-with-Apache-TomEE-tp4702611.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
Clebert Suconic