Results 1 to 5 of 5

Thread: Stateful HttpInvoker

  1. #1
    Join Date
    Aug 2004
    Location
    Brisbane (Australia)
    Posts
    57

    Default Stateful HttpInvoker

    I was wondering if it is possible to use HttpInvoker in a stateful interaction with a client?

    Eg. suppose I have a service like this...
    Code:
    public interface TransactionalService {
        
        public void beginTransaction(); 
    
        public void putSomeData(.....);
        public void putSomeMoreData(.....);
        .
        .
        .
        
        public void finishTransaction(); 
    }
    A client connecting to the above service could expect to have exclusive access to a service instance, which would (presumably) be stored in a HttpSession, so that subsequent method invocations would access the same object.

    Is such an approach feasible with the current HttpInvoker classes?

    And on a second point, is it possible for HttpInvoker to return a reference to another service object, that will be passed by reference rather than by value? This would be similar to how RMI works, but without the pain of setup.


    regards,
    Scott Russell

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    I was wondering if it is possible to use HttpInvoker in a stateful interaction with a client?
    I've used it - see this post.

  3. #3
    Join Date
    Aug 2004
    Location
    Brisbane (Australia)
    Posts
    57

    Default

    Quote Originally Posted by katentim
    I've used it - see this post.
    Thanks Tim. That's an interesting discussion (including Ben Alex's link about the security issues).

    I'll give your method a try. I guess I had felt that the most intuitive approach would be to have a prototype bean on the server side as the service, and store that instance in a user's session for reuse. But using threadlocal's could also be a useful approach.

    regards,
    Scott

  4. #4
    Join Date
    Nov 2005
    Posts
    13

    Default Stateful Remoting

    Quote Originally Posted by katentim
    The Link does not work anymore

    So, how is it possible to make Remoting stateful?
    Last edited by robyn; May 14th, 2006 at 05:08 PM.

  5. #5
    Join Date
    Mar 2008
    Posts
    4

    Default

    Does anybody know if this link still exists?

    Thanks

Similar Threads

  1. HttpInvoker and streaming
    By adepue in forum Remoting
    Replies: 7
    Last Post: Jun 7th, 2010, 10:39 PM
  2. JMeter & HttpInvoker
    By bthh78 in forum Remoting
    Replies: 7
    Last Post: Aug 22nd, 2007, 11:21 AM
  3. Replies: 1
    Last Post: May 15th, 2005, 06:37 AM
  4. Replies: 1
    Last Post: May 15th, 2005, 12:51 AM
  5. HttpInvoker and SLSB
    By afida in forum EJB
    Replies: 5
    Last Post: Jan 13th, 2005, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •