• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling EJBs from java 1.1.8  RSS feed

 
damian cosmos
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new to EJBs. Is it possible to call an EJB from a java 1.1.8 applet ?
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's generally not a good idea to call an EJB directly from an applet no matter what release it's running under. In addition to possible sandbox issues, the RMI mechanism is accomplished via a TCP/IP port that's almost certain to be blocked by a firewall on the Internet, and often even on an Intra-net.
While it's more cumbersome, you'll find that having the applet invoke a servlet and then having the servlet invoke the EJB is a solution that works better - and scales better.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!