• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB related project with maven

 
Ranch Hand
Posts: 930
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 930
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Yes, my master! Here is the tiny ad you asked for:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic