Integration

#1

Hi,

Is there a way to integrate ObjectDB with Spring Framework to add the benefits of Transaction Management and DAO Support?

Regards,

#2

ObjectDB is used with the Spring MVC Framework by some users.

Currently there is no tutorial for using ObjectDB with Spring, so try to follow a generic tutorial for using JPA with Spring.

ObjectDB Support
#3

Hi,

I'm trying ObjectDB with Spring ROO

I'm getting the error:

 Cannot apply class transformer without LoadTimeWeaver specified

at org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.addTransformer(SpringPersistenceUnitInfo.java:109)

for now this is what i found to be relevant:  http://www.datanucleus.org/servlet/jira/browse/NUCJPA-22

seems they ran into the same problem? just guessing here

if i could get this to work it would be nice.

#4

Hi,

The Spring manual specifies 3 methods for JPA integration and it seems that you are right and the third method didn't work with ObjectDB because of this problem.

Please try the new build (2.0.3_03) that should solve this issue.

Notice that in the new ObjectDB build load time weaving (enhancement) by Spring is currently disabled - but this might be changed in future versions.

ObjectDB Support
#5

Hi,

thanks for the fast response.

it's running now! Though i am pondering about the repercussions of spring enhancement not being applied.

(as far as i know i'm not using loadtime weaving but compile time weaving with aspectj)

anyway, i got a spring roo with gwt sample running (something is still wrong but i will delve deeper when i find time.)

next on the agenda is effectively persisting stuff etc see what other errors i can dig up;)

ps: i 'm using objectdb in embedded mode for now. Is it that big a performance difference vs server mode?

#6

Thank you for your useful report. You can still use ordinary enhancement (e.g. during build) to gain performance. I wonder what would happen if you would enable Spring load time weaving.

Regarding embedded mode vs client-server mode - see:

https://jpab.org/ObjectDB/ObjectDB/embedded/ObjectDB/ObjectDB/server.html

ObjectDB Support
#7

indeed i'm getting a Type not found error

i know this is because i haven't persisted anything yet but i'm looking to incorporate the odb enhancement in my maven build.

i tried a class entry in my persistence.xml but that didnt seem to be working.

i tried adding compiler arguments(maven compiler plugin) but i need a little guidance here as to figuring out the correct path or argument line to use.

i can see a warning in the odb log file about my entity not being enhanced.

another option is using antrun but i would want to avoid resorting to workarounds like that untill i have more information.

#8

Enhancement is optional. If you have other issues please open new forum threads. You should provide more details including a full stack trace. In addition, if you can provide a test case that demonstrates an issue it can help.

ObjectDB Support
#9

Hi All,

With due respect, just want to ask anyone can help by directing me to Maven Repo if available for ObjectDB? if not is there any better reason for that?

Thanks

N.H

#10

Duplicate of the Maven Repo for ObjectDB thread.

ObjectDB Support
#11

Update: Tutorials on how to use ObjectDB with Spring and Java EE (in Eclipse and NetBeans) are now available.


ObjectDB Support

Reply