06-08-2012 04:47 PM
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ctx="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
>
<bean id="helloWorldConsumer" class="com.ge.research.dhc.process.HelloWorldTask">
<property name="helloService" ref="helloService"/>
</bean>
<osgi:reference id="helloService" interface="com.ge.dhc.poc01.helloWorldService.HelloService"/>
</beans>
06-08-2012 04:48 PM
public class HelloWorldTask implements JavaDelegate {
private HelloService helloService;
public void execute(DelegateExecution execution) throws Exception {
ActivityExecution ae = (ActivityExecution) execution;
System.out.printf("\n*** Executing Service Task… Execution Id:[%s] Activity: %s[%s]\n",
ae.getId(), ae.getActivity().getId(), ae.getActivity().getProperty("name"));
System.out.println("Ok now going to make a call….");
System.out.println("Return from the service is… " + helloService.sayHello());
}
public void setHelloService(HelloService helloService) {
this.helloService = helloService;
}
}
06-12-2012 10:24 AM
06-12-2012 01:31 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.