Re: problem with applet access to web service



On 29 Mar, 01:54, Lew <l...@xxxxxxxxxxxxxxxxxxxx> wrote:
ballo0 wrote:
Can You [sic] say exactly what do you mean by signing applet? Applet runs
from web serwer, it is packaged in war [sic], of web application that
contains a website with this applet. Exactly i [sic] have a ejb [sic] deployed,
and it has a webservice, and applet is trying to use it. If you want
here is exact code:

That seems unusual to me, though I'm not an applet expert as, say, Andrew is.
I have not run across any hybrid applet/JEE applications before - what
advantages does that approach hold?

I can think of myriad disadvantages.

Signing an applet means to provide a trust certificate to the user, which they
have to accept before the applet obtains elevated privileges. Without that,
the applet cannot do things like invoke resources outside its home domain.

Is the EJB from outside the applet's home domain?

Would a more conventional approach, like having an HTML form submission
trigger servlet actions such as EJB invocation, suit your purposes? It'd be a
lot simpler to engineer.

-- Lew

of course it would be, but we are using applet as presentation layer.
We are working on card games portal, so we decicded to store all games
logic
on server and provide access to it via web services. And we there is
need to make
a sample client so we thougut that applet would be apriopriare
solution.
We have to draw lot of things, refresh it, hadle events...

ballo0

.



Relevant Pages

  • Re: problem with applet access to web service
    ... from web serwer, it is packaged in war, of web application that ... That seems unusual to me, though I'm not an applet expert as, say, Andrew is. ... the applet cannot do things like invoke resources outside its home domain. ... Would a more conventional approach, like having an HTML form submission trigger servlet actions such as EJB invocation, suit your purposes? ...
    (comp.lang.java.help)
  • Re: problem with applet access to web service
    ... from web serwer, it is packaged in war, of web application that ... and applet is trying to use it. ... the applet cannot do things like invoke resources outside its home domain. ... Is the EJB from outside the applet's home domain? ...
    (comp.lang.java.help)
  • Re: problem with applet access to web service
    ... try {// Call Web Service Operation ... // TODO process result here ... My guess would be that you are serving your applet and your webservice on ...
    (comp.lang.java.help)
  • Re: CF Deployment
    ... the MSDN sample (upgrading via a WebService) is nice... ... applet would just need to be written in something other than .NET. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: problem with applet access to web service
    ... CardWs is a very simple webservice, ... do you know how to make an applet to comunicate with webservices on ... I am trying to access web service in init method, ... trying to access resources which it is not allowed to access. ...
    (comp.lang.java.help)