[JBoss-dev] [ jboss-Bugs-605539 ] XADatasourceLoader stopService() Bug

2004-08-26 Thread SourceForge.net
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=detailatid=376685aid=605539group_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(quot;java:/quot;+name);

...

}

should be:

public void stopService()
{
// Unbind from JNDI
try {
String name = getSource().getPoolName();
new InitialContext().unbind(quot;java:/quot;+name); 
NonSerializableFactory.unbind(quot;java:/quot;+name);

... 

}

so that it is removed from the internal map of 
NonSerializableFactory

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=605539group_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


[JBoss-dev] [ jboss-Bugs-605539 ] XADatasourceLoader stopService() Bug

2002-09-06 Thread noreply

Bugs item #605539, was opened at 2002-09-06 14:24
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=605539group_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=detailatid=376685aid=605539group_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=sourceforge1refcode1=vs3390
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development