Hi,
the simplest thing?
- write  a jar project containing two simple ejb, mayb a session and an
entity
- create a META-INF directory in your src/main/resources directory, place
there your persistence.xml
- build and package the jar
- deploy on jboss

if you don't see any errors, it means it has successfully deployed the ejb
then you can expand your app to make it an ear that contains your ejbs and a
simple servlet
that calls them..to see if everything is in place.

once you have this running, you can invest time in trying to learn better
ejb3, various beans interactions,
relationships etc

and, DONT FORGET unit tests :)

hth
marco


On 1/26/07, Vidya Mahavadi <[EMAIL PROTECTED]> wrote:

Thanks Marco,

I will check out the link. I am trying to learn most of the stuff  I
mentioned all at same time, and struggling to put everything together. :)

Thanks,
Vidya




"Marco Mistroni" <[EMAIL PROTECTED]>
26/01/2007 16:43
Please respond to
"Maven Users List" <[email protected]>


To
"Maven Users List" <[email protected]>
cc

Subject
Re: EJB3 with maven






Hi,
here i posted a project that uses EJB3 with microcontainer.. you can get
copy of pom.xml from attachments


http://docs.codehaus.org/display/MAVENUSER/How+to+use+the+JBoss+Embedded+EJB3+Container+for+Unit+testing


i am NOT using EJB3 plugin, because in jboss you can deploy ejb3 in a
simple
jar file  (as long as you put the persistence.xml in the file)

pls have a look, i can mail  you a working sample when i m at home as most
of my code
is at my home

regards
marco

On 1/26/07, Vidya Mahavadi <[EMAIL PROTECTED]> wrote:
>
> Hi Marco,
>
> Thanks for your respose. Can you please explain in little detail or a
> sample pom.xml if you have..
>
> I am having problem to get ejb3 plugin to work..
>
> Regards,
> Vidya
>
>
>
>
> "Marco Mistroni" <[EMAIL PROTECTED]>
> 26/01/2007 15:52
> Please respond to
> "Maven Users List" <[email protected]>
>
>
> To
> "Maven Users List" <[email protected]>
> cc
>
> Subject
> Re: EJB3 with maven
>
>
>
>
>
>
> Hi,
>   you don't need anything special.. with jboss, you can deploy an ejb
> as a jar file.
> All you  need to do is to have a  jar project, make sure to put in your
> src/main/resources  a META-INF directory with your persistence.xml file
in
> it
>
> this is the simplest setup you could have
>
>
> hth
> marco
>
> On 1/26/07, Vidya Mahavadi <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have to deploy an application with EJB3 to JBoss 4.0.4 server. I
also
> > need to use EJB JPA for persistance. In maven 2.0, can anyone please
> give
> > me steps how to generate/deploy ear file from the application. It
would
> be
> > a great help!
> >
> > Regards,
> >
> > This e-mail is subject to a disclaimer, available at
> >
> >
>
>

http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html

>
> >
> >
> >
>
>
> This e-mail is subject to a disclaimer, available at
>
>

http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html

>
>
>


This e-mail is subject to a disclaimer, available at

http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html



Reply via email to