6 Replies Latest reply on Sep 14, 2004 10:26 AM by Bernd Zeitler

    synchronizing a session bean

    twutort Newbie

      Hello,

      I'm having an issue with some legacy code I had to take over. There is a session bean that has a singleton class. In that singleton class there is a method where a socket is opened up and some data is sent and received. Problem is when two users use the session beans to send data on the socket it there are problems with the order in which the data is recieved. I know you can't use synchronized within a session bean. Is there anyway to synchronize a method in a session bean through jboss so that each call to this method completes before the next session bean executes it?

      Thanks,
      twutort