Re: Using ServiceStarter to launch a "proxy is service" service
Gregg Wonderly <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Francisco Dário Mourão wrote:
> So, I want my application to have a parameter in each client saying "how" it will use the service:
> (a) using it remotely through a proxy (RMI proxy model)
> (b) using it locally ("proxy is service" model)
>
> Basically, I want to write a service which is prepared to be used with both models...
>
> Is this thought valid? Is there an easy way to do this?
For me, this should be a configuration issue. There is one predominate issue
with service lookup which makes it difficult to do this. The issue is that
service discovery through multicast has no avenue for injecting different
LookupDiscovery or for unicast LookupLocatorDiscovery implementations, short of
very specific Configuration design. If you really have the need, then I think
it can be done, just thinking about it.
There would be multiple places where you'd create some static Hashtables that
would be inside of classes that would need to be loaded from the same classloader.
Gregg Wonderly
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to [email protected]