[Building Sakai] how to inject Sakai service into two java classes
Mark Norton
markjnorton at earthlink.net
Wed Nov 4 05:24:49 PST 2009
Did you include the additional dependencies in your Maven file?
Small Cat wrote:
> I want to use two ( or more ) java class that can be injected some
> Sakai Service.
> In components.xml 's beans, I add a bean for second class :
>
> /*<!-- SakaiProxy2 -->
> <bean id = "org.sakaiproject.profile2.logic.SakaiProxy2"
> class="org.sakaiproject.profile2.logic.SakaiProxy2Impl">
> <property name="authzGroupService"
> ref="org.sakaiproject.authz.api.AuthzGroupService"></property>
> <property name="siteService"
> ref="org.sakaiproject.site.api.SiteService"></property>
> <property name="sqlService"
> ref="org.sakaiproject.db.api.SqlService"></property>
> </bean>*/
>
> But when I start up tomcat, it have some error & tomcat is stopped.
> Please help me fix it !
> Thanks,
>
> --
> Regards,
> Tran Trung Kien
> ------------------------------------------------------------------------
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
More information about the sakai-dev
mailing list