Re: Using a Java Space from an OSGi bundle
Mike Francis <[email protected]> Thu, 13 Sep 2007 18:31:29 +0100
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Organization | Paremus |
| Message-ID | <[email protected]> |
Harald Number=20(2)=20is=20closest=20to=20the=20answer=20we=20came=20up=20with.=20= However,=20the=20thing=20is, Jini=20and=20OSGi=20have=20very=20different=20approaches=20to=20classloadi= ng.=20Making=20these work=20together=20is=20far=20from=20trivial,=20so=20unfortunately=20we=20c= an't=20provide=20you with=20a=20straightforward=20fix.=20 If=20you=20want=20to=20get=20a=20better=20idea=20of=20some=20of=20the=20co= mplexities=20involved=20here, then=20take=20a=20look=20at=20the=20discussion=20paper=20at http://www.paremus.com/downloads/downloads_engineering.html=20=20 In=20terms=20of=20the=20Knopflerfish=20Jini=20Driver=20bundle=20I=20do=20n= ot=20believe=20that=20this works=20with=20the=20latest=20version=20of=20Jini=20and=20the=20spec=20is=20= no=20longer=20maintained by=20OSGi.=20=20It=20may=20run=20but=20I=20don=92t=20think=20it=20addresse= s=20your=20problem=20anyway. Regards Mike -----Original=20Message----- From:=20Wellmann,=20Harald=20[mailto:[email protected]]=20 Sent:=2013=20September=202007=2016:52 To:[email protected] Cc:[email protected] Subject:=20AW:=20Using=20a=20Java=20Space=20from=20an=20OSGi=20bundle Thanks,=20this=20demo=20pretty=20much=20corresponds=20to=20my=20use=20case= ,=20but=20if=20I=20see=20it working=20in=20Newton,=20I=20still=20don't=20know=20what's=20going=20on=20= there=20and=20how=20to=20make it=20work=20in=20my=20own=20environment. So=20what=20is=20the=20key=20to=20solving=20the=20problem: 1)=20Publishing=20all=20classes=20from=20exported=20packages=20from=20OSGi= =20bundles=20as=20an=20RMI codebase? 2)=20Somehow=20tell=20the=20OSGi=20framework=20that=20the=20downloaded=20J= avaSpace=20proxy=20shall be=20regarded =20=20=20as=20local=20code=20and=20use=20the=20same=20class=20loaders. 3)=20Or=20a=20combination=20of=201)=20and=202). I=20tried=20exporting=20my=20Entry=20classes=20on=20an=20HTTP=20server=20a= nd=20set=20the java.rmi.server.codebase=20on=20my=20OSGI=20VM=20accordingly.=20This=20got= =20my=20a=20little further,=20I=20could=20now=20take=20entries=20from=20the=20space,=20but=20= then=20I=20got=20a ClassCastException=20"Cannot=20cast=20MyEntry=20to=20MyEntry",=20apparentl= y=20because MyEntry=20from=20the=20code=20base=20is=20not=20the=20same=20as=20MyEntry=20= from=20the=20OSGi=20class loader. I=20saw=20that=20Knopflerfish=20has=20a=20Jini=20Driver=20bundle=20which=20= seems=20to=20do=201).=20Would that=20solve=20my=20problem? Regards, Harald >-----Urspr=FCngliche=20Nachricht----- >Von:=20Mike=20Francis=20[mailto:[email protected]]=20 >Gesendet:=20Donnerstag,=2013.=20September=202007=2017:08 >An:=20Wellmann,=20Harald;[email protected] >Betreff:=20RE:=20Using=20a=20Java=20Space=20from=20an=20OSGi=20bundle > >Harald > >The=20specific=20example=20with=20detailed=20instructions=20can=20be=20fo= und=20 >at=20http://newton.codecauldron.org/Scatter+Gather+Demo.=20If=20you=20 >think=20these=20can=20be=20improved=20upon=20we=20welcome=20your=20feedba= ck. > >If=20you=20require=20any=20further=20assistance=20on=20Newton=20specifica= lly=20 >please=20post=20to=20the=20Newton=20Dev=20list=20-=20you=20can=20subscrib= e=20to=20this=20 >at=20http://newton.codecauldron.org/mailman/listinfo/dev=20or=20 >contact=20me=20directly. > >Regards >Mike=20 =20 ******************************************* innovative=20systems=20GmbH=20Navigation-Multimedia Geschaeftsfuehrung:=20Dr.=20Peter=20Geiselhart=20-=20Kevin=20Brown=20-=20E= dwin=20Summers=20- Regis=20Baudot=20 Sitz=20der=20Gesellschaft:=20Hamburg=20-=20Registergericht:=20Hamburg=20HR= B=2059980=20 =20 ******************************************* Diese=20E-Mail=20enthaelt=20vertrauliche=20und/oder=20rechtlich=20geschuet= zte Informationen.=20Wenn=20Sie=20nicht=20der=20richtige=20Adressat=20sind=20o= der=20diese=20E-Mail irrtuemlich=20erhalten=20haben,=20informieren=20Sie=20bitte=20sofort=20den= =20Absender=20und loeschen=20Sie=20diese=20Mail.=20Das=20unerlaubte=20Kopieren=20sowie=20die= =20unbefugte Weitergabe=20dieser=20Mail=20ist=20nicht=20gestattet. This=20e-mail=20may=20contain=20confidential=20and/or=20privileged=20infor= mation.=20If=20you are=20not=20the=20intended=20recipient=20(or=20have=20received=20this=20e-= mail=20in=20error) please=20notify=20the=20sender=20immediately=20and=20delete=20this=20e-mai= l.=20Any unauthorized=20copying,=20disclosure=20or=20distribution=20of=20the=20cont= ents=20in=20this e-mail=20is=20strictly=20forbidden. ******************************************* _______________________________________________________________________ This=20email=20has=20been=20scanned=20by=20both=20Message=20Labs=20and=20P= aremus=20internal systems=20for=20viruses=20and=20inappropriate=20attachments.=20=20Email=20= suspected=20of carrying=20a=20virus=20payload=20or=20inappropriate=20attachment=20will=20= not=20be=20delivered to=20you,=20and=20the=20sender=20will=20receive=20an=20appropriate=20warni= ng=20notice. _______________________________________________________________________ _______________________________________________________________________ Paremus=20Limited.=20Registered=20in=20England =20No.=204181472 =20Registered=20Office:=20St=20Alphage=20House,=202=20Fore=20Street,=20Lon= don,=20EC2Y=205DH=20Postal=20Address:=20107-111=20Fleet=20Street,=20London= ,=20EC4A=202AB The=20information=20transmitted=20is=20intended=20only=20for=20the=20perso= n(s)=20or=20entity=20to=20which=20it=20is=20addressed=20and=20may=20contai= n=20confidential=20and/or=20privileged=20material.=20Any=20review,=20retra= nsmission,=20dissemination=20or=20other=20use=20of,=20or=20taking=20of=20a= ny=20action=20in=20reliance=20upon,=20this=20information=20by=20persons=20= or=20entities=20other=20than=20the=20intended=20recipient=20is=20prohibite= d. If=20you=20received=20this=20in=20error,=20please=20contact=20the=20sender= =20and=20delete=20the=20material=20from=20any=20computer. _______________________________________________________________________ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html