Re: [JBoss-user] passivation exception

2001-07-25 Thread Lars Bjønnes
"Shawn Chambers" <[EMAIL PROTECTED]> writes: > Hi, > > public void getConnection() throws Exception > { > Hashtable env = new Hashtable(); > env.put(Context.INITIAL_CONTEXT_FACTORY, > "org.jnp.interfaces.NamingContextFactory"); > env.put(Context.PROVIDER_URL, "localhost

RE: [JBoss-user] passivation exception

2001-07-25 Thread Sternagel Annegret (PN-SYS/DAS)
It seems that the Connection class is not serializable. So either you can close the connection directly after use and do not hold it as bean attribute or close the connection in ejbPassivate() and reopen it in ejbActivate(). Annegret > -Original Message- > From: Shawn Chambers [SMTP:[EM