user manual
Chapter 9: Borland Enterprise Server Web Services 91
Web Service providers
The 3 possible values are:
■
className: The name of the class that is loaded when a request arrives on
this service. Typically, this is the name of the CORBA class generated and
based on the IDL. The VisiBroker client stubs, including this class, must be
present in the WAR.
■
allowedMethods: The methods that are allowed to be invoked on this class.
The CORBA object can have more methods than listed here; the methods
listed here are available for remote invocation.
■
poaName: The name of the POA that hosts the CORBA object. This
parameter is relevant only when the locateUsing parameter value is osagent.
Example:
<service name="Animal" provider="java:VISIBROKER">
<parameter name="className" value="com.borland.examples.web
services.visibroker.AnimalModule.Animal"/>
<parameter name="allowedMethods" value="talk sleep"/>
<parameter name="objectName" value="BigAnimal"/>
<parameter name="cacheObject" value="false"/>
osagent The object is assumed to be in osagent. The bind()
method on helper is used to locate the object. The
Server object must be registered with the same
osagent that the Partition is using. If poaName is also
specified, objectName is located under that POA. This is
the default value of the parameter.
nameservice The object is assumed to be in Naming Service. The
resolve() method on the root context is used to locate
the object. The objectName must be the full name of
the object starting from root context. For example:
USA/California/SanMateo/BigAnimal
The VisiBroker server object must be registered
with the same name service that the Partition is
using. Typically, a Partition starts a name service
with the name "namingService". For a server to use
the same name service, it must be started as
follows:
vbj -DSVCnameroot=namingservice Server
ior The objectName provided is assumed to be an IOR. The
string_to_object() method on the ORB is used to
obtain the object. The IOR can be in standard form.
For example:
corbaname::172.20.20.28:9999#USA/California/
SanMateo/BigAnimal
IOR:xxx
corbaloc::172.20.20.28:30303,:172.20.20.29:30304/
MyObject










