Patches item #416523, was updated on 2001-04-16 14:00
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=416523&group_id=22866

Category: JBossServer
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: JDBCDataSourceLoader fix

Initial Comment:
Here are two responses to a problem that I posted to 
JBoss-user regarding a NullPointerException when 
trying to create a JDBCDataSource. 

>From Toby Allsopp [[EMAIL PROTECTED]]
It seems that JDBCDataSourceLoader is borked.
Can you please try adding the initialisation of source 
to the no args constructor and see if that works?
If that fixes it, please post a patch in the 
SourceForge patch tracker and I'll commit it.
Thanks for the report,
Toby. 

>From Tim Taylor [[EMAIL PROTECTED]]
I just tried initializing the source variable in the 
no-args constructor.  It works, but you also have to 
add a setPoolName/getPoolName pair to 
JDBCDataSourceLoader and JDBCDataSourceLoaderMBean. 
After that, JDBCDataSourceLoader works just like 
XADataSourceLoader from jboss.jcml.  One minor 
difference is that there is no DataSourceClass 
attribute to set...
Tim

----------------
I made the above suggested changes along with a change 
to getProperties() and I was able to define a 
JDBCDataSource without errors. It was created and 
bound to JNDI but I couldn't test it with my 
application because I am having trouble getting the 
latest jboss build to work with the latest tomcat 4.0 
build. 

See attached file for the patch of 
JDBCDataSourceLoader.java and 
JDBCDataSourceLoaderMBean.java

See "need JDBCDataSourceLoader example" thread in 
JBoss-User.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=416523&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to