I used a tutorial which made use of Eclipse IDE with the JBossTools plug-in, deploying to JBoss AS 5.1.0.GA.
It definitely used EJB3.0 entities and includes session beans and a servlet. If you want to try this, here are two links. The first is a tutorial for installing all the necessary software, the second is the actual application tutorial:
thanks for the reply sir,
i modified prject.properties and web.xml and now am able to create session bean and local interface but hte problem is netbeans is not accepting annotations like @stateless,@local it is saying "cannot find symbol class Stateless".
Do i need to set classpath in project properties if so how and to which jar file i need to set
Mark E Hansen
posted 9 years ago
The annotation is @Stateless, not @stateless. Are you sure you're specifying is correctly?
You can find it in the JavaEE API: http://java.sun.com/javaee/6/docs/api/ as javax.ejb.Stateless (in the Packages frame, select javax.ejb, then in the Classes frame, scroll down to Annotation Types).
As far as the Jar, you can just examine the Jar files to see which one contains it. I'm using JBoss, and did a quick search and found it in the JBOSS_HOME/client/jboss-javaee.jar Jar file. You should be able to do something similar with your application server.