<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Pete,<br><br>Creating a separate thread from an @AroundInvoke interceptor and using that to proceed() is not actually supported by the Interceptors spec. <br><br>"Around-invoke methods run in the same Java call stack as the associated target method." (page 6) - which is clearly not the case here<br><br>Nevertheless, I'll try to improve the handling in jboss-interceptors (which is used by weld) to handle this use case properly. The invocationcontext is not serializable, but it can be cloned using specific stuff from jboss-interceptors, so we can activate that as a workaround for extant versions of JBoss/Glasssfish/Weld. I'll send a patch on how to do that on the issue itself.<br><br>Hope this helps,<br>Marius<br><br><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Peter Royle" <howardmoon@screamingcoder.com><br><b>To: </b>"Weld-Dev" <weld-dev@lists.jboss.org><br><b>Cc: </b>"Seam-Dev" <seam-dev@lists.jboss.org><br><b>Sent: </b>Friday, May 13, 2011 8:22:54 AM<br><b>Subject: </b>[weld-dev] WELD-862 and Seam Cron<br><br>Hi,<br><br>I'm aiming to make a release of Seam Cron available within the next two weeks. Currently there is an outstanding issue (https://issues.jboss.org/browse/WELD-862) which prevents Cron from running properly with Weld. I have been able to carry on developing Cron by testing it against OpenWebBeans, but obviously if we are to release a Seam module it should work against Weld.<br><br>It would be nice if WELD-862 could be fixed as soon a possible so that all future versions will work well with Cron. <br><br>But more importantly I also probably need to do something special in Cron so that it will work with the version of Weld already deployed in JBoss AS and Glassfish, which will contain the bug. The workaround mentioned in the bug report is to deep copy the InvocationContext. I attempted to do this by serialising and unserialising the InvocationContext but couldn't due to UnserializableExceptions. Does anyone have any advice for me about how I might be able to work around this bug to support existing versions of Weld?<br><br>Cheers,<br><br>Pete R<br>_______________________________________________<br>weld-dev mailing list<br>weld-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/weld-dev<br></div><br></div></body></html>