I haven't tried to do this yet. You can try using the
SpringBeanProcessor (its a BeanProcessor) and initialize it with the
dispatcher/factory that is created by Netty adapter.
I'm in the middle of a few things this week (one of them being the
hurricane and intermitent power outages), but I think the tools are
there for you to use. I can write something up later when I get the
time. If you can't wait, then I suggest looking at the above. please
post here if u figure something out.
On 10/30/2012 2:56 PM, Claudio Bantaloukas wrote:
> Hi all,
> I'd like to use the recently added netty support in resteasy to create a
> standalone web service jar. Dependencies are minimal, the documentation
> seems pretty good and I was able to produce some interesting prototypes
> in no time.
>
> However I feel stuck by lack of documentation on how to inject
> dependencies to the service handling objects.
> Where are these instantiated?
> Can I access them with spring somehow?
> Should I simply use a singleton to capture the necessary objects from
> the spring context, defeat the purpose of using spring in the first
> place and get stuff done(TM)?
> Or is there a proper way to do this?
>
> Thanks
> Claudio Bantaloukas
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Resteasy-developers mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|