Hey Marco,
1) please feel free to start a new thread for a new question :)
2) I'm sure that there has to be a notation in the log. I'm not exactly sure
what you're doing here but I assume the following:
bundleA
imports InterfaceX;
// this thing get autoinjected
private InterfaceX x;
bundleB
Do you use blueprint for that or pure OSGi services ?
Could we have the spring file and the complete stack trace ?
Regards
JB
-Original Message-
From: Marco Firrincieli
Date: Tue, 15 Feb 2011 17:20:41
To: user@karaf.apache.org
Reply-To: user@karaf.apache.org
Subject: spring injected bean
On Tue, Feb 15, 2011 at 17:19, Andreas Pieber wrote:
> Hey Marco,
>
> 1) please feel free to start a new thread for a new question :)
>
> 2) I'm sure that there has to be a notation in the log. I'm not exactly sure
> what you're doing here but I assume the following:
>
> bundleA
>
> imports Interf
Re: spring injected bean cannot be found
Do you use blueprint for that or pure OSGi services ?
Could we have the spring file and the complete stack trace ?
Regards
JB
From: Marco Firrincieli
Date: Tue, 15 Feb 2011 17:20:41 +0100
To: user@karaf.apac
> The autowired doesn’t seem to work.
>
>
>
>
> Ps: @Andreas, is this not a new thread?
>
>
>
>
>
>
>
>
>
>
>
>
>
> From: j...@nanthrax.net [mailto:j...@nanthrax.net]
> Sent: martedì 15 febbraio 2011 17:21
> To:
rco Firrincieli
Subject: Re: spring injected bean cannot be found
ah ok, this can't work this way... in bundlaA only the spring files in bundleA
count; if you define the autowiring things in bundleA-spring-file it will work;
BUT bundleA-spring-files have no idea of bundleb-spring-files...
er [mailto:anpie...@gmail.com]
> Sent: martedì 15 febbraio 2011 17:42
> To: user@karaf.apache.org; Marco Firrincieli
> Subject: Re: spring injected bean cannot be found
>
> ah ok, this can't work this way... in bundlaA only the spring files in
> bundleA count; if you defin
Sent: martedì 15 febbraio 2011 18:10
To: user@karaf.apache.org; Marco Firrincieli
Subject: Re: spring injected bean cannot be found
Yeah, as said: don't use new, but rather use spring-dm to export BundleBClass
as a service (you have to add an interface therefore) and import it into
bundleACl
andreas
>
>
> -Original Message-
> From: Andreas Pieber [mailto:anpie...@gmail.com]
> Sent: martedì 15 febbraio 2011 18:10
> To: user@karaf.apache.org; Marco Firrincieli
> Subject: Re: spring injected bean cannot be found
>
> Yeah, as said: don't use new, bu
Alright.
Just one more thing. My activator (inside bundleA) is not a spring project.
so where do I put this mailto:anpie...@gmail.com]
Sent: martedì 15 febbraio 2011 18:42
To: user@karaf.apache.org; Marco Firrincieli
Subject: Re: spring injected bean cannot be found
On Tue, Feb 15, 2011 at 06
g project.
>
> so where do I put this
>
>
> -Original Message-
> From: Andreas Pieber [mailto:anpie...@gmail.com]
> Sent: martedì 15 febbraio 2011 18:42
> To: user@karaf.apache.org; Marco Firrincieli
> Subject: Re: spring injected bean cannot be found
>
>
is
(servicetracker).
From: Andreas Pieber [anpie...@gmail.com]
Sent: 15 February 2011 19:13
To: user@karaf.apache.org; Marco Firrincieli
Subject: Re: spring injected bean cannot be found
Either you create a spring-bundle or you simply user e.g. ServiceTracker to
ret
ruary 2011 19:13
> To: user@karaf.apache.org; Marco Firrincieli
> Subject: Re: spring injected bean cannot be found
>
> Either you create a spring-bundle or you simply user e.g. ServiceTracker to
> retrieve the service in the activator
>
> kind regards,
> andreas
>
> On Tu
13 matches
Mail list logo