Results 1 to 2 of 2

Thread: how to get SQL connection from spring JPA template?

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    colombo, Sri Lanka
    Posts
    19

    Default how to get SQL connection from spring JPA template?

    What are the steps to get java.sql.Connection from Spring JPA template. I need to get the connection so that I can call a oracle stored procedure.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Simply inject the datasource you use for the EntityManagerFactory or create a JdbcTemplate and inject that into your class.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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