This is my first major Spring Application. I have designed several services for my Spring Application running on Tomcat. Presently, I do not know what type of clients will be connecting to each Service, so I want to provide several ways other developers could use my Services. I do know is they could be on the same environment and using Java, but are running on a different server. The projection for the number of users is not very high--less than 50. There is NO presentation tier to the application. This is request-response type of scenario. My first two choices are: HttpInvoker and JNDI.
This is how I have my invoker-servlet.xml setup.
In the my_metadata-service.xml file I have the service setup:Code:<bean name="/myDocumentService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service" ref="myDocumentService" /> <property name="serviceInterface" value="my.metadata.service.MyDocumentService" /> </bean>
I have gotten the DAOs up and working. I am now working through the Service portion of the application.Code:<bean id="myDocumentService" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="proxyInterfaces" value="my.metadata.service.MyDocumentService" /> <property name="target"> <bean class="my.metadata.service.bean.MyDocumentServiceBean"> <property name="documentDAO" ref="myDocumentDAO"></property> </bean> </property> <property name="interceptorNames" > <list> <value>debugInterceptor2</value> <value>performanceInterceptor2</value> </list> </property> </bean> <jee:jndi-lookup id="documentService" jndi-name="ejb/MyDocumentService" resource-ref="true" />
Any suggetions would be appreciated.
Russ


Reply With Quote