-
1. Re: xml-rpc from stateful session bean
adrian.brock Apr 23, 2002 8:20 AM (in response to jseaman)You are allowed to open a normal client socket.
See section 24.2.1 in the EJB2.0 spec, Table 19.
In practice most app servers won't stop you doing
other operations because of the performance penality of
running under a java SecurityManager.
Regards,
Adrian -
2. Re: xml-rpc from stateful session bean
ardochoke Aug 8, 2002 10:18 PM (in response to jseaman)I am a bit confused about thread management... If I want to make a call through a Socket, in my case through a Stateless session bean, how should I declare my Socket.
If I use a private class variable for my Socket, will it be thread safe? Or is there one instance of the Session Bean in memory and multiple threads running over it, meaning that I need to add synchronize blocks?
Also, if I can use a private variable, I'm guessing that I can create my connection in ejbCreate...
Thanks,
Adrian - different Adrian to last post :)