users@jersey.java.net

Re: [Jersey] _at_Resource

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Mon, 07 Jul 2008 18:25:28 +0200

On Mon, Jul 07, 2008 at 12:15:42PM +0200, Markus Karg wrote:
> I have deployed a Jersey-0.8 based resource in GlassFish v2ur2.
> It seems as if @Resource in my resource is not getting injected.
> I assume that the reason is that my JAX-RS resource is not a managed component, while com.sun.jersey.spi.container.servlet.ServletContainer actually is one (it is a Servlet).

At the moment, injection is managed by Jersey runtime.
And AFAIK, support for @Resource is missing at the moment.

>
> I can live with that for now (v2ur2), but how will that look like in GFv3? Will GFv3 treat JAX-RS resources as managed components (and such inject into those)?

The support in GFv3 should be as you described.
But if you want just tell me what you need to be injected,
i can try to implement the injection provider for you to work
already in GFv2.

~Jakub

>
> Thanks
> Markus
>
> QUIPSY QUALITY GmbH & Co. KG
> Ein Unternehmen der MES-Gruppe
> Stuttgarter Strasse 23
> D-75179 Pforzheim
> Tel: 07231-9189-52
> Fax: 07231-9189-59
> www.quipsy.de
> karg_at_quipsy.de
> Registergericht Mannheim HRA 701214
> Geschäftsführer: Nils Schroeder
>
> Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe geschützte Informationen und ist ausschließlich für den vorgesehenen o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail versehentlich erhalten haben und nicht der vorgesehene Empfänger sind, bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren, nicht zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben. Bitte informieren Sie uns als Absender über diesen Zustellungsfehler und löschen Sie die E-Mail.
>
>
>
>
>

Content-Description: Markus KARG.vcf
> BEGIN:VCARD
> VERSION:2.1
> X-MS-SIGNATURE:YES
> N;LANGUAGE=de:KARG;Markus
> FN:Markus KARG
> ORG:QUIPSY QUALITY GmbH & Co. KG;Research & Development
> TITLE:Team Leader Implementation & Design
> TEL;WORK;VOICE:+49 7231 9189 52
> ADR;WORK;PREF;CHARSET=Windows-1252:;;Stuttgarter Stra?e 23;Pforzheim;;75179;Germany
> LABEL;WORK;PREF;CHARSET=Windows-1252;ENCODING=QUOTED-PRINTABLE:Stuttgarter Stra=DFe 23=0D=0A=
> 75179 Pforzheim=0D=0A=
> Germany
> X-MS-OL-DEFAULT-POSTAL-ADDRESS:2
> URL;WORK:http://www.quipsy.de
> EMAIL;PREF;INTERNET:karg_at_quipsy.de
> X-MS-OL-DESIGN;CHARSET=utf-8:<card xmlns="http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards" ver="1.0" layout="left" bgcolor="ffffff"><img xmlns="" align="fit" area="16" use="cardpicture"/><fld xmlns="" prop="name" align="left" dir="ltr" style="b" color="000000" size="10"/><fld xmlns="" prop="org" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="title" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="dept" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="telwork" align="left" dir="ltr" color="000000" size="8"><label align="right" color="626262">Work</label></fld><fld xmlns="" prop="email" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="addrwork" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="webwork" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/></card>
> REV:20080618T082751Z
> END:VCARD

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net


-- 
http://blogs.sun.com/japod