Bugs item #605539, was opened at 2002-09-06 12:24
Message generated for change (Settings changed) made by ejort
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: Closed
>Resolution: Out of Date
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


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to