Has anyone used the PortletOpenSessionInViewInterceptor with WebLogic 8.1? Certainly I can reference my objects before rendering the view, but have used OSIVF in the past with great success.
Type: Posts; User: cdebracy; Keyword(s):
Has anyone used the PortletOpenSessionInViewInterceptor with WebLogic 8.1? Certainly I can reference my objects before rendering the view, but have used OSIVF in the past with great success.
Does anyone have an example of how to use PortletOpenSessionInViewInterceptor with WebLogic 8.1?
I'm using Hibernate as the ORM and am used to OpenSessionInViewFilter, but now I'm trying to...
Costin,
I'll take a look, but Struts knows nothing about Spring and there are no Struts-specific configuration options in our Spring application context files.
I will check for the possibility...
fxjr,
We're specifying the correct sessionFactory name in web.xml.
Costin,
The Set should be used in the .jsp, still under the auspices of OSIVF. However, we're doing some tests in the...
Agreed. I just expected that we could return a Set that was lazily loaded and get to it from the Struts action and .jsp without problems.
However, unless I touch the set in the service layer,...
Costin,
Sorry, I put OpenSessionInViewFilter in the subject title, but forgot to specify we're using it via web.xml.
All the objects are lazily loaded - just odd that we expected to be able to...
Cristian,
Would there be any advantage to calling merge() instead of lock()?
Chris
We have a Struts action that calls a service layer to return a lazily loaded Set. The service layer uses declarative transaction management and all our services look the same, aside from the class...
Costin,
That's what I'd hoped and what I've been seeing in my own tests.
Having it confirmed means I don't have to look at that should some nasty hard-to-track bug should surface at some point...
My business service is using declarative transaction management for all its public methods.
My business layer accesses my DAO's that extend HibernateDaoSupport. Within this business layer I...
Is <generator class="native"> in your hbm.xml files?
I used MS SQL Server 2000 on my last project and I had to select "native".
My long session is the length of the request. Very similar to OSIVF, except I re-use the same session.
package com.filters;
import java.io.IOException;
import java.sql.Connection;
Costin,
I thought the HB guys were proponents of long sessions? For me, the problem has been finding sufficient documentation so I can truly understand what's going on.
Right now I'm...
Ok, I thought OSIV would keep the session around between business layer calls.
It looks like I am looking at the long session paradigm then. Does Spring have a built-in mechanism for managing...
I am using Struts + Ajax + Hibernate + Spring in an application and getting the infamous "could not initialize proxy - the owning Session was closed" message.
I've read a number of posts...