• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Can we not have a.....

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic