Hi,

I have observed that start method for one of my provider endpoint is getting
called multiple time. My understanding was that start method will get called
only once so we used it as place to create and schedule timer in our project
but SA deployment fails if start is called again on same object of provider
endpoint.

| ERROR | pool-services.registry-thread-17 | Registry                 |
vicemix.jbi.framework.Registry  867 | Error trying to restore service
assembly state

| ERROR | pool-services.registry-thread-18 | Registry                 |
vicemix.jbi.framework.Registry  867 | Error trying to restore service
assembly state

Is this expected and should I change my code so that it doesn't hold a state
(like Timer or any other class variable)? 

Also I observed that these calls are from different thread. Does SA
deployment happens in multi-threaded environment? Also if one SU fails, like
mentioned above, what happens to state of other SU in that SA - will they
get deployed and started?

Regards, 
Naveen


--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Endpoint-start-getting-called-multiple-time-tp5488617p5488617.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to