• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to execute EJB in websphere

 
madhavi latha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Can anybody tell me step by step procedure to deploy Stateless session bean in Websphere and how to execute a client file?
I have the following files.
SampleRemote.java(remote interface)
SampleHome.java(Home interface)
SampleBean.java(Bean class)
SampleClient.java(Client class)
I have created a jar file.
jar cvf hello.jar sample
I compiled all these files and it generated a package sample.
now what r the steps i need to follow to deploy the bean in Websphere?
1.Do I need to create META-INF folder?
2.what xml or xmi files i need to write?
3.how can i create a jar file using AAT?
4.wht r the changes i need to do in config file or policy file or anything?
5.what classpath i ihave to set?
I am very much confusing with the steps to deploy.
I have gone through so many websites.but I didn't find any step by step procedure neatly anywhere.
6.Where can I find examples in websphere?
If anyone tells this,they can be appericated.
I have been facing a problem for the past one month.
Thank u,
Madhavi.
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Madhavi,
Are you using WebSphere Studio? If so then the UTC is the way to go. Six simple steps. If not then it becomes more difficult and you probably need the AAT depending on your development tooling. What version of WebSphere Application Server are you using? That will tell me which level of J2EE.
 
Tom John
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is also my confusion.
I could not find a good url to study the Assembly and Deploy the codes to appServer .
Could anyone help me to settle this ?
I have no any WSAD .
 
Mahesh Chalil
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello madhavi and Tom
Here is what you need to do. As you have Websphere Application Server (Tom, which application server do you have?) it comes with Application Assembly Tool (AAT). What does it do for you is:
1. Let you assemble your files as an Ear file, war file or jar file. Simple..rt? No?
2. It is ... if you want to know how to assemble with your AAT, go to Help -> help contents. They have one of the best materials to help you get up and running..
Now, one your use AAT, you will get an EAR file with all the DTDs, MANIFEST etc .. you dont have to worry about writing anything of your own, but you need to configure all these things using AAT while you create your ear file from AAT.
Remember one thing. AAT is not a tool for development. It is just a tool to assemble your components together to form an ear file from war, jar etc.. just like deploytool in J2EE Reference Implementation..
Hope my lecture helps;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic