mfisher is right about the 'best practice' approach. However, I find it convenient to access business objects from the view layer for prototyping purposes at least.
Here's how I do it:...
Type: Posts; User: genegc1; Keyword(s):
mfisher is right about the 'best practice' approach. However, I find it convenient to access business objects from the view layer for prototyping purposes at least.
Here's how I do it:...
You're absolutely right. However, sometimes it's convenient to access your business objects directly from the view layer - even if only for prototyping purposes.
I was just wondering if Spring...
This is just a simple question about whether or not there's a better way...
In order to easily access the BeanFactory from a jsp I created a BeanFactoryProxy:
public class BeanFactoryProxy...
I've also thought about the possibility of a spring certification. It's probably too early in the game for one right now - but I think it would be a great idea in the upcoming years.
BTW, when...
Can anyone comment on how to go about using a long Hibernate session (one that spans transactions) outside of an http request?
Here are some more details...
<beans>
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
...
I'm using a HibernateTransactionManager and would like to open a hibernate session that spans multiple transactions - in order to take advantage of hibernate's first level cache. My scenario is...
Ok, the code I showed before was not an accurate comparison - since the second code fragment didn't perform a session.flush()
But there is still a performance issue, and I've narrowed down the...
This is what I'm seeing...
The following line takes 1.6seconds:
getHibernateTemplate().save(info);
When I replace it with the following, the time is negligible:
try {
...
So other than the JDBC superclasses, it sounds like Acegi is only using Spring for it's IoC container. It's certainly your call, but it would benefit Acegi to be compatible with at least the other...
Has anyone tried using Acegi with HiveMind or PicoContainer? Is it possible?
The only reason I ask is that for political reasons, it would be easier to sell Acegi Security to my colleagues if it...
Have you ever considered naming this "Spring Lock". A spring lock is defined as "A lock that fastens with a spring" - seems very appropriate.
Just a thought...
-Gene