This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 223
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: 2833
    
  11

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: 223
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB related project with maven
 
Similar Threads
EJB3 package not in Maven repository?
Checkout from CVS using Maven
Libraries not visible under projects java build path in eclipse
EJB Project with Maven
Project organization JSF 1.2 / EJB3 with Maven2 - How?