Announcement Announcement Module
No announcement yet.
EIS Access from Spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • EIS Access from Spring

    I support J2EE tools for an Enterprise Information Systems vendor. The most common way to access our system from middleware applications is via a JCA adaptor, which provides a nice API for accessing the EIS via a transactional interface rather than a strictly data oriented API like JDBC.
    How would you suggest that I integrate such an EIS with Spring?

    Wendell Nichols

  • #2
    Spring users could use Spring's JndiObjectFactoryBean to get the connection factory for your connector, so they can always use the JCA style, of course.

    You could implement a callback approach like Spring's templates, with exception translation to DataAccessExeption, if you want a closer integration to Spring. Please look at the JDBC and Hibernate functionality in Spring as a guide. You could also implement a Spring PlatformTransactionManager for your tool (using your connector's local transaction capability) if you have any interest in supporting users not using JTA global transactions. Of course Spring transaction mgt can run on JTA, so you don't need to do more than provide normal JTA support for Spring transactions to work configured that way.