aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes eclipse ejb ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "eclipse ejb ?" Watch "eclipse ejb ?" New topic
Author

eclipse ejb ?

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
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

Joined: Feb 06, 2008
Posts: 204
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 ?

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

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).


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse ejb ?