axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Dyachuk (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1972) The options specified in a deploy file cannot be accessed with JavaProvider
Date Thu, 19 May 2005 02:24:53 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1972?page=comments#action_65729 ]
     
Dmytro Dyachuk commented on AXIS-1972:
--------------------------------------

The thing is that, I'm using my own class as the provider, and for a service, and when I'm
trying to obtain the options, they are null (the hash table is not initialized). Then the
Axis the creates my the instance of the my class, it doesn't initialize the hastable with
options. This bug is present only in the case whem I declare my handlers as the provider.

---
public Proxy() {
super();
EndPointService = (String)getOption("EndpointService"); //throws exception
System.out.println(getOptions()==null); //returns true;
}

-part of the deploy.wsdd

 <service name="Proxy" provider="Handler"> 
  <parameter name="handlerClass" value="WSP.Proxy"/>
  <parameter name="scope" value="application"/>
  <parameter name="EndpointService" value="http://someURL:8080/axis/services/DBWebService"/>
  <parameter name="Schedule" value = "true"/>
 </service>

> The options specified in a deploy file cannot be accessed with JavaProvider
> ---------------------------------------------------------------------------
>
>          Key: AXIS-1972
>          URL: http://issues.apache.org/jira/browse/AXIS-1972
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.2RC2
>  Environment: JDK 1.5.0_02-b09, Tomcat 5.0
>     Reporter: Dmytro Dyachuk
>     Priority: Blocker

>
> I have the handler which inherits BasicHandler(used with JavaProvider), but the options
field is always null(not initialized) and so there is not way of accessing the options specified
in deploy-file. 
> -piece of code which causes problems 
> public Proxy() {
> 		super();
> 		EndPointService = (String)getOption("EndpointService"); //throws exception
> 		System.out.println(getOptions()==null); //returns true;
> }
> -part of the deploy.wsdd
>  <service name="ScheduledProxy" provider="Handler">
>   <parameter name="handlerClass" value="WSP.ScheduledProxy"/>
>   <parameter name="scope" value="application"/>
>   <parameter name="EndpointService" value="http://someURL:8080/axis/services/DBWebService"/>
>   <parameter name="Schedule" value = "true"/>  
>  </service> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message