First off let me clear the obvious, I have crawled the forums, I have tried Karl Baum's suggestions (http://www.jroller.com/comments/kbau...ation_with_dao) and none of them seem to work.
That said.
I have a system which provides both web access for data management and a separate UDP based network connection for delivery of that data. I have constructed the normal Controller -> Manager -> DAO system that spring encourages for the web front end. I have tried to utilize the same structure for network connection so that a packet coming off the wire goes through a translation service and then is fire as a multicast event. The multicast event fires to "Network Controllers" that implement a listener interface. Network Controllers utilize the aforementioned managers to retrieve information (POJOs) and deliver those POJOs to a translation service which then fires response out the wire.
I have the following hibernate interceptor implementation as recommended by Karl, but it is not working. I also am using the unit test method he mentioned - none of them work.
<bean id="deviceInitializationController" class="org.springframework.aop.framework.ProxyFact oryBean">
<property name="target"><ref bean="messageControllerTarget"/></property>
<property name="proxyInterfaces">
<value>com.comapny.UDPMessageEventListener</value>
</property>
<property name="interceptorNames">
<list>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<bean id="messageControllerTarget"
class="com.company.MessageController">
<property name="messageService">
<ref bean="messageService"/>
</property>
<property name="actionService">
<ref bean="messageService"/>
</property>
<property name="userManager">
<ref bean="userManager"/>
</property>
</bean>
any help would be highly appreciated. I have been pulling my hair out for hours.


Reply With Quote