Is there a way to use the jython standalone console application with my Project classes? My Project classes can be used unless they have some kind of Ivy-context. When I try to create an instance of a 'Dao', it tells me that Ivy could not be initialized... (Ivy.persistence().get...)
Is there a way to setup this correctly? asked 26.11.2014 at 10:41 beatjost |
The Ivy.persistence() method does only work in a Axon.ivy context. In a Jython context it will not be available or will not work correctly because the whole Axon.ivy runtime is not available. If you want to use your ivy project DAO's you have to provide your own implementation for the EntityManager in Jython. E.g. provide an implemention of Ivy.persistence() by yourself and any other ivy specific function you use in your DAO's. answered 01.12.2014 at 12:30 Reto Weiss ♦♦ Actually I created a 'standalone' project to refer first in classpath... with some classes this was working (JPA-EM). Thanks.
(12.01.2015 at 13:27)
beatjost
|
You'll find the download for the 'Jython standalone' here: Jython download I created a 'bat' file to run it (because of classpath sSettings).
Then I try to instanciate a DataAccessObject (fails at Ivy.persistence().get...) Hope this helps. The idea was to have a interactive application console... answered 26.11.2014 at 17:03 beatjost |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 26.11.2014 at 10:41
Seen: 2,871 times
Last updated: 12.01.2015 at 13:27
Can you provide more information how you call the jython standalone console application and what kind script you execute in it?
@Reto: did this post cover your expectations? Or do you need more info?