Re: Another question about codebases and jar versions

Dan Creswell <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Gregg Wonderly wrote:
> Dan Creswell wrote:
>> Gregg Wonderly wrote:
>>> It can then take appropriate measures to establish contact
>>> with a
>>> new service which will provide the appropriate codebase.  This is
>>> probably the
>>> most straight forward way to "change codebases" or "upgrade code".
>>
>> Yep - that's one way but handling all those exceptions has been noted to
>> be a little programmer unfriendly in some quarters.  Think we can do
>> better than this - just need to prototype it out.....
>
> Absolutely!  It can be easier with some sometimes simple to create
> infrastructure.  I've used java.lang.reflect.Proxy objects in front of
> service proxies to make this happen mostly automatically by doing some
> layering in the serviceUI in some cases.  There are other ways as well.
>
> It sounds like you've got some other ideas Dan!
>

Yeah, been kicking this around for a while - I think it's possible to
drive this sort of thing using a service compositing approach and
probably a single event handler in the client (there are other ways to
get the information to the client which may be more appropriate for
"expert" users).

So, the client has to know a little bit about what's going on but you
can confine it neatly to one place which makes thread management etc
simpler.

Dan.

--------------------------------------------------------------------------
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.