Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

web service in java

Thread view: 
M D - 24 Nov 2006 08:19 GMT
I am new to the web service in java.
in .net, i can save the session state with webmethod[ session=enable]
Can i do the similar thing with java's web service?

SK
Simon Brooke - 24 Nov 2006 19:18 GMT
> I am new to the web service in java.
> in .net, i can save the session state with webmethod[ session=enable]
> Can i do the similar thing with java's web service?

If I understand what you're saying, you don't need to do anything because
in Java session information is preserved by default for the length of the
session. In other words, what would be hard would be to do the equivalent
of session=disable.

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

               ;; Conservatives are not necessarily stupid,
               ;; but most stupid people are conservatives -- J S Mill

Arne Vajhøj - 24 Nov 2006 21:04 GMT
> I am new to the web service in java.
> in .net, i can save the session state with webmethod[ session=enable]
> Can i do the similar thing with java's web service?

If you are using Apache Axis then you can specify
scope in the deployment descriptor:

<parameter name="scope" value="application"/>
<parameter name="scope" value="session"/>
<parameter name="scope" value="request"/>

Arne
Lew - 01 Dec 2006 20:24 GMT
>> I am new to the web service in java.
>> in .net, i can save the session state with webmethod[ session=enable]
[quoted text clipped - 6 lines]
> <parameter name="scope" value="session"/>
> <parameter name="scope" value="request"/>

As I understand it, this has nothing to do with session state in Web services,
but with the lifetime of the web service class instance.  IOW, the object that
serves the request is a "singleton" if the lifetime is "application", but a
new object handles every request if it's "request".

I also am not aware of any meaningful concept of a session in (SOAP-based) Web
services.  I am ready to be corrected on that point.

I have developed a few Web services based on Axis (1.x).

- Lew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.