1002 words

Integration

#1
2010-12-01 18:37

Hi,

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

Regards,

lorenzo.sm@gmail.com
lorenzo.sm@gmail.com's picture
Joined on 2010-12-01
User Post #2
#2
2010-12-01 19:42

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #81
#3
2010-12-28 03:00

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.

dries
dries's picture
Joined on 2010-12-28
User Post #1
#4
2010-12-28 14:13

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #95
#5
2010-12-28 17:01

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?

dries
dries's picture
Joined on 2010-12-28
User Post #2
#6
2010-12-28 21:45

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:

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

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #96
#7
2010-12-28 22:19

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.

dries
dries's picture
Joined on 2010-12-28
User Post #3
#8
2010-12-28 22:29

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #97
#9
2011-01-16 18:42

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

meetnavpk
meetnavpk's picture
Joined on 2010-12-30
User Post #1
#10
2011-01-18 12:18

Duplicate of the Maven Repo for ObjectDB thread.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #108
#11
2011-02-01 01:37

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


ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #118

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel