Should postconstruct be async? Not sure. Tx mgt is optional too i guess (to
check).
Le 22 juil. 2012 01:28, "zeeman" <hamz...@fastmail.us> a écrit :

> Is my setup of exclusions correct?
>
> The only extra thing I have is DB population, which should run in
> background
> non-blocking, right?
>
> My class looks like this:
>
> @Singleton
> @Startup
> public class DBLoader implements Serializable {
>         @Asynchronous
>         @TransactionAttribute
>         @PostConstruct
>         public void setup() {
>         //populate DB, index data with Lucene, should not block
> }
> }
>
> The only explanation is that the code is not running Async. I know on Jboss
> there was a bug in @Async implementation, had to get jBoss guys to fix it.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/war-packaged-exclusions-list-tp4656366p4656468.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to