aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Can we not have a..... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Can we not have a....." Watch "Can we not have a....." New topic
Author

Can we not have a.....

Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
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).]


Suneel
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1815
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.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can we not have a.....
 
Similar Threads
struts+EJB?
Problem in calling PL/SQL from JAVA program
Please send me one example of Encryption/Decryption
comment
When next JavaRanch Journal will release?