Results 1 to 4 of 4

Thread: Using JDBC support classes in a non-spring environment

  1. #1
    nivek Guest

    Default Using JDBC support classes in a non-spring environment

    I am interested in incoporating Spring's support classes into a very large project which is primarily using plain JBDC for it's data access. What would be the best way to incorporate Spring's JDBC support for new code while still supporting the usage of traditional JDBC? Using JBoss 3.2.6 and JNDI lookup for Connection's. I would like to continue to use the container's transaction management unless both Spring and JBoss's transaction management could be used together. I have read through the documentation and see that it is supported just with little guidance.

    Thanks for any help..

  2. #2
    Join Date
    Dec 2004
    Location
    MEXICO
    Posts
    11

    Default

    Hello Nivek, have you got any hints about your situation?

    Regards,

    Carlos Morales

  3. #3
    nivek Guest

    Default Using JDBC support classes in a non-spring environment

    Unforunately, no I have not had any responses.

  4. #4
    Join Date
    Sep 2004
    Location
    Melbourne, Australia
    Posts
    54

    Default

    I may be just stating the obvious so I apoligise if that's the case...

    Isn't it as simple as:
    Code:
    JdbcTemplate template = new JdbcTemplate(myDataSource);
    
    List myList = template.queryForList(sql);
    Maybe I'm missing something... When you say your using the containers transaction managment it's a session bean? "It should just work" (tm) as if your using pure JDBC.

Similar Threads

  1. Spring JDBC for unit tests?
    By amkush in forum Data
    Replies: 7
    Last Post: Aug 20th, 2008, 02:29 PM
  2. Environment Variables in Spring?
    By dleal in forum Container
    Replies: 14
    Last Post: Apr 12th, 2007, 06:33 AM
  3. Replies: 2
    Last Post: Oct 24th, 2005, 09:41 AM
  4. Replies: 2
    Last Post: Jul 19th, 2005, 07:30 AM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •