Ivan,

The annotations are aspects and need to be applied at object instantiation
by the Spring framework. When the bean component speacializes a thread for a
Service/Endpoint it should apply the annotations prior to operation
invocation.

My impression is that this might be a dated version that causes it to
happen. I am not aware of any JBI related limitations that might result in
this effect. Can you please verify whether this still happens with 3.3.x. If
so then this may be a bug.

Cheers,

Ashwin...


Ivan Pryvalov wrote:
> 
> Hi!
> 
> I use Servicemix 3.2.1 (it is already old version).
> 
> In some service (servicemix-bean component) I use annotation 
> @PostConstruct and @PreDestroy and found some behavoir of component in 
> life-cycle of service:
> 
> 
> 1. Deploy:     @PostConstruct is called.
> 2. Stop  :     @PreDestroy is called.
> 3. Start :     @PostConstruct is NOT called.
> 4. Stop  :     @PreDestroy is called.
> 
> 
> It is bug of SMX 3.2.1 or not?
> What correct behaviour should be?
> 
> 
> Thanks,
> Truly yours,
> Ivan Pryvalov.
> 
> 


-----
--- 
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
--- 
+1-972-304-9084 (Office) 
+1-972-971-1700 (Mobile) 
---- 
Blog: http://opensourceknowledge.blogspot.com/


-- 
View this message in context: 
http://www.nabble.com/Annotation-in-servicemix-bean-tp20958934p20985669.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to