• 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

EJB or Servlet

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have to call EJB from standalone java application. EJB is developed in Websphere 5.1 J2EE 1.3 and is deployed on the server. (AIX Websphere, on remote machine)
When I call it from 'Client Application project' developed in WASAD, it works fine (with unacceptable response time). But when I try to run the same project from command prompt it dosent work, and gives lot of issues. (like IBM java vs Sun java etc)

So finally I decided to write servlet to serve the same purpose and call it from standalone application, instead of calling EJB.

My question is:
Is this a correct design? What are pros and cons?
Is there discussion on the comparision of these 2 approaches?

(I just dont want to do it cause I am not able to call EJB from standalone, but also want to know which way is better to do. )

Please provide your suggestion or reference.

Thanks in advance.
Manoj
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manoj,

Instead of writing servlet, u can use "launchClient" executable of WebSphere to invoke your application which calls EJB. This will work without the need for writing separate servlet.

Regards,
Sweet
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sweet,
I know little about launchclient. I will read more about it and get back if have any queries. I have another question: Is there any portability issue with this kind of EJB client? We are planning to use this as local client on number of user's machines and we can not control their configuration (if they have IBM java or SUN java)
Thanks,
Manoj
 
We're being followed by intergalactic spies! Quick! Take 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