aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes How to run HelloWorld example in GlassFish Tools Bundle For Eclipse Version: 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "How to run HelloWorld example in GlassFish Tools Bundle For Eclipse Version: 1.2" Watch "How to run HelloWorld example in GlassFish Tools Bundle For Eclipse Version: 1.2" New topic
Author

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

pkinuk Buler
Ranch Hand

Joined: May 22, 2009
Posts: 63
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

Joined: Mar 24, 2008
Posts: 3855

Do you have Glassfish runtime plugin installed in eclipse? I think the Tools bundle just hold the ways to manipulate the services of Glassfish.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
massimiliano cattaneo
Greenhorn

Joined: Jun 30, 2011
Posts: 24

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.



[SCJP 6.0 88%] [OCPJBCD 6.0 96%] [OCPJWCD 6.0 87%]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run HelloWorld example in GlassFish Tools Bundle For Eclipse Version: 1.2