Details
-
Test
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Java-SCA-2.0-M5
-
None
-
WebApplication using JSF, Spring, Hibernate, Tuscany
Description
I am Implementing SCA in a Spring+JSF+Hibernate webapplication. I have done the below steps to expose the service layer of our aplication as SCA...But there is no help on how to access that SCA service in a controller layer which is nothing but a java class. the application strucuture is DAO --> service (SCA) --> Controller (Spring beans) -->....
1. Have written a web.composite under web-inf directory
<component name="UserComponent">
<implementation.spring location="/WEB-INF/applicationContext.xml"/>
<service name="userServices">
<interface.java interface="com.test.services.user.IUser"/>
</service>
</component>
2. In an applicationContext file
<bean id="userServiceImpl" class="com.test.services.user.impl.UserImpl">
</bean>
<sca:service name="userServices"
type="com.test.services.user.IUser" target="userServiceImpl"/>
<bean id="userController" class="com.test.controller.user.UserController">
<property name="userServices" ref="userServices" />
</bean>
But it is not able to find the userServices which is an SCA service. how can i access the sca services?