Hi. Here's the problem: I want to pack my session beans in .ejb3 file, while my entities are in .par. The .par will be mapped to a persistence context (say "foo") whose datasource is a PostgreSQL database. I would like all my session beans in that .ejb3 file to use that persistence context, but the only way it could be done (that I've found so far) is to add unitName="foo" in every @PersistenceContext injection in each session bean. My question is: Can I say "All @PersistenceContext injections in this .ejb3 file would use this persistence context if none is specified"?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922840#3922840 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922840 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
