• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Hello World with EJB

 
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And where the link that I can download the JBoss Application server ?

Thanks
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



It's here under Servers/Runtime
 
Reza Rahman
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeffry,

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

Best regards,
Reza
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic