• 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

ejb3 hello world on was7

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic