Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB related project with maven

 
sai rama krishna
Ranch Hand
Posts: 432
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2993
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 432
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic