You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by oo...@rambler.ru on 2006/02/01 12:14:43 UTC
Spring beans in Hivemind Service
I've realized own service Checker which checks users on login.How can
i get in this service list of users from
applicationContext.xml which is next:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="user1" class="com.oonys.model.UserBean">
<property name="login">
<value>login1</value>
</property>
<property name="pass">
<value>pass1</value>
</property>
</bean>
<bean id="user2" class="com.oonys.model.Person">
<property name="login">
<value>login2</value>
</property>
<property name="pass">
<value>pass2</value>
</property>
</bean>
....
</beans>.
What i have to do in method check of class Checker?
Thx...
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Spring beans in Hivemind Service
Posted by Christian Haselbach <ch...@tngtech.com>.
Quoting oonys@rambler.ru:
> I've realized own service Checker which checks users on login.How can
> i get in this service list of users from
> applicationContext.xml which is next:
> <?xml version="1.0" encoding="UTF-8"?>
If I understand you correctly, you want to inject the spring bean
into a hivemind service. Have a look at
http://wiki.apache.org/jakarta-tapestry/Tapestry4Spring
With this you can inject spring beans by using the prefix "spring"
in hivemind.
Regards,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org