Could you please help me to do the following scenario:While using apche tuscany with spring implementation -------------------------------------------------------------------------- I have 2 components and spring context file I configured as 2 services in spring-context file as spring beans.Now i want to access these from tuscany rest binding. I attached my spring context file and compoite file
Could you please give me reply please..... Thank you
<?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:sca="http://docs.oasis-open.org/ns/opencsa/sca-j/spring/200810" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> <!-- property placeholder bean --> <bean class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer"> <property name="location"> <value>info.properties</value> </property> </bean> <!-- datasource obj --> <bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${driverName}"/> <property name="url" value="${url}"/> <property name="username" value="${userName}"/> <property name="password" value="${password}"/> </bean> <!-- getting sessionFactory obj --> <bean id="mySessionFacotry" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource" ref="myDataSource" /> <property name="packagesToScan" value="org.srinergi.entity"/> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hbm2ddl.auto">update</prop> </props> </property> </bean> <!-- spring based txmngmt --> <tx:annotation-driven transaction-manager="transactionManager"/> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="mySessionFacotry" /> </bean> <context:annotation-config/> <!-- while dependency injection spring container scan these packages --> <context:component-scan base-package="org.srinergi" /> <sca:service name="OnPageLoadContent" target="OnloadBean"/> <!-- spring service bean --> <bean id="OnloadBean" class="org.srinergi.services.OnPageLoadContentImpl" scope="prototype"/> <!-- spring service bean --> <sca:service name="MrkContent" target="MarketingBean"/> <bean id="MarketingBean" class="org.srinergi.services.MarketingContent" scope="prototype"/> </beans>
SrinergiSales.composite
Description: Binary data