You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Mangala Gowri Nanda <ma...@yahoo.com> on 2001/05/17 14:11:15 UTC

Parameters in constructors

How do I pass parameters to the constructor in a SOAP application ?
For example, suppose I have an ap

public class MyApp
{
	private String str;

	public MyApp ( String str )
	{
		this.str = str;
	}
	public String getValue ()
	{
	}
}

When I deploy it at some site I want to pass it a site-specific string.
How do I achieve this ?

Once MyApp is deployed, does each remote call to the method getValue()
invoke the method on the same MyApp object ? If so, when and where is
the MyApp object initialized ? Or does the object change from call to
call ?

What is the significance of setting scope to REQUEST, SESSION or
APPLICATION in DeploymentDescriptor.xml ? Are there other values also
possible ? Is there a default ?

Is there some place I can read up about such things ? 

Mangala Gowri



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org