[
https://issues.apache.org/jira/browse/MUSE-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506468
]
Jürgen Mangler commented on MUSE-164:
-------------------------------------
you have to use "public void initializeCompleted() throws SoapFault"
instead of initialize. Its not a bug, its a design issue. At the point
where initialize is called, the Properties are not yet initialized by
the system, and though can not be set.
regards
Jürgen
> OperationalStatus not changeable?
> ---------------------------------
>
> Key: MUSE-164
> URL: https://issues.apache.org/jira/browse/MUSE-164
> Project: Muse
> Issue Type: Bug
> Components: WSDM MUWS OperationalStatus
> Affects Versions: 2.1.0
> Environment: Ubuntu Edgy, JDK 2.5.0, Tomcat 5.5, Manual calling of
> wsdl2java, and manual build (no eclipse used)
> Reporter: Jürgen Mangler
> Assignee: Dan Jemiolo
>
> I added the following to MyCapability.java
> public void initialize() throws SoapFault {
> super.initialize();
> WsResource res = this.getWsResource();
> OperationalStatus stat =
> (OperationalStatus)res.getCapability(MuwsConstants.OP_STATUS_URI);
> stat.setOperationalStatus(OperationalStatus.AVAILABLE);
> this.getLog().info(stat.getOperationalStatus());
> ...
> }
> Which results in an AVAILABLE entry in the log file. However running a client
> an querying operational status results in the following:
> <soapenv:Body>
> <wsrf-rp:GetResourcePropertyResponse xmlns:tns="http://ws.apache.org/axis2"
> xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2">
> <pfx0:OperationalStatus
> xmlns:pfx0="http://docs.oasis-open.org/wsdm/muws2-2.xsd">Unknown</pfx0:OperationalStatus>
> </wsrf-rp:GetResourcePropertyResponse>
> </soapenv:Body>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]