Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

problem with ejb3 tutorial  RSS feed

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i have used the below link
http://wiki.netbeans.org/CreatingEJB3UsingNetbeansAndGlassfish
and not able to use annotations,also the above tutorial is creating ejb2.0 project structure

please help me with some examples for ejb3.0 as am preparing for scbcb5.0
 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://www.wi.uni-muenster.de/pi/lehre/ss09/EAI/tutorials/tutorial_jboss_setup.html

http://www-wi.uni-muenster.de/pi/lehre/ss09/EAI/tutorials/tutorial_jboss_project.html

I hope this helps,
 
shabarish vai
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can help you

http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/index.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!