#7 JDBCDataSourceLoader fix

v2.2 (stable)
closed-accepted
5
2001-04-19
2001-04-16
Anonymous
No

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 [toby.allsopp@peace.com]
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 [tttaylor@cssassociates.com]
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.

Discussion

  • Nobody/Anonymous

    contains unix style diff from sourcesafe for two files

     
  • Toby Allsopp

    Toby Allsopp - 2001-04-19
    • milestone: --> v2.2 (stable)
    • assigned_to: nobody --> tobyallsopp
    • status: open --> open-accepted
     
  • Toby Allsopp

    Toby Allsopp - 2001-04-19
    • status: open-accepted --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks