• 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

Step by step compilation/deployment of EJB 3.0

 
Greenhorn
Posts: 7
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys,

sorry, I know this is basic question and there should be a lot of stuff about it in books/internet, but I just cant find the necessary info even after hours of searching.

What I am looking for is basic explanation (STEP BY STEP) how to compile and deploy the EJB 3.0 classes to try Hello World bean and its client and to have some background behind it explained.

Problem is that in most books and tutorials, the compilations is done by pred-defined build tool like Ant or when I am able to find normal tutorial it is not for EJB 3.0 but 2.0 or uses Eclipse IDE.

Lets say we have stateless bean which has method echo() which returns 'Hello world' String.

The client could be POJO run from commandline and interacting with the bean.

Can someone explain to me how to write, compile and deploy this (preferably on JBOSS), using just javac commands?

Thanks a lot.
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't wan't to use IDEs, then, rather than using just javac, you should look to use command-line tools like Ant or Maven. Note that, these tools are independent of IDEs.
The IDEs include them as a convenience for us.

If you want to use only javac, sure, no problem. You need to set the classpath that includes the necessary libraries (java jee jars in this case) which are needed at compile time. You can then use the jar command to create the war/ear and then manually copy them to the specified folder in the server for deployment.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start using maven. Sooner or later you 'll come to that, and without detrimental effects to undestand the whole process(eg IDE)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic