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

How to use a servlet client to test EJB?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ranchers,
I've developed the CMP bean and test it sucessfully with java client using WebLogic 6.0. Can anyone give me the basic idea how to use servlet as a client to test my EJB?
Thanks,
Oleg
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try out this servlet . But keep in mind and make the nessary changes
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may also reference the ejb from your web.xml deployment descriptor:
<ejb-ref> (optional)
<description>description text</description> (optional)
<ejb-ref-name> name </ejb-ref-name> (required)
<ejb-ref-type> ejb java type </ejb-ref-type> (required)
<home>The home interface of the ejb</home> (required)
<remote>The remote interface of the ejb</remote> (required)
<ejb-link> ejb.name </ejb-link> (optional)
</ejb-ref>
 
Oleg Shklyar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you guys for your assistance. It works!
(Administration tasks took a lot of time, but WLS is better than WebSphere. This is my opinion)
Oleg
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


but WLS is better than WebSphere. This is my opinion


Hmm.. Please dont tell this. Weblogic and WebSphere are both great products and one cannot be pitted against the other. If you are comparing Weblogic and Websphere 3.5 you may be slightly right, but with the arrival of Websphere 4.0 nothing definate can be said.
Let the market decide is the only solution.
------------------

Mahindrakar
IBM Application Server & Developer Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
 
Are you okay? You look a little big. Maybe this tiny ad will help:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic