This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Zero to AI - A non-technical, hype-free guide to prospering in the AI era and have Nicolò Valigi and Gianluca Mauro on-line!
See this thread for details.
Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

eclipse ejb ?

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my ejb bean classes create on my desktop.
I am trying to do ejb thru eclipse. So I selected the new > ejb project in eclipse.

This gave me
ejbModule directory
META-INF
ejb-jar.xml
manifest.mf
an empty build directory

Right of the bat the project had one error because the ejb-jar.xml needed one ejb defined for it



Ok

so I quickly stole some code off a website and made my ejb-jar.xml
like


now under the deployment descriptor under SessionBean their is
hello which has
Hello
HelloHome
HelloBean
as subelements

But where or how do I add my classes into this project ?
Everytime I try to create a New > Session Bean it asks my for a EJB project to use but none are available from the drop down
 
Sam Doder
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind the project facet was set to EJB 2.0
Changed to EJB 3 and now lets me create a new SessionBean , EntityBean ,...etc

Curious though usually EJB where
Home , EJBObject ,... etc

I see they are using local , remote endings did they change this in EJB 3.0 ?

 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I see they are using local , remote endings did they change this in EJB 3.0 ?


Yes. Quite a few changes have been made. For example for a stateless session bean all you need to do is annotate the POJO class with @Stateless annotation (if you are using annotation based configuration).
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic