Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

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)
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic