Can't use annotation injection in spring

tomLee <[email protected]>
Newsgroups gmane.comp.java.springframework.user
Message-ID <[email protected]>
Hi experts,

I have such code in the below:
@Service
public class LoginAction extends SimpleFormController {
    private String fail_view;
    private String success_view;
    @Resource(name = "userSerivceTX")
    private UserService service;
..

<bean id="userSerivceTX" 
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
		<property name="transactionManager">
			<ref bean="transactionManager" />
...

<bean id="LoginAction" class="net.xiaxin.action.LoginAction">
		<property name="commandClass">
....


<context:annotation-config/>



I want to use annotation injection.but I failed,the property of  LoginAction
:service is null when LoginAction is invoked.

Thanks.
-- 
View this message in context: http://www.nabble.com/Can%27t-use-annotation-injection-in-spring-tp26108586p26108586.html
Sent from the springframework-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.