Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run HelloWorld example in GlassFish Tools Bundle For Eclipse Version: 1.2

 
pkinuk Buler
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm new to EJB. I'm reading the book 'Mastering Enterprise JavaBeans 3.0'. I tried to run the HelloWorld example in chapter 3, but I couldn't see the text 'hello()' & 'Hello World' in the eclipse console context. I also tried to open the glassfish log file, it didn't show neither. Would you please help me to solve this problem?

Thank you in advance.

The following are the source code:





 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have Glassfish runtime plugin installed in eclipse? I think the Tools bundle just hold the ways to manipulate the services of Glassfish.
 
massimiliano cattaneo
Greenhorn
Posts: 24
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
in eclipse you have to add to classpath the jar "glassfish\modules\gf-client-module.jar"
after You have to add the remote class of your bean, please take a look to chapter 20.6 of the ejb-specification to the project classpath. Simply put the remote class in a jar and add it in classpath of your project or add the .class file of your remote interface to the project.

then You can create a Java class like the follow.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic