Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb3 hello world on was7

 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I am new to ejb3 so please bear with me. I have successfully deployed and started an ear to WAS 7 which contains a jar containing the following two classes:

I then developed the following client class

When I execute the client the hello object is null? Can someone please explain what the next step is for me to successfully execute the client. thanks
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right when I said I executed my client what I meant was I right clicked the class in eclipse and selected run as java application. I have since come to realise its not this simple!!! After reading here I realised I needed to package my client class into a jar file and then into a ear file. My ant script is as follows:

Within HelloWorldClient.ear the application-client.xml is present but it has been renamed application.xml??? Also what should the contents of the application-client.xml be?
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see here for an update. The lack of resources on the net for developing a simple ejb3 hello world app on was is startling!!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic