MyService is an @ApplicationScoped bean

And, yet the identity hashcodes change between the init, and destroy
methods.

Which means, I don't have access to the same instance variables in destory,
that I constructed in the init.

This is the problem.


In my specific case, I am creating a UDP socket in init, storing it as an
instance variable. And want to close it in destroy. However, the destroy
method cant access the socket - crashes with null pointer.  I cant
hot-redeploy as the UDP socket remains open. :-(





--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/CDI-Observes-ApplicationScoped-class-tp4681766p4681768.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to