This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Hello World with EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Hello World with EJB" Watch "Hello World with EJB" New topic
Author

Hello World with EJB

Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
Hi guys, I'm new in this topic. Can anyone help me to provide step by step for creating simple Hello World using stateless session bean with glassfish.

How we can invoke the EJB method from the command-line client without using "appclient" command from Glassfish ?

Thanks for the reply. Your reply is very valuable for me


Jeffry Kristianto Yanuar (Java Instructor)
SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Jeffry,

Sorry for the late reply...I just came back from vacation...

Feel free to look at the GlassFish code examples for EJB 3 in Action: http://www.manning.com/panda/. I think JBoss has a very good basic EJB 3 tutorial too.

Hope it helps,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
Reza, it is nice to meet you. I already bought your EJB 3 book.

Your book is very good, but I couldn't run any example in the book. The books use Derby as the database server. The sample code only provides the SQL script but doesn't tell the username and password for the database. Can you tell me ?

Thanks

Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Jeffry,

I agree with you on the GlassFish code. I am actually rewriting that code/instructions to be a little more user-friendly as soon as possible. In the meanwhile, if you don't mind, give the JBoss code a try. I wrote that code/build scripts myself and know that it is in much better shape. You'll still need to look through the ANT scripts to figure out what's going on with the SQL scripts though. The JBoss code doesn't use an ACC, I know that's something you asked about.

In my co-author Debu's defense, he wrote the GlassFish code examples in a hurry while we were still writing the book. I was actually hoping I could get someone else to contribute the GlassFish code example clean-up, but that never really happened, so I'm on my own :-(. Also, feel free to use the Manning Author Online forum for EJB 3 in Action to ask Debu about the current GlassFish code. He should be able to help some...

Best regards,
Reza

Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
OK, tell me where can I download the JBoss. And if you don't mind, can you create the sample code using NetBeans 6 with GlassFish for its app server ?

Thanks

Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Jeffry,

You can download the JBoss code here: http://www.manning.com/panda/. Once you run the code and tinker with it a little, you should have a much higher comfort level. I can then help you with the IDE setup. If you get that far, switching to GlassFish should not be a big deal at all.

Sorry again the GlassFish code is not in better shape. I'm trying to get that fixed ASAP. I'm also thinking of writing an article about IDE setup for EJB 3 projects using our code examples. In the meanwhile it might be useful to take a look at this too: http://www.webagesolutions.com/knowledgebase/javakb/jkb005/index.html.

Best regards,
Reza
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
And where the link that I can download the JBoss Application server ?

Thanks
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

Jeffry Kristianto Yanuar wrote:And where the link that I can download the JBoss Application server ?


It's here under Servers/Runtime


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Jeffry,

Kindly look through the PDF instructions that comes with the code examples. It should have a working link.

Best regards,
Reza
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hello World with EJB
 
Similar Threads
creating jasper reports using struts1.2
Error while trying to run StatelessSessionBean
steps
ActiveMQ broker
Error while trying to run StatelessSessionBean