On Wednesday, September 18, 2002, at 12:47 AM, Jung , Dr. Christoph
wrote:
> Jason,
>
> Statefulness and web services are somewhat conflicting concepts.
yes, I am using it sparingly. For the most part I am accessing
stateless session beans, but there are a few instances where I need to
access the same stateful session bean across multiple calls from the
client.
> Nevertheless, service references are cached by name on a per-session
> basis
> in Axis/Jboss.net which means that if you keep a persistent http
> session
> with the transport endpoint (e.g., via call.setMaintainSession(true)
> when
> using an Axis client),
Actually the client portion is being written in REALbasic and am having
to develop it as I go.
It appears that jboss.net/axis uses a Cookie to track the session.
> you will hit the same target bean again (which makes
> it of course impossible to talk to two different instances in one
> session).
after doing some research (trial and error mostly) it seems that I also
need to add:
<parameter name="scope" value="Session"/>
to the service element of my web-service.xml file to get jboss.net to
remember I want to maintain a session.
Is this really the case, or should jboss.net be able to tell that my
session bean is stateful and declare the scope on its own?
> Similarly, from a granularity standpoint, it does not make much sense
> to
> expose entity beans as web services, but to treat them as
> by-value-serializable beans with a very special "new" operation
> (namely, the
> call to a finder) upon deserialization. See the EntityBeanDeserializer
> examples in jboss.net.
Actually I am using data objects in the rare instances that I need to
send the values of an entity bean to the client.
Is there any way to tell jboss.net that you are done with a given
stateful session bean, or should the Session cookie just be forgotten
and wait for jboss to reclaim the bean?
Thank you for your comments.
-jason
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user