You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Charles Moulliard <cm...@gmail.com> on 2012/02/17 19:03:14 UTC
Maven plugin for OpenEJB
Hi,
Is there a maven plugin to use OpenEJB in embedded more like we can do with
Glassfish
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>3.1.1</version>
If this is not the case, what do you suggest/recommend to create a Boostrap
class to launch OpenEJB and deploy a WAR ?
Regards,
Charles Moulliard
Apache Committer
Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard
Re: Maven plugin for OpenEJB
Posted by Romain Manni-Bucau <rm...@gmail.com>.
added
http://svn.apache.org/repos/asf/openejb/trunk/maven-plugins/openejb-embedded-maven-plugin/
the only goal is (for now): mvn openejb-embedded:run
- Romain
2012/2/18 Jean-Louis MONTEIRO <je...@gmail.com>
> Some month ago, I did a plugin to manage standalone mode.
> I guess it's still available in sandbox area.
>
> May be, if we consider it as useful, we can try to merge it with Romain's
> one or enhance Romain's plugin to make it work in a standalone mode.
>
> Jean-Louis
>
> 2012/2/17 Romain Manni-Bucau <rm...@gmail.com>
>
> > Snapshot is deployed i think, openejb-maven-plugin (maybe with an s i
> dont
> > remember). Not listed by buildbot but work.
> >
> > Le 17 févr. 2012 20:16, "Jean-Baptiste Onofré" <jb...@nanthrax.net> a
> écrit :
> >
> > > We can imagine to use the karaf-maven-plugin with an OpenEJB kar ;)
> > >
> > > On 02/17/2012 07:03 PM, Charles Moulliard wrote:
> > >
> > >> Hi,
> > >>
> > >> Is there a maven plugin to use OpenEJB in embedded more like we can do
> > >> with
> > >> Glassfish
> > >>
> > >> <groupId>org.glassfish</**groupId>
> > >> <artifactId>maven-embedded-**
> > >> glassfish-plugin</artifactId>
> > >> <version>3.1.1</version>
> > >>
> > >> If this is not the case, what do you suggest/recommend to create a
> > >> Boostrap
> > >> class to launch OpenEJB and deploy a WAR ?
> > >>
> > >> Regards,
> > >>
> > >> Charles Moulliard
> > >>
> > >> Apache Committer
> > >>
> > >> Blog : http://cmoulliard.blogspot.com
> > >> Twitter : http://twitter.com/cmoulliard
> > >> Linkedin : http://www.linkedin.com/in/**charlesmoulliard<
> > http://www.linkedin.com/in/charlesmoulliard>
> > >> Skype: cmoulliard
> > >>
> > >>
> > > --
> > > Jean-Baptiste Onofré
> > > jbonofre@apache.org
> > > http://blog.nanthrax.net
> > > Talend - http://www.talend.com
> > >
> >
>
Re: Maven plugin for OpenEJB
Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Some month ago, I did a plugin to manage standalone mode.
I guess it's still available in sandbox area.
May be, if we consider it as useful, we can try to merge it with Romain's
one or enhance Romain's plugin to make it work in a standalone mode.
Jean-Louis
2012/2/17 Romain Manni-Bucau <rm...@gmail.com>
> Snapshot is deployed i think, openejb-maven-plugin (maybe with an s i dont
> remember). Not listed by buildbot but work.
>
> Le 17 févr. 2012 20:16, "Jean-Baptiste Onofré" <jb...@nanthrax.net> a écrit :
>
> > We can imagine to use the karaf-maven-plugin with an OpenEJB kar ;)
> >
> > On 02/17/2012 07:03 PM, Charles Moulliard wrote:
> >
> >> Hi,
> >>
> >> Is there a maven plugin to use OpenEJB in embedded more like we can do
> >> with
> >> Glassfish
> >>
> >> <groupId>org.glassfish</**groupId>
> >> <artifactId>maven-embedded-**
> >> glassfish-plugin</artifactId>
> >> <version>3.1.1</version>
> >>
> >> If this is not the case, what do you suggest/recommend to create a
> >> Boostrap
> >> class to launch OpenEJB and deploy a WAR ?
> >>
> >> Regards,
> >>
> >> Charles Moulliard
> >>
> >> Apache Committer
> >>
> >> Blog : http://cmoulliard.blogspot.com
> >> Twitter : http://twitter.com/cmoulliard
> >> Linkedin : http://www.linkedin.com/in/**charlesmoulliard<
> http://www.linkedin.com/in/charlesmoulliard>
> >> Skype: cmoulliard
> >>
> >>
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
Re: Maven plugin for OpenEJB
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Snapshot is deployed i think, openejb-maven-plugin (maybe with an s i dont
remember). Not listed by buildbot but work.
Le 17 févr. 2012 20:16, "Jean-Baptiste Onofré" <jb...@nanthrax.net> a écrit :
> We can imagine to use the karaf-maven-plugin with an OpenEJB kar ;)
>
> On 02/17/2012 07:03 PM, Charles Moulliard wrote:
>
>> Hi,
>>
>> Is there a maven plugin to use OpenEJB in embedded more like we can do
>> with
>> Glassfish
>>
>> <groupId>org.glassfish</**groupId>
>> <artifactId>maven-embedded-**
>> glassfish-plugin</artifactId>
>> <version>3.1.1</version>
>>
>> If this is not the case, what do you suggest/recommend to create a
>> Boostrap
>> class to launch OpenEJB and deploy a WAR ?
>>
>> Regards,
>>
>> Charles Moulliard
>>
>> Apache Committer
>>
>> Blog : http://cmoulliard.blogspot.com
>> Twitter : http://twitter.com/cmoulliard
>> Linkedin : http://www.linkedin.com/in/**charlesmoulliard<http://www.linkedin.com/in/charlesmoulliard>
>> Skype: cmoulliard
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Maven plugin for OpenEJB
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
We can imagine to use the karaf-maven-plugin with an OpenEJB kar ;)
On 02/17/2012 07:03 PM, Charles Moulliard wrote:
> Hi,
>
> Is there a maven plugin to use OpenEJB in embedded more like we can do with
> Glassfish
>
> <groupId>org.glassfish</groupId>
> <artifactId>maven-embedded-glassfish-plugin</artifactId>
> <version>3.1.1</version>
>
> If this is not the case, what do you suggest/recommend to create a Boostrap
> class to launch OpenEJB and deploy a WAR ?
>
> Regards,
>
> Charles Moulliard
>
> Apache Committer
>
> Blog : http://cmoulliard.blogspot.com
> Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> Skype: cmoulliard
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Maven plugin for OpenEJB
Posted by David Blevins <da...@gmail.com>.
On Feb 17, 2012, at 10:03 AM, Charles Moulliard wrote:
> Hi,
>
> Is there a maven plugin to use OpenEJB in embedded more like we can do with
> Glassfish
>
> <groupId>org.glassfish</groupId>
> <artifactId>maven-embedded-glassfish-plugin</artifactId>
> <version>3.1.1</version>
>
> If this is not the case, what do you suggest/recommend to create a Boostrap
> class to launch OpenEJB and deploy a WAR ?
Romain has one started here:
http://svn.apache.org/repos/asf/openejb/trunk/maven-plugins/tomee-maven-plugin/
That will do the server start and war deployment. Not yet released and I don't think there are snapshots deployed for it either.
If you don't need the .war support, then EJBContainer API is a great way to bootstrap something in a vm. Here are two examples that do it:
http://openejb.apache.org/examples-trunk/cdi-request-scope/README.html
http://openejb.apache.org/examples-trunk/cdi-application-scope/README.html
That API can now also boot TomEE Embedded if you specify "EJBContainer.PROVIDER" to "tomee-embedded".
There's also the Arquillian adapter which can allow you to test the same code in all flavors of TomEE and plain OpenEJB. Here's an example pom.
http://svn.apache.org/repos/asf/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/pom.xml
There's a profile for each server setup. One for glassfish-embedded too, though that one stopped working for some reason. It was nice to have in there for the occasional sanity check.
-David