2009/4/8 Carl Cook <[email protected]>

>
> Hi there,
>
> A newbie question: Do you think it is possible to use Guice to inject
> remote objects (i.e. RMI proxies, JMS providers, etc) into
> applications?
>

certainly, I've already written an extension to inject OSGi services:

   http://code.google.com/p/peaberry/

which uses a "ServiceRegistry" abstraction, so you should be able to
plug remote services into that - the ServiceRegistry API is very easy


> From looking at the introduction video and the user guide, the
> examples (understandably) use POJOs, but I also see that a JNDI
> provider is discussed.
>
> I think that it would be rather impressive to use Guice to dependency-
> inject remote services into an application. I have been reading about
> the OSGi RFC 119 (in particulary the dynamic service discovery
> mechanism), and I figure that Guice could be used to provide this in a
> very loosely coupled way.
>

the peaberry extension should already work with RFC 119 because it
uses the same OSGi service registry underneath - you'll just need to
set the relevant properties, etc. to make a given OSGi service remote


> It's just a thought, but I would be interested in coding up some
> sample remote service discover apps via Guice if people thought that
> it was a viable idea.
>

I'd be very interested to see the results of redoing the current CXF demo
using Guice instead of Spring-DM - unfortunately I don't have time to look
at this myself right now, but I could help out with advice now and again :)

  http://cxf.apache.org/distributed-osgi.html


http://coderthoughts.blogspot.com/2009/02/distributed-osgi-simple-example.html

http://coderthoughts.blogspot.com/2009/02/distributed-osgi-powered-ajax-webapp.html

HTH

Many thanks,
> -Carl.
>

-- 
Cheers, Stuart

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to