Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we not have a.....

 
Suneel Setlur
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can we not have a client, that is not a servlet, access an EJB method?

[This message has been edited by Suneel Setlur (edited August 22, 2001).]
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, non-servlet clients are possible. All that a client has to do to access the EJB is look up the Home Interface through JNDI and then get a Remote reference from there. This works fine in JAVA-based applications, although there may be some security issues with using EJBs and applets (I haven't tried that out yet...). If anybody knows if there are these security issues, I would be interested to hear what they are and how/if you can get around them.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the biggest issues might be firewalls. Generally you would have your Webserver listening on port 80 and your app server on some unprivileged port. The firewall administrator in that case must specifically open a port which will probably be something he won�t like ;-)
The solution for this would be something like webservices (comes with wls6.1 but can be done on any app server with some coding). In this scenario, the applet would call a servlet with some XML (SOAP) as parameter and the servlet would respond with some other XML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic