activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Gallimore <jonathan.gallim...@gmail.com>
Subject Re: Anyone have Artemis working with Apache TomEE?
Date Wed, 02 Aug 2017 23:33:40 GMT
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
> <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
> >> <clebert.suconic@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
>

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