File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB related project with maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB related project with maven" Watch "EJB related project with maven" New topic
Author

EJB related project with maven

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 359
Hi,

I am trying below example

http://theopentutorials.com/examples/java-ee/ejb3/how-to-create-a-ejb-3-x-project-using-maven-in-eclipse-part-1/


I do not see any source code to download to run and test. I do not see separate code for Parent, EJB and Web Projects. How can I compile, build and run this example. please advice

where can i find ejb3 (stateless, stagteful, mdb, jms, queue, topic) related examples using maven approach so that pom.xml takes care of downloading required jars, dependencies for me. please advice
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2901
    
  12

There is some source code in that example, but just enough to create a very basic EJB ... a stateless session bean ... and build it with Maven inside Eclipse. It doesn't give you a whole web application as a framework for testing that EJB, so you'd have to find another example for that.

The EJB dependencies at runtime are provided by JBoss, which the example tells you to install. Maven knows about EJBs via:



Because the scope is listed as "provided", Maven will automatically download the necessary jars and use them for compiling the EJBs, but it won't include them in the EJB jar.
sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 359
It doesn't give you a whole web application as a framework for testing that EJB, so you'd have to find another example for that


Can you please point me to good complete example on the internet. I googled many times but could not find appropriate example. Please advice
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: EJB related project with maven
 
It's not a secret anymore!