This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling an EJB using a client in WSAD

 
chandubcs
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a stateless EJB (TestEJB) which returns a "Hello World" created in WSAD 5.0. I need to write a test client application which can be a basic java class or a JSP to call that EJB and execute that "Hello World" method. Since I am new to WSAD, could anyone please let me know:
1) The test code for client application
2) How to import or add that generated EJB to client application path in WSAD.
I have tried test client from WSAD where I can see Bean Page, JNDI explorer..... but when I clicked on Invoke button I cannot see anything.
Thanks in advance,
Chandra
 
Mahesh Chalil
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Chandra
I am not discouraging you but if you could at least look at Help Contents from WSAD, you will see step by step instruction about how to do all these things. Please let us know if you face any problem after that.
I studied myself a long back only following their help materials and there is nothing else to beat that. There is everything what you need. I faced the same situation you had before when I was testing my ejb but you will see that solution is just about following the right path of how to do it. Thats why you have WSAD Help "Tasks" to do it. You ask the question "How do I". They have answers for you.
Good luck.
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is much easier to use the Universal Test Client (UTC) that comes with WebSphere Studio Application Developer. Check the documentation. There is no need to write a client for unit testing. After generating deploy code, right click the bean and select run on server from the pop-up menu.
Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic