Hi there Simon,
Thanks for your attention.
I am working with stateful session beans.
Here is my jboss.xml:
------------------ CUT HERE -----------------------
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>false</secure>
<container-configurations>
<container-configuration
configuration-class="org.jboss.ejb.deployment.StatefulSessionContainerConfiguration">
<container-name>default</container-name>
<call-logging>true</call-logging>
<container-invoker>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker</container-invoker>
<instance-pool></instance-pool>
<instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache</instance-cache>
<persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager</persistence-manager>
<transaction-manager></transaction-manager>
<authentication-module></authentication-module>
<role-mapping-manager></role-mapping-manager>
<container-invoker-conf>
<Optimized>true</Optimized>
</container-invoker-conf>
<container-cache-conf>
<cache-policy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy</cache-policy>
<cache-policy-conf>
<min-capacity>1</min-capacity>
<max-capacity>10</max-capacity>
<overager-period>20</overager-period>
<resizer-period>10</resizer-period>
<max-bean-age>100</max-bean-age>
<max-cache-miss-period>200</max-cache-miss-period>
<min-cache-miss-period>100</min-cache-miss-period>
<cache-load-factor>0.5</cache-load-factor>
</cache-policy-conf>
</container-cache-conf>
</container-configuration>
</container-configurations>
<resource-managers />
<enterprise-beans>
<session>
<ejb-name>ejb_listmanager</ejb-name>
<jndi-name>ejb_listmanager</jndi-name>
<configuration-name></configuration-name>
<resource-ref>
<res-ref-name>jdbc/Oracle</res-ref-name>
<resource-name>jdbc/Oracle</resource-name>
</resource-ref>
</session>
</enterprise-beans>
</jboss>
------------------------------------ CUT HERE
----------------------------------------------
And here is an excerpt from my sesion bean code:
------------------------------------ CUT HERE
----------------------------------------------
public void ejbPassivate() throws RemoteException {
m_debug.addFilteredMessage("[ListManagerEJB] Passivated",this);
stop();
}
public void stop() {
try {
if (m_conn!=null) {
m_conn.close();
m_conn = null;
m_datasource = null;
}
} catch (Exception xExc) {
m_debug.addFilteredMessage("[ListManagerEJB] stop: Error releasing
connection:"+xExc.getMessage(),this);
}
}
------------------------------------ CUT HERE
----------------------------------------------
The m_debug.addFilteredMessage is working (I can see the logging on the screen
for other parts of the bean), but the stop() method, that releases the
connection
doesn't get called, neither the [ListManagerEJB] Passivated ever gets to the
console...
Thanks for your help,
Fábio
Linux RedHat 7.0, Sun JDK 1.3.0, Oracle 8.1.7, JBoss 2.1 BETA+Tomcat 3.2.1b7
binary distribution.
"Bordet, Simone" wrote:
> Hey,
>
> > Hello all...
> >
> > Any news on the ejbPassivate issue? I browsed the code and everything
> > seemed ok... Looks like a deeper bug...
> > Anyone had the same problem? It's strange that with so many people, I
> > only seen one or two posts on this issue...
>
> For me it works.
>
> Can you post a simple example (with jboss.xml if you modified the times for
> passivation) and specify if you are referring to stateful or entities ?
>
> Simon
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user