EJBs have several InitialContext properties that you can set. The Web Services Toolkit allows you to set these properties either in a properties file or through the init-params property for the SOAP servlet. If a property is set in both a file and as an init-param, the init-param value takes precedence. If a property is not specified in either place and there is a default value, the default value is used. Otherwise, the property value is null. See Chapter 8, “Creating Enterprise JavaBeans Clients,” in the EAServer Programmer's Guide for more information about InitialContext properties.
The only property whose default value differs from the one defined in the EAServer Programmer's Guide is provider.url. If you do not set this property, the value defaults to the hostname on port 9000.
In the webservices.props file, located in the Webservices subdirectory of your EAServer installation, you can set the following properties for EJB invocation. Each of these properties corresponds directly to the EJB InitialContext properties defined in Chapter 8 of the EAServer Programmer's Guide:
webservices.ejb.provider.url
webservices.ejb.security.principal
webservices.ejb.security.credentials
webservices.ejb.CGInterval
webservices.ejb.http
webservices.ejb.HttpUsePost
webservices.ejb.IdleConnectionTimeout
webservices.ejb.RetryCount
webservices.ejb.RetryDelay
webservices.ejb.socketReuseLimit
webservices.ejb.ProxyHost
webservices.ejb.ProxyPort
webservices.ejb.SSLCallback
webservices.ejb.pin
webservices.ejb.certificateLabel
webservices.ejb.qop
webservices.ejb.useEntrustID
webservices.ejb.entrustUserProfile
webservices.ejb.entrustPassword
webservices.ejb.entrustIniFile
webservices.ejb.userData
webservices.ejb.WebProxyHost
webservices.ejb.WebProxyPort
webservices.ejb.HttpExtraHeader
You can override each of the properties above by setting the following SOAP servlet init-params:
ejb.providerUrl
ejb.securityPrincipal
ejb.securityCredentials
ejb.GCInterval
ejb.httpTunnel
ejb.httpUsePost
ejb.IdleConnectionTimeout
ejb.RetryCount
ejb.RetryDelay
ejb.socketReuseLimit
ejb.ProxyHost
ejb.ProxyPort
ejb.SSLCallback
ejb.pin
ejb.certificateLabel
ejb.qop
ejb.useEntrustID
ejb.entrustUserProfile
ejb.entrustPassword
ejb.entrustIniFile
ejb.userData
ejb.WebProxyHost
ejb.WebProxyPort
ejb.HttpExtraHeader
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |