• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deploying EJBs in WSAD 5.0

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using WSAD5.0. I am also trying the Ed Roman examples. can anyone tell me how to deploy the EJBs in WSAD5.0 and where to place the test clients?
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deploying under Websphere is a 3 step process.
First you need to create the java files, compile them and put the class files into a jar file (jar cvf name_of_jar_file.jar *.class).
Then you start the AAT (Application Assembly Tool). You need to create an application, a .jar file containing your EJBs and you can also add an application client. Second, you have to specify all necessary information you need to be able to start the generation of deployment descriptors (via menu in AAT). I cant tell you all the steps you have to do, but I suggest you look it up in the info center. Anyway I try to name the most important things: application name, jar file name, EJB name, home interface, remote interface, JNDI name for your bean, depending on what bean you use you must also specify primar key classes, attributes in case of CMP 2.0, references to resources and last but not least you have to specify references from the application client to the bean you use (otherwise no stub files are created for acessing the bean remote).
Third, you need to install the deployed_your_application.ear file in the Adminstration Console. After going through the steps you have to start the application in the Enterprise Application menu.
Now you can start the application client using the launchclient tool. Therefor set the path to include c:\websphere\appserver\bin and set the classpath to include the client.jar file (cant remember the precise name, but it should be found at c:\websphere\appserver\lib).
Next, find your application, this should look something like: c:\websphere\appserver\config\cells\your_server_name\applications\your_application_name.ear\
there start: launchclient your_application_name.ear
So this all the steps I was able to remember by heart. It took me nearly a year to understand J2EE and the application servers Weblogic, Websphere and JBoss. And still I don't know all necessary things. I hope I was able to shorten your time, however if you are totally new to J2EE it won't help you much.
Max
 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AAAAAAAAAARGL,
sorry for writing you this nice story.
Didn't see you asked for WSAD !!!
All the things mentioned above only apply when you work without a dev environment.
I didn't use an IDE, because in my diploma thesis on application servers it would add a factor (choice of the right IDE for the specific app server) that would influence the result of my research.
Really sorry !
Max
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Monu Sharma:
I am using WSAD5.0. I am also trying the Ed Roman examples. can anyone tell me how to deploy the EJBs in WSAD5.0 and where to place the test clients?


I'm not familiar with Ed's examples (I'm sorry to say -- I've not read his book since the first edition). Does he use Application clients (with main() methods?) The answer to this question will strongly influence the answer...
Kyle
 
Monu Sharma
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle Brown,
All those client programs are having standard main methods into them.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I suggest that you download this redbook that will walk you through the process of building your EJB's and generating deployment code.
The only thing that's not covered is how to build and start the application clients. That is covered in this thread.
Kyle
 
Monu Sharma
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Kyle,
I will try to follow the instructions and get back to u in case of any problems.
Anyway is their any newer version of ur book available which covers the WSAD ver 5.0?
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should also be in a FAQ somewhere...
My book should be out for WSAD 5.0 sometime in early fall. We're writing it now.
Kyle
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic