Perhaps if you post the code of your service bean class we could help?

On 1/20/07, jmowla <[EMAIL PROTECTED]> wrote:


Mike
i do that way, but applicationContext is still null, i'm just confused.
any
more advice?
thanks


Michael Horwitz wrote:
>
> One approach would be to declare your service layer been to be
application
> context aware: implements ApplicationContextAware. Spring will
> automatically
> pass in the application context to any bean that implements this
> interface.
>
> Mike
>
> On 1/20/07, jmowla <[EMAIL PROTECTED]> wrote:
>>
>>
>> hi all
>> i'm using appfuse 1.9.4 (springmvc+spirng+hibernate) and want to get a
>> bean
>> programatically by using 'getBean()' method in simple java class in
>> service
>> layer. how can i get a valid ApplicationContext class? or how can i do
>> that
>> ( except wiring )
>> thanks in advanced
>> --
>> View this message in context:
>>
http://www.nabble.com/accesing-bean-in-servcie-layer-tf3044538s2369.html#a8463190
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/accesing-bean-in-servcie-layer-tf3044538s2369.html#a8465949
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to