Keep an eye on the ROO (Real Object Oriented) project created by Ben Alex, the creator of Acegi Security.
In a ROO application, DTOs are generated (and maintained in the lifecycle) according to...
Type: Posts; User: seabludude; Keyword(s):
Keep an eye on the ROO (Real Object Oriented) project created by Ben Alex, the creator of Acegi Security.
In a ROO application, DTOs are generated (and maintained in the lifecycle) according to...
When adopting a Domain Driven Design approach, domain objects should not be exposed to web tier, as argued in the following blog post:...
The legacy code I'm dealing with has a base Servlet class that all concrete Servlet classes extend.
Instead of having each subclass Servlet calling ApplicationContext.getBean() to resolve their...
Keith & Magnusa,
Thanks for your replies. I'm now more encouraged and feel more confident in recommending Spring MVC in our upcoming new projects.
I would love to hear Rob's presentation at...
Just in case:
Yes, I have read Matt Raible's "Web Framework Comparison" and other presentations...
We are currently evaluating various MVC frameworks. The main candidates are Spring MVC and Struts 2 (based on WebWork 2).
In most of the key features compared, Spring MVC and WebWork 2 are equally...
Someone just wants to argue, and does not allow others to mention any benefits of Spring? ;)
Following this thread seems a waste of time now...
Well said, madtree.
In fact, Spring IoC is a big factory. It does more than instantiation, it also provides configuration, decoration and assembly, as described by Interface21.
Some databases, such as Oracle 9, already store dates with timezone information. You don't need to convert dates in this case.
If your database does not store timezone info, then you can use...
This is not true. Unintercepted access can be prevented by wrapping the bean to be intercepted as an inner bean.
Rained,
Depends on what you want to do in the interceptor...
If you don't mind doing those in your PersonImpl class, you can try domain object dependency injection.
Basically, your DAO...
super() is implicitly invoked in subclasses if the parent class has a zero-argument constructor.
If the parent class has no zero-argument constructor, the subclass must invoke super(...) in the...
Another way you can achieve this is to use Jakarta Commons BeanUtils in your DAO implementation to copy properties from the instance instantiated by Hibernate to the instance obtained from Spring...
You need to programmatically create the proxy to wrap your domain object in your DAO:
ProxyFactoryBean proxyFactory = (ProxyFactoryBean) ctx.getBean("&person");...
Property name should start with a lower case letter.
<bean id="MyResume" class="data.domain.logic.MyResumeImpl">
<property name="MyResumeDao" ref="myresumeDao"/>
</bean>
should be...
You can define:
<!-- Configurer that replaces ${...} placeholders with values from a properties file -->
<!-- (in this case, JDBC-related settings for the dataSource definition below) -->...
Thanks again for your reply and your kind consideration for other readers. :)
However, I have tried to put the first PropertyPlaceholderConfigurer in a parent context, and it didn't work (at...
Thanks for your suggestions. I tried this already and it didn't work.
Obviously, this is a limitation admitted by Juergen Hoeller:
Spring JIRA SPR-1319
This is due to the execution sequence of...
Thanks for your reply, Bill. :)
The use case is like this:
We have a pre-web-services legacy encryption/decryption server that only works in socket communication.
For every request we...
After a second thought, using MethodInterceptor seems an overkill for one single class to intercept one single method, let alone the complicated configuration.
I'll most likely be better off to...
Hi everyone,
This is my first attempt to use AOP, so please forgive me for asking a question that may seem very obvious to you all.
I'm writing a piece of code to pool sockets (all with the...
My solution is to subclass the PropertyPlaceholderConfigurer called EagerPropertyPlaceholderConfigurer that implements InitializingBean. It resolves all property placeholders immediately after it is...
I define two system properties.
In production, they are:
config.file.location=file:/WebSphere/config/config.properties
config.file.encoding=CP-1047
CP-1047 is IBM's EBCDIC, very different...
Hi all,
My config.properties file has different file encoding in different environments. So I need to set it up by looking it up in the System.properties.
<bean...
It depends on the actual implementation of the appserver. Obviously EJB specs did not specify on this, although most appserver won't do a thread switch anyway.
I have tested this on WSAD 5 and it...