thanx for the suggestions. but i already have / at least what I know /
"merged" tapestry with spring. 

I have another service, named messageService, 

        <bean name="messageService"
class="com.airwriting.service.data.MessageService">
                <property name="messageDAO" ref="MessageDAO" />
                <property name="messageCommentDAO" ref="MessageCommentDAO" />
                <property name="messageRatingDAO" ref="MessageRatingDAO" />
                <property name="groupDAO" ref="GroupDAO" />
                <property name="userDAO" ref="UserDAO" />
        </bean>

and this messageService is injecting several other services successfully.
Therefore, they are not null. 

public class MessageService {
        private MessageDAO messageDAO;
        private MessageCommentDAO messageCommentDAO;
        private MessageRatingDAO messageRatingDAO;
        @SuppressWarnings("unused")
        private GroupDAO groupDAO;
        private UserDAO userDAO;

        @Inject
        private UserService userService;
        @Inject
        private EmailService emailService;
        @Inject
        private GroupService groupService;
        @Inject
        private GroupUserDAO subscriptionDao;
        @Inject
        private Configuration configuration;

and so on.. 

and all injected services work. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Inject-Service-in-another-Service-Service-is-null-tp5717598p5717605.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to