Applets and EJB's

Can an Applet work like a client for an EJB? How can I do this?Thanks for all.
[100 byte] By [Jchiquit] at [2007-9-26 2:27:00]
# 1

Hi ,

Not advisable. Yes you can make it to work like a client but you have assign right permission in the application server and it is not nice to give client permission on the server side. Why not use the Servlet technology which is the preferred method to access the EJB by Sun. then you can access the Servlet from a normal client including Applet(Which I think is redundant with the advent of JSP).

Think again (against) to use Applet.

Regards

Ibnul

ibnul at 2007-6-29 9:40:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Yes you can use an applet here and applets can be very useful in a J2EE application. The rule of thumb should be to NOT use them unless your users demand a sophisticated UI component that can not easily be done in html/jsp/servlet. The advantages of an applet are the availability of swing and awt design ui objects. The major disadvantage is the requirement for users to download the swing and applet jars before they can run your app. If your doing an Amazon.com kind of thing that would be unacceptable but if your doing an intranet or industry specific site, it might be ok.

When you decide to use an applet you can just put in in a jsp. Create a servlet to handle talking to the applet and user http sockets to do so.

t3chi3

t3chi3 at 2007-6-29 9:40:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...