I need to set http session attribute as a value of spring bean's property, how can I do that ?
something like:
<bean name="something" ??????/> <!-- it should point to the session attribute -->...
Type: Posts; User: ferencvaros; Keyword(s):
I need to set http session attribute as a value of spring bean's property, how can I do that ?
something like:
<bean name="something" ??????/> <!-- it should point to the session attribute -->...
.............
ok, here is debug output:
07 Dez 2006 15:44:03.862 [INFO] [main] [org.springframework.core.CollectionFactory] - JDK 1.4+ collections available
07 Dez 2006 15:44:03.877 [INFO] [main]...
costin, it works also without registering..
public class Holder {
private String[] stringArray;
public String[] getStringArray() {
return this.stringArray;
}
public...
yes,exactly I need to do that ..
with property editor is it good idea, thanks.
I have to define list of values (in my case list of mail recipients) as java properties.
There are two possibilities:
1. define single property with recipients separated by comma
mail.recipients...
I tried to implement this example using approaches you mentioned - declarative and template style transaction, but error still remains.
When I switch to no-transaction handling error does not occurs.
2006-06-23 08:31:17,281 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Using transaction object [org.springframework.transaction.jta.JtaTransactionObject@1609872]
2006-06-23...
ok, here is my configuration (which you didn't see, but is wrong:):
<jee:jndi-lookup id="sessionFactory" jndi-name="java:/hibernate/SessionFactory"/>
<bean id="transactionManager"...
please show me exactly which part of configuration is wrong...
answer "use another approach" is not a good answer to my question - why this approach does not work..
exception handling is not...
I have following problem:
Dao method:
public Long createAndStorePerson(String firstname, String lastname, int age) {
Person p = new Person();
p.setFirstname(firstname);
...
Following error occured when I tried to start simple example:
web.xml
<servlet>
<servlet-name>myone</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet...
thank you very much for your help, I'll try custom build today evening
is there any possibility to download version of wanghy-cache which is compatible with 1.2 spring ?
Is there ant way how to use newest version of Tiles (from Struts 1.2) without loading full Stuts stuff - similar to the Tiles 1.1 using TilesServlet ?
In the Struts 1.2 TilesServlet class is...
now, it works.
I defined bean pluginManager in the core part, then I defined bean factory postprocessor, which call method:
BeanFactoryUtils.beansOfTypeIncludingAncestors(factory,...
control over registered plugins will be only via appcontext config-file entry in the web.xml file - each plugin will define its own appcontext config file
I found class BeanFactoryUtils which contains beansOfTypeIncludingAncestors() method. Maybe this will help.
Problem with your approach is, that in your example you directly defined beans references, names and amount of beans. But if you want to extend application to the new plugin, you must edit the file...
I have following problem:
I need to split application into two parts:
core part and plugin parts, which will define plugin dependent parts of core objects. Core object should not reference any...
read forum on the www.hibernate.org section Hibernate3
Hibernate 3, in opposite to the second version, uses lazy
loading by default.
Change either mapping to the lazy="false" or use...