javax.jnlp usage: setServiceManagerStub

D

David Alex Lamb

I've been looking into using javax.jnlp to get limited access to the client's
machine (without having to request full access). The few interfaces I've
looked at make sense, but I can't find anything that tells me how to get it
all going by passing an implementation of the appropriate interface to
ServiceManager.setServiceManagerStub.

Is there some introductory or tutorial document I'm missing?
 
T

Thomas Fritsch

David said:
I've been looking into using javax.jnlp to get limited access to the client's
machine (without having to request full access). The few interfaces I've
looked at make sense, but I can't find anything that tells me how to get it
all going by passing an implementation of the appropriate interface to
ServiceManager.setServiceManagerStub.
May be it is a misunderstanding. Not you have to call
ServiceManager.setServiceManagerStub(...);
but JavaWebStart (or what ever JNLP implementation you have) itself
calls it once during startup.
To get it going, you in your application call something like
FileOpenService service = (FileOpenService)
ServiceManager.lookup("javax.jnlp.FileOpenService");
FileContents contents = service.openFileDialog(...);
and similarly for the other services.
Is there some introductory or tutorial document I'm missing?
You already found these?
<http://java.sun.com/j2se/1.5.0/docs/guide/javaws/>
and especially
<http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/contents.html>
<http://java.sun.com/j2se/1.5.0/docs/guide/javaws/jnlp/index.html>

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top