Re: need some help with getting monitoring information for a one way webservice

View: New views
6 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: need some help with getting monitoring information for a one way webservice

by Harold Carr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello Sreekanth,


> How would I pull monitoring information from a @OneWay annotated web
> service?I don't see any such information in the JConsole.

What do you mean by "pull"?

What information do you see for a OneWay?

What information are you expecting?

> @WebService()
> //@MTOM
> public class OneWayFeature {
>
>    /**
>     * Web service operation
>     */
>    @WebMethod(operationName = "addNumbers")
>    @Oneway
>      public void addNumbers(@WebParam(name = "num1")
>    int num1, @WebParam(name = "num2")
>    int num2) {
>        int total=num1+num2;
>        System.out.println("Sum of 2 numbers is:"+total);      
>    }
> }
> I observe that if the same service is annotated with @MTOM annotation I
> could see a CompositeData info in the features attribute of MBean.

I'm not sure what exactly you are talking about.  A (png) screen shot would be
useful if you are talking about what you see in jconsole.


> Is it
> because OneWayFeature is not a Subclass of
> javax.xml.ws.WebServiceFeature in JDK 6?

I can't answer this until I understand more of what's above it.

Regards,
Harold






---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: need some help with getting monitoring information for a one way webservice

by Sreekanth-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Harold,

Harold Carr wrote:
> hello Sreekanth,
>
>
>> How would I pull monitoring information from a @OneWay annotated web
>> service?I don't see any such information in the JConsole.
>
> What do you mean by "pull"?
I mean to get the monitoring data.As of now I am trying to get the
monitoring data through JMX API.Thats the reason I used the word "pull"
.Sorry for the confusion created.
>
> What information do you see for a OneWay?
I see in one pager that monitoring development work has been done for
OneWayFeature and I want to see what data is exposed from a OneWay
webservice.

Examining the OneWayFeature code I see

    /**
     * {@inheritDoc}
     */
    @ManagedAttribute
    public String getID() {
         return ID;
    }


With my understanding of the code  I want to see if I get the ID
value(in this case "http://java.sun.com/xml/ns/jaxws/addressing/oneway"
as defined in the class definition ) in the data exposed using jconsole
.Here goes my question:

Which attribute listed in the attributes section will give me
information about the OneWay feature of the service?Is it the "features"
attribute? Please find screenshot 1.png attached.
>
> What information are you expecting?

I am expecting some information like this:

id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
enabled=true

See screenshot 4 .

>
>> @WebService()
>> //@MTOM
>> public class OneWayFeature {
>>
>>    /**
>>     * Web service operation
>>     */
>>    @WebMethod(operationName = "addNumbers")
>>    @Oneway
>>      public void addNumbers(@WebParam(name = "num1")
>>    int num1, @WebParam(name = "num2")
>>    int num2) {
>>        int total=num1+num2;
>>        System.out.println("Sum of 2 numbers is:"+total);         }
>> }
>> I observe that if the same service is annotated with @MTOM annotation
>> I could see a CompositeData info in the features attribute of MBean.
>
> I'm not sure what exactly you are talking about.  A (png) screen shot
> would be useful if you are talking about what you see in jconsole.
>
>
>> Is it because OneWayFeature is not a Subclass of
>> javax.xml.ws.WebServiceFeature in JDK 6?
Screenshot 2 is taken when the service is annotated with  @OneWay and 3
,4 are taken when the annotation @MTOM is also used.

P.S : I am still learning and please do point me to my misunderstandings
if any .

> I can't answer this until I understand more of what's above it.
>
> Regards,
> Harold
>
>
>
>
>





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

1.png (113K) Download Attachment
2.png (111K) Download Attachment
3.png (112K) Download Attachment
4.png (123K) Download Attachment

Re: need some help with getting monitoring information for a one way webservice

by Harold Carr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Sreekanth - and a question for Jitu or Rama too.

Sreekanth wrote:

> I see in one pager that monitoring development work has been done for
> OneWayFeature and I want to see what data is exposed from a OneWay
> webservice.
>
> Examining the OneWayFeature code I see
>
>    /**
>     * {@inheritDoc}
>     */
>    @ManagedAttribute
>    public String getID() {
>         return ID;
>    }
>
>
> With my understanding of the code  I want to see if I get the ID
> value(in this case "http://java.sun.com/xml/ns/jaxws/addressing/oneway"
> as defined in the class definition ) in the data exposed using jconsole

 > I am expecting some information like this:
 >
 > id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
 > enabled=true
 >

>
> Which attribute listed in the attributes section will give me
> information about the OneWay feature of the service?Is it the "features"
> attribute?

Yes, it is "features".


> I am expecting some information like this:
>
> id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
> enabled=true

The screen shots definitely show MTOM in the feature list but not anything about
  OneWay.

>>> Is it because OneWayFeature is not a Subclass of
>>> javax.xml.ws.WebServiceFeature in JDK 6?

Jitu or Rama will need to answer a question:  What would cause something
regarding OneWay to show up in features?

Thanks,
Harold

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: need some help with getting monitoring information for a one way webservice

by Sreekanth-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jitu/Rama ,

Can some one clarify this:

Thanks,
Sreekanth

On Thu, Aug 27, 2009 at 10:46 AM, Harold Carr <Harold.Carr@...> wrote:
Hello Sreekanth - and a question for Jitu or Rama too.


Sreekanth wrote:
I see in one pager that monitoring development work has been done for OneWayFeature and I want to see what data is exposed from a OneWay webservice.

Examining the OneWayFeature code I see

  /**
   * {@inheritDoc}
   */
  @ManagedAttribute
  public String getID() {
       return ID;
  }


With my understanding of the code  I want to see if I get the ID value(in this case "http://java.sun.com/xml/ns/jaxws/addressing/oneway" as defined in the class definition ) in the data exposed using jconsole

> I am expecting some information like this:
>
> id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
> enabled=true
>


Which attribute listed in the attributes section will give me information about the OneWay feature of the service?Is it the "features" attribute?

Yes, it is "features".



I am expecting some information like this:

id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
enabled=true

The screen shots definitely show MTOM in the feature list but not anything about  OneWay.


Is it because OneWayFeature is not a Subclass of javax.xml.ws.WebServiceFeature in JDK 6?

Jitu or Rama will need to answer a question:  What would cause something regarding OneWay to show up in features?

Thanks,

Harold

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...




--
Thanks,
Sreekanth
Mob:+91 9035564557


Re: need some help with getting monitoring information for a one way webservice

by Rama Pulavarthi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
This is a unsupported feature just used for internal working of WSIT.
This feature is a misnomer and is just a hack to pass ReplyTo, FaultTo
etc to workaround an issue in WSIT even though the operation says it is
oneway.
It does not relate to oneway message exchange behavior of JAX-WS.

First, I don't see any reason why this should be exposed in monitoring.
If our intent is to just see all the features that are enabled, we
should expose the name of the feature, which users are more familiar
with than the esoteric ID. I think we should not expose the attributes
of this feature as the semantics are not well defined.

thanks,
Rama Pulavarthi

Harold Carr wrote:

> Hello Sreekanth - and a question for Jitu or Rama too.
>
> Sreekanth wrote:
>> I see in one pager that monitoring development work has been done for
>> OneWayFeature and I want to see what data is exposed from a OneWay
>> webservice.
>>
>> Examining the OneWayFeature code I see
>>
>>    /**
>>     * {@inheritDoc}
>>     */
>>    @ManagedAttribute
>>    public String getID() {
>>         return ID;
>>    }
>>
>>
>> With my understanding of the code  I want to see if I get the ID
>> value(in this case
>> "http://java.sun.com/xml/ns/jaxws/addressing/oneway" as defined in
>> the class definition ) in the data exposed using jconsole
>
> > I am expecting some information like this:
> >
> > id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
> > enabled=true
> >
>
>>
>> Which attribute listed in the attributes section will give me
>> information about the OneWay feature of the service?Is it the
>> "features" attribute?
>
> Yes, it is "features".
>
>
>> I am expecting some information like this:
>>
>> id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
>> enabled=true
>
> The screen shots definitely show MTOM in the feature list but not
> anything about  OneWay.
>
>>>> Is it because OneWayFeature is not a Subclass of
>>>> javax.xml.ws.WebServiceFeature in JDK 6?
>
> Jitu or Rama will need to answer a question:  What would cause
> something regarding OneWay to show up in features?
>
> Thanks,
> Harold
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: need some help with getting monitoring information for a one way webservice

by Sreekanth-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Rama,

Rama Pulavarthi wrote:
> Hi,
> This is a unsupported feature just used for internal working of WSIT.
> This feature is a misnomer and is just a hack to pass ReplyTo, FaultTo
> etc to workaround an issue in WSIT even though the operation says it is
> oneway.
> It does not relate to oneway message exchange behavior of JAX-WS.
>  
Ok.I understand.A document/blog describing various WebserviceFeatures
and their usage would be helpful although some of them are described in
various blogs.

Apart from this OneWayFeature class, are there any other classes that
are not supported as of now?
> First, I don't see any reason why this should be exposed in monitoring.
> If our intent is to just see all the features that are enabled, we
> should expose the name of the feature, which users are more familiar
> with than the esoteric ID.
Yes I have to map the id defined in each subclass of WebServiceFeature
to the actual WebserviceFeature being used from the source code.

> I think we should not expose the attributes
> of this feature as the semantics are not well defined.
>  


Thanks,
Sreekanth

> thanks,
> Rama Pulavarthi
>
> Harold Carr wrote:
>  
>> Hello Sreekanth - and a question for Jitu or Rama too.
>>
>> Sreekanth wrote:
>>    
>>> I see in one pager that monitoring development work has been done for
>>> OneWayFeature and I want to see what data is exposed from a OneWay
>>> webservice.
>>>
>>> Examining the OneWayFeature code I see
>>>
>>>    /**
>>>     * {@inheritDoc}
>>>     */
>>>    @ManagedAttribute
>>>    public String getID() {
>>>         return ID;
>>>    }
>>>
>>>
>>> With my understanding of the code  I want to see if I get the ID
>>> value(in this case
>>> "http://java.sun.com/xml/ns/jaxws/addressing/oneway" as defined in
>>> the class definition ) in the data exposed using jconsole
>>>      
>>> I am expecting some information like this:
>>>
>>> id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
>>> enabled=true
>>>
>>>      
>>> Which attribute listed in the attributes section will give me
>>> information about the OneWay feature of the service?Is it the
>>> "features" attribute?
>>>      
>> Yes, it is "features".
>>
>>
>>    
>>> I am expecting some information like this:
>>>
>>> id=http://java.sun.com/xml/ns/jaxws/addressing/oneway
>>> enabled=true
>>>      
>> The screen shots definitely show MTOM in the feature list but not
>> anything about  OneWay.
>>
>>    
>>>>> Is it because OneWayFeature is not a Subclass of
>>>>> javax.xml.ws.WebServiceFeature in JDK 6?
>>>>>          
>> Jitu or Rama will need to answer a question:  What would cause
>> something regarding OneWay to show up in features?
>>
>> Thanks,
>> Harold
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@...
>> For additional commands, e-mail: dev-help@...
>>
>>    
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...