Issue Details (XML | Word | Printable)

Key: SPR-308
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: Slavik Markovich
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Spring Framework

TopLink support

Created: 02/Sep/04 08:58 AM   Updated: 02/May/05 06:46 PM   Resolved: 02/May/05 06:46 PM
Component/s: SpringDA
Affects Version/s: 1.1 RC2
Fix Version/s: 1.2 final

Time Tracking:
Not Specified

File Attachments: 1. Java Source File SessionHolder.java (2 kB)
2. Zip Archive spring-toplink.zip (3.96 MB)
3. Java Source File ToplinkUtils.java (17 kB)

Environment: N/A


 Description  « Hide

Basic support for TopLink under the orm package. Modeled after Hibernate support. The code also includes the petclinic sample used with TopLink on HSQL.



Slavik Markovich added a comment - 02/Sep/04 09:07 AM

All the source for the TopLink support and build script for both TopLink and petclinic example. The build scripts assume that the spring directory is on the same level as the project directory.


Rod Johnson added a comment - 24/Sep/04 02:55 AM

Spring TopLink support is now being addressed by the TopLink team at Oracle. It's more likely to be shipped by them rather than as Spring.

I referred the guy working on it there to this issue, so he's seen the contribution. Thanks.

What I've seen coming out of this so far from Oracle looks great. TopLinkTemplate, TopLinkDaoSupport, TopLink interceptor, TopLinkTransactionManager, and a special TopLink Session implementation for Spring. Also some good documentation.

I'll post here when there's a public URL/download for this.


Slavik Markovich added a comment - 04/Oct/04 05:44 PM

In the meantime, a minor update to make current code work with JTA transactions both Spring and CMT driven.
The CMT part is not checked.


Slavik Markovich added a comment - 04/Oct/04 05:46 PM

And another minor patch to remove a redundant field.


John Wheeler added a comment - 02/Dec/04 03:35 PM

Are there any plans to add an OpenSessionInViewInterceptor for this under the support package?


Slavik Markovich added a comment - 05/Dec/04 11:40 PM

I believe it's really easy to add. I'd do it, but Oracle is doing major rewrites of the TopLink support and I bet the latest version will have this and much more.


Juergen Hoeller added a comment - 02/May/05 06:46 PM

An overhaul of the TopLink support as provided by Oracle is available as part of core Spring now. Thanks to everybody who has helped to make this happen, in particular to Slavik and to Jim from Oracle!

A note on JTA: The JTA support now builds on TopLink's built-in JTA support, which is necessary for proper integration with JTA anyway (due to the need for JTA transaction synchronization of the active UnitOfWork, which we can't provide with pure Spring means).

Fortunately, an OpenSessionInViewFilter or OpenSessionInViewInterceptor is not necessary to make TopLink's lazy loading or instance caching work. Simply touch the lazy fields and they are gonna load themselves, even without the original Session or UnitOfWork that loaded the root object. TopLink's architecture is significantly different from Hibernate, which shows here too.

Juergen