Bugs item #605539, was opened at 2002-09-06 14:24
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=605539&group_id=22866
Category: None
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Jens Viebig (jsurf)
Assigned to: Nobody/Anonymous (nobody)
Summary: XADatasourceLoader stopService() Bug
Initial Comment:
I found a bug in XADatasourceLoader of JBoss 2.4.8:
The connection pool is not correctly unbound when
using the stop()-Method of the MBean:
It uses NonSerializableFactory for binding the
Datasource to JNDI but not for unbind:
private void bind(Context ctx, String name, Object val)
throws NamingException
{
// Ah ! Session isn't serializable, so we use a helper
class
NonSerializableFactory.bind(name, val);
...
}
Here is the bug:
public void stopService()
{
// Unbind from JNDI
try {
String name = getSource().getPoolName();
new InitialContext().unbind("java:/"+name);
...
}
should be:
public void stopService()
{
// Unbind from JNDI
try {
String name = getSource().getPoolName();
new InitialContext().unbind("java:/"+name);
NonSerializableFactory.unbind("java:/"+name);
...
}
so that it is removed from the internal map of
NonSerializableFactory
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=605539&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development