Hello,
we have an EJB Application with Service Interfaces, DAO's and Hibernate as ORM Layer. We use Spring for Hibernate DAO Support and Exception Wrapping.
Around our Services we bind a...
Type: Posts; User: FelderR; Keyword(s):
Hello,
we have an EJB Application with Service Interfaces, DAO's and Hibernate as ORM Layer. We use Spring for Hibernate DAO Support and Exception Wrapping.
Around our Services we bind a...
You can also do a session.clear(). Remember that all objects are removed from the session and are therefore lost.
Looks to me that you are catching the exceptions. A rollback will only happen if a RuntimeException occurs!
you can only import files relative to the root context path. Slashes '/' are eliminated by Spring. See also the Spring documentation '3.18. Importing Bean Definitions from One File Into Another':...
are you sure you have it in the right classloader? Probably the hibernate.jar gets loaded from a parent classloader and cglib is in child classloader. eg:
Hibernate is in the...
Hello,
I'm trying to expose the Hibernate Properties as an JMX Bean. The idea is, that I can manage the Properties after deployment (e.g. enable/disable hibernate.show_sql for problem analysis on...
... just solved the problem. Need to register an ContextSingletonBeanFactoryLocator within the setSessionContext of the EJB:
public void setSessionContext(SessionContext sessionContext) {...
Hi,
I wanted to expose some Beans using the Spring JMX support. I encountered the problem, that the Beans are exposed more than one time, what leads to an...
Hi,
what does the log entry 'jdbc.ConnectionManager - Aggresively releasing JDBC Connection [after_transaction]' mean?
Is there something wrong with my datasource definition:
<bean...
... does nobody have any experience using the new Hibernate 3 features that autoclose the session after transaction commits.
Seems to me that there is a bug in the HibernateTransactionManager...
Hello,
I'm using Springframework version 1.2 with Hibernate Version 3.0.4.
Hibernate 3 supports the new feature of auto-closing the session when closing the transaction...
Hi,
I have the requirement to set up a map with standard and customer entries from different files. Example:
File1.xml:
<!-- Standard entries -->
<bean id="converterFactory"...
Hi Spring Users,
I'm trying to import one bean definition into another. I use the import tag as described in '3.18. Importing Bean Definitions from One File Into Another'.
In '3.18. Importing...
How can I refresh the ApplicationContext? I'm using a beanRefFactory for EJBS. The applicationContext.xml is in the classpath. If I change some entries within the applicationContext.xml nothing is...
Hello,
I have an EJB that uses a beanRefContext and an ejb-jar environment entry to load the context. The context is loaded from the classpath.
Now I want to load the context from the file path...
... I have another problem: the context is being exposed more than one time, which leads to an exception that the context is already registered in JMX.
Any ideas why?
Hello,
how can I expose a Hibernate sessionFactory to JMX, to change the hibernateProperties I use. I can expose it to JMX readonly, but cannot change any property.
My first try was to split...
Hello,
I want to refresh the context within an EJB periodically as we use application specific parameters that may change during runtime.
Is there a way to do that more generic than using the...
I encounter the following errormessage when trying to connect to a EJB that was called using the Spring Dynamic Proxy mechanism.
00:54:42,218 INFO [STDOUT]...
Hello,
I encounter the same problem with the same error message. Did you already find out what was wrong?
Thanks
Rene