Followup from some testing If I try
| bean = home.create(); | | bean.method1(); | | bean.method2(); | | bean.remove(); | then - after method1 completes (on method exit) Jboss shouts: | 2004-10-05 23:36:09,053 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself: [EMAIL PROTECTED] | java.lang.Exception: STACKTRACE | ... | bean.method2() finds an existing hibernate session (in the stateful beans state) - but - when it tries to access this session it gets told that the underlying database connection is closed. Can a connection not be held in a stateful beans state? The config for the bean looks like: | <session > | <description>>Config lookup bean (key/val)</description> | <ejb-name>AdminSB</ejb-name> | <home>org.longship.joti.ejb.interfaces.AdminSBHome</home> | <remote>org.longship.joti.ejb.interfaces.AdminSB</remote> | <ejb-class>org.longship.joti.ejb.session.AdminSBSession</ejb-class> | <session-type>Stateful</session-type> | <transaction-type>Container</transaction-type> | </session> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850452#3850452 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850452 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
