My app uses spring, runs on tomcat
I have class
public class Entity{
private String field;
private Properties properties;
...geters/setters...
}
and context.xml
<?xml version='1.0' encoding='utf-8'?>
<Context>
<Environment name="field.name" value="value" type="java.lang.String" override="false" />
</Context>
and spring.xml
...
<bean id="entity" class="com.my.model.Entity">
<property name="field">
<jee:jndi-lookup jndi-name="java:comp/env/field.name" />
</property>
<property name="properties">
<value>
key1=value1
key2=value2
key3=value3
</value>
</property>
</bean>
...
In which way I may inject values for Properties field via context.xml, such String field?