[prev in list] [next in list] [prev in thread] [next in thread] 

List:       muse-dev
Subject:    [jira] Commented: (MUSE-164) OperationalStatus not changeable?
From:       Jürgen_Mangler_(JIRA) <jira () apache ! org>
Date:       2006-12-14 22:03:22
Message-ID: 4373811.1166133802599.JavaMail.jira () brutus
[Download RAW message or body]

    [ http://issues.apache.org/jira/browse/MUSE-164?page=comments#action_12458618 ] 
            
Jürgen Mangler commented on MUSE-164:
-------------------------------------

Yes, you are true.

public void initializeCompleted() throws SoapFault {
      super.initializeCompleted();
      WsResource res = this.getWsResource();

      OperationalStatus stat = \
(OperationalStatus)res.getCapability(MuwsConstants.OP_STATUS_URI);  \
stat.setOperationalStatus(OperationalStatus.AVAILABLE);  \
this.getLog().info(stat.getOperationalStatus());

      ...
}

This solves the problem. Thanks.

> OperationalStatus not changeable?
> ---------------------------------
> 
> Key: MUSE-164
> URL: http://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
> Assigned To: 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.
-
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic