dev@jersey.java.net

Re: [Jersey] spring and multiple beans error

From: Pedro Teixeira <pedro.t_at_gmail.com>
Date: Fri, 15 May 2009 12:21:10 -0300

Sorry Paul if I was't clear, will try to explain my scenario is as follows:

I'm using the com.sun.jersey.spi.spring.container.servlet.SpringServlet and
using version 1.0.1

and having the following resources given an error:

@Path
@Component
class A {

}

@Path
@Component
class B extends A {
}


The exception complains there is multiple bean definition for A and suggest
the use of @Inject but I'm not injection the resources anywhere.

I just wanted to check if this is known not to be supported.


Thanks,
Pedro



On Fri, May 15, 2009 at 8:45 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:

>
> On May 15, 2009, at 1:01 AM, Pedro Teixeira wrote:
>
> Hi all,
>>
>> Just want to know if there is any way to have more than one resource
>> (which is a jersey resource and is managed by spring) inheriting from the
>> same class?
>>
>> Currently, SpringComponentProviderFactory.getBeanName throws an exception.
>>
>>
> Doe you mean for the case when there are multiple beans names registered
> for the same class? or something different?
>
> Some more information, code for the resource classes and the spring config
> would help me understand better what is gong on.
>
> Thanks,
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>
>