Announcement Announcement Module
Collapse
No announcement yet.
Can Hessian be Stateful? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can Hessian be Stateful?

    I'm trying to create a stateful Hessian service. To accomplish this I was hoping to use the session scoping that Spring provides, but I'm falling short somewhere. The server is running well, I'm seeing the session being issued, but everything I've tried on the client has been unsuccessful.

    Code:
    <bean id="hessianClient" class="org.springframework.remoting.caucho.HessianProxyFactoryBean" scope="session">
      <property name="serviceUrl" value="http://localhost:9081/iris/remoting/HessianFirehose"/>
      <property name="serviceInterface" value="remoting.HessianFirehose"/>
      <aop:scoped-proxy/>
    </bean>
    --------------------------------
    throws: 
    
    Cannot create scoped proxy for bean 'scopedTarget.hessianClient': Target type could not be determined at the time of proxy creation.
    I also tried creating my own Proxy Factory Bean so I could explicitly define this one implementation and that cleared up the bean creation exception, but I can't seem to get the session variable to be used. On my custom class I implemented HttpSessionListener and no session is being created.

    Any help with what I am missing would be greatly appreciated.

    - jason
Working...
X