[jboss-user] [EJB 3.0] - Re: @EJB injection after redeploy

2009-05-20 Thread jaikiran
Are you sure this is happening? I haven't heard of similar caching issues. Is there any caching involved within your application for objects returned from lookup? Also, can you try this on JBossAS-5.1.0 CR1? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=423

[jboss-user] [EJB 3.0] - Re: @EJB injection after redeploy

2009-05-20 Thread vlotarev
It's interesting that new InitialContext().list() returns right bound proxy classes but direct lookup invoked on the same context new InitialContext().lookup(name) returns old proxy class ... It looks like InitialContext implementation caches bound objects somewhere (in static variable?) and

[jboss-user] [EJB 3.0] - Re: @EJB injection after redeploy

2009-05-20 Thread vlotarev
I did some testing: replaced @EJB dependency injection by direct JNDI lookup but this didn't solve the problem. I noticed that the same $Proxy object is returned in response to JNDI lookup after several application re-deployments. Though JNDIView MBean shows different $Proxy objects after each r

[jboss-user] [EJB 3.0] - Re: @EJB injection after redeploy

2009-05-20 Thread vlotarev
JBoss version is 4.2.3GA I am making hot-deploy just copying corresponding EAR file in the server/deploy folder. Deployment itself went well except several warnings (I removed log entries related to entity beans deployment since as far as I guess the are out of interest). INFO [EARDeployer] I

[jboss-user] [EJB 3.0] - Re: @EJB injection after redeploy

2009-05-20 Thread jaikiran
Which version of JBoss AS do you use? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232142#4232142 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232142 ___ jboss-user mailin

[jboss-user] [EJB 3.0] - Re: @EJB injection after redeploy

2009-05-20 Thread jaikiran
"vlotarev" wrote : but fails after re-deployment (the first access to injected EJB) How do you redeploy? Do those beans belong to the same application (jar)? Can you post the console logs from the point you do a redeploy? Do you access these beans from a standalone client? View the original p