Re: Using a Java Space from an OSGi bundle
Mike Francis <[email protected]> Thu, 13 Sep 2007 16:08:23 +0100
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Organization | Paremus |
| Message-ID | <[email protected]> |
Harald The=20specific=20example=20with=20detailed=20instructions=20can=20be=20fou= nd=20at http://newton.codecauldron.org/Scatter+Gather+Demo.=20If=20you=20think=20t= hese=20can be=20improved=20upon=20we=20welcome=20your=20feedback. If=20you=20require=20any=20further=20assistance=20on=20Newton=20specifical= ly=20please=20post=20to the=20Newton=20Dev=20list=20-=20you=20can=20subscribe=20to=20this=20at http://newton.codecauldron.org/mailman/listinfo/dev=20or=20contact=20me=20= directly. Regards Mike -----Original=20Message----- From:=20Wellmann,=20Harald=20[mailto:[email protected]]=20 Sent:=2013=20September=202007=2015:53 To:[email protected] Subject:=20AW:=20Using=20a=20Java=20Space=20from=20an=20OSGi=20bundle While=20googling=20for=20an=20answer=20to=20my=20question,=20I've=20alread= y=20come=20across=20Newton and=20downloaded=20it. There=20is=20little=20or=20no=20documentation=20with=20it.=20Unless=20you=20= give=20a=20more=20specific example,=20I=20can=20only=20believe=20that=20there=20is=20a=20solution,=20= but=20I=20cannot=20get=20at it.=20I=20don't=20really=20want=20a=20new=20framework,=20I=20just=20want=20= to=20know=20how=20to=20get=20my classloader=20and/or=20codebase=20right. Nor=20do=20I=20want=20to=20export=20any=20Jini=20services=20from=20OSGi,=20= I=20just=20want=20to=20use=20a JavaSpace.=20The=20fact=20that=20the=20space=20is=20a=20Jini=20service=20i= s=20an=20implementation detail. Regards, Harald >-----Urspr=FCngliche=20Nachricht----- >Von:=20Mike=20Francis=20[mailto:[email protected]]=20 >Gesendet:=20Donnerstag,=2013.=20September=202007=2016:17 >An:[email protected] >Betreff:=20Re:=20Using=20a=20Java=20Space=20from=20an=20OSGi=20bundle > >Harald > >Check=20out=20the=20Newton=20open=20source=20project=20 >(www.codecauldron.org)=20there=20is=20an=20example=20of=20Blitz=20running= =20in=20 >an=20OSGi=20framework=20in=20a=20scenario=20similar=20to=20you=20have=20d= escribed. > >Newton=20is=20the=20foundation=20elements=20of=20the=20commercial=20Parem= us=20 >Infiniflow=20product,=20of=20which=20there=20is=20a=20free=20commercial=20= >evaluation=20available.=20You=20can=20find=20out=20further=20details=20at= =20 >http://www.paremus.com/downloads/downloads.html. >[Blatent=20plug=20over] > >If=20you=20have=20any=20questions=20please=20do=20not=20hesitate=20to=20c= ontact=20me. > >Regards >Mike > >-----Original=20Message----- >From:=20Wellmann,=20Harald=20[mailto:[email protected]] >Sent:=2013=20September=202007=2014:58 >To:[email protected] >Subject:=20Using=20a=20Java=20Space=20from=20an=20OSGi=20bundle > >I'm=20having=20a=20classloader=20issue=20when=20using=20a=20JavaSpace=20f= rom=20 >within=20an=20OSGi=20bundle. > >(My=20JavaSpace=20is=20Blitz=20from=20the=20IncaX=204.1=20community=20edi= tion=20my=20 >OSGi=20environment=20is=20Eclipse=203.2,=20running=20under=20JDK=206.0). > >The=20JavaSpace=20and=20the=20OSGi=20bundle=20are=20running=20in=20separa= te=20VMs.=20 >I=20can=20write=20an=20entry=20to=20the=20space=20from=20my=20OSGi=20bund= le,=20but=20 >when=20trying=20to=20take=20the=20entry=20I've=20just=20written: > >13.09.2007=2014:54:36=20org.dancres.blitz.mangler.EntryMangler=20unMangle= >SCHWERWIEGEND:=20Error=20during=20unpack: >java.lang.ClassNotFoundException: >com.harmanbecker.anaconda.job.space.MaxJobIdEntry >=20=20=20=20=20=20=20=20at=20java.net.URLClassLoader$1.run(URLClassLoader= .java:200) >=20=20=20=20=20=20=20=20at=20java.security.AccessController.doPrivileged(= Native=20Method) >=20=20=20=20=20=20=20=20at=20java.net.URLClassLoader.findClass(URLClassLo= ader.java:188) >=20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.= java:306) >=20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.= java:251) >=20=20=20=20=20=20=20=20at=20 >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >=20=20=20=20=20=20=20=20at=20java.lang.Class.forName0(Native=20Method) >=20=20=20=20=20=20=20=20at=20java.lang.Class.forName(Class.java:247) >=20=20=20=20=20=20=20=20at >sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434) >=20=20=20=20=20=20=20=20at >sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) >=20=20=20=20=20=20=20=20at >java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) >=20=20=20=20=20=20=20=20at >java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) >=20=20=20=20=20=20=20=20at=20 >net.jini.loader.ClassLoading.loadClass(ClassLoading.java:138) >=20=20=20=20=20=20=20=20at >org.dancres.blitz.mangler.EntryMangler.unMangle(EntryMangler.java:86) >=20=20=20=20=20=20=20=20at=20 >org.dancres.blitz.remote.BlitzProxy.take(BlitzProxy.java:117) >=20=20=20=20=20=20=20=20at >com.harmanbecker.anaconda.job.test.ReadAndTake.run(ReadAndTake.java:30) >=20=20=20=20=20=20=20=20at >com.harmanbecker.anaconda.main.Activator.run(Activator.java:106) >=20=20=20=20=20=20=20=20at=20java.lang.Thread.run(Thread.java:619) > >How=20do=20I=20ensure=20that=20the=20JavaSpace=20proxy=20(loaded=20via=20= RMI)=20can=20 >load=20the=20classes=20exported=20by=20my=20bundle? > >By=20the=20way,=20I'm=20surprised=20that=20I=20could=20load=20the=20RMI=20= proxy=20at=20 >all,=20as=20my=20bundle=20has=20no=20declared=20dependency=20on=20Blitz. > >Regards, > >Harald=20Wellmann > >******************************************* >innovative=20systems=20GmbH=20Navigation-Multimedia >Geschaeftsfuehrung:=20Dr.=20Peter=20Geiselhart=20-=20Kevin=20Brown=20-=20= Edwin=20 >Summers=20-=20Regis=20Baudot=20Sitz=20der=20Gesellschaft:=20Hamburg=20-=20= >Registergericht:=20Hamburg=20HRB=2059980 > >******************************************* >Diese=20E-Mail=20enthaelt=20vertrauliche=20und/oder=20rechtlich=20 >geschuetzte=20Informationen.=20Wenn=20Sie=20nicht=20der=20richtige=20 >Adressat=20sind=20oder=20diese=20E-Mail=20irrtuemlich=20erhalten=20haben,= =20 >informieren=20Sie=20bitte=20sofort=20den=20Absender=20und=20loeschen=20Si= e=20 >diese=20Mail.=20Das=20unerlaubte=20Kopieren=20sowie=20die=20unbefugte=20 >Weitergabe=20dieser=20Mail=20ist=20nicht=20gestattet. >This=20e-mail=20may=20contain=20confidential=20and/or=20privileged=20 >information.=20If=20you=20are=20not=20the=20intended=20recipient=20(or=20= have=20 >received=20this=20e-mail=20in=20error)=20please=20notify=20the=20sender=20= >immediately=20and=20delete=20this=20e-mail.=20Any=20unauthorized=20copyin= g,=20 >disclosure=20or=20distribution=20of=20the=20contents=20in=20this=20e-mail= =20is=20 >strictly=20forbidden. >******************************************* > >=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=20unsubscribe,[email protected]=20and=20 >include=20in=20the=20body=20of=20the=20message=20"signoff=20JAVASPACES-US= ERS".=20 >=20For=20general=20help,[email protected]=20an= d=20 >include=20in=20the=20body=20of=20the=20message=20"help". > >To=20view=20past=20JAVASPACES-USERS=20postings,=20please=20see: >http://archives.java.sun.com/archives/javaspaces-users.html > >_______________________________________________________________________ >This=20email=20has=20been=20scanned=20by=20both=20Message=20Labs=20and=20= Paremus=20 >internal=20systems=20for=20viruses=20and=20inappropriate=20attachments.=20= =20 >Email=20suspected=20of=20carrying=20a=20virus=20payload=20or=20inappropri= ate=20 >attachment=20will=20not=20be=20delivered=20to=20you,=20and=20the=20sender= =20will=20 >receive=20an=20appropriate=20warning=20notice. >_______________________________________________________________________ > > >_______________________________________________________________________ >Paremus=20Limited.=20Registered=20in=20England >=20No.=204181472 >=20Registered=20Office:=20St=20Alphage=20House,=202=20Fore=20Street,=20Lo= ndon,=20 >EC2Y=205DH=20Postal=20Address:=20107-111=20Fleet=20Street,=20London,=20EC= 4A=20 >2AB=20The=20information=20transmitted=20is=20intended=20only=20for=20the=20= >person(s)=20or=20entity=20to=20which=20it=20is=20addressed=20and=20may=20= contain=20 >confidential=20and/or=20privileged=20material.=20Any=20review,=20 >retransmission,=20dissemination=20or=20other=20use=20of,=20or=20taking=20= of=20 >any=20action=20in=20reliance=20upon,=20this=20information=20by=20persons=20= or=20 >entities=20other=20than=20the=20intended=20recipient=20is=20prohibited. >If=20you=20received=20this=20in=20error,=20please=20contact=20the=20sende= r=20and=20 >delete=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=20unsubscribe,[email protected]=20and=20 >include=20in=20the=20body=20of=20the=20message=20"signoff=20JAVASPACES-US= ERS".=20 >=20For=20general=20help,[email protected]=20an= d=20 >include=20in=20the=20body=20of=20the=20message=20"help". > >To=20view=20past=20JAVASPACES-USERS=20postings,=20please=20see: >http://archives.java.sun.com/archives/javaspaces-users.html > =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=20unsubscribe,[email protected]=20and=20incl= ude=20in=20the=20body of=20the=20message=20"signoff=20JAVASPACES-USERS".=20=20For=20general=20he= lp,=20send=20email=20to [email protected]=20and=20include=20in=20the=20body=20of=20the=20messa= ge=20"help". To=20view=20past=20JAVASPACES-USERS=20postings,=20please=20see: http://archives.java.sun.com/archives/javaspaces-users.html _______________________________________________________________________ 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