Announcement Announcement Module
Collapse
No announcement yet.
HTTP Invoker and HTTP Session Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Invoker and HTTP Session

    I would like to keep some user information (login, roles...) between HTTP invokers calls.

    Is it possible to use the HTTP Session to store this information? How is generated the session id and used by the HTTP executor?

  • #2
    Add this to your client remoting config:

    <bean id="httpInvokerExecutor" class="org.springframework.remoting.httpinvoker.Co mmonsHttpInvokerRequestExecutor"/>

    This advised the executor to use the Apache Commons HttpClient!

    Comment


    • #3
      Originally posted by agfeller View Post
      Add this to your client remoting config:

      <bean id="httpInvokerExecutor" class="org.springframework.remoting.httpinvoker.Co mmonsHttpInvokerRequestExecutor"/>

      This advised the executor to use the Apache Commons HttpClient!
      Is there something else to configure. This doesn't seem to work for me.

      Comment


      • #4
        Sorry, this was only half the truth:

        <bean id="someId" class="someClass">
        <property name="serviceInterface" value="someInterface"/>
        <property name="httpInvokerRequestExecutor" ref="httpInvokerExecutor"/>
        </bean>

        <bean id="httpInvokerExecutor" class="org.springframework.remoting.httpinvoker.Co mmonsHttpInvokerRequestExecutor"/>

        Comment

        Working...
        X