One of the things I'm trying to accomplish is to create
custom notifications
without specifying the topic sets via configuration under
the MUSE
configuration files. How can I accomplish that?
Asaf Lahav
VP R&D, Prima Grid LTD.
Cellular: 972-54-4717955
Phone: 972-3-6540255
Fax: 972-3-6540254
-----Original Message-----
From: Kinga Dziembowski [mailto:kdziembo gmail.com]
Sent: Monday, April 03, 2006 4:33 AM
To: muse-user ws.apache.org
Subject: Re: topics/notifications via MUSE
Asaf,
Take a look at muse examples. Take a look at
examples\enterprise\Muse_Example.htm. This file explains
the managed
entities used in examples\enterprise. The application
module at
examples\enterprise\services\application is sending
custom notifications. It
exposes two operations StartEvents and StopEvents which you
can use to
control events emission. After you create instance of
application, and
execute StartEvents - the notifications will be send
scheduled by timer.
Look at the code and run the examples - Muse_Example.htm
explains how to run
ant test exercising the example capabilities. After you run
tests you will
have several resources instances available and you can play
with them. The
test executes scripted sequence of soap requests send to the
muse endpoint.
The factories for predefined resource types will create
their instances,
will setup relationships between them and subscribe to
different types of
notifications.
At examples\enterprise\requests you have examples of soap
requests which
shows "how to" use different aspects of the
examples. Please note how
SubscribeToOperationalEvent_Application.xml uses your file
system as
consumer of subscriptions - this is probably the easiest
consumer you can
possible have - zero coding and it works greatly...
Enjoy
On 4/2/06, Asaf Lahav <asaf.lahav primagrid.com> wrote:
>
> Hi Li,
>
> I went through the samples code of the pubscribe
project and have a
> question.
>
> What are the steps in order to be able to publish
custom notifications?
>
> Another thing that interests me is whether it's
possible to create custom
> notifications from code only without performing any
registrations in the
> wsrf-config.xml file?
>
>
>
> Asaf Lahav
>
> VP R&D, Prima Grid LTD.
>
> Cellular: 972-54-4717955
>
> Phone: 972-3-6540255
>
> Fax: 972-3-6540254
>
>
>
> -----Original Message-----
> From: Zheng Li [mailto:zli it.swin.edu.au]
> Sent: Friday, March 31, 2006 7:25 AM
> To: muse-user ws.apache.org
> Subject: RE: topics/notifications via MUSE
>
> Hi Asaf:
>
> I have successfully used muse to implement the
pub-scribe communication
> model. Actually, the pub-scribe job is done by the
apache pubscribe, which
> is an implementation of WS-Notification.
>
> Basically, what u need to do is:
>
> 1 Create a topic in message producer;
>
> 2 Develop a message consumer, which implement the
notify function;
>
> 3 Subscribe to the topic;
>
> 4 Publish a message to that topic;
>
> The message will be send to the message consumer
automatically by the
> framework....
>
>
>
>
> -----Original Message-----
> From: Asaf Lahav [mailto:asaf.lahav primagrid.com]
> Sent: Friday, 31 March 2006 5:59 AM
> To: muse-user ws.apache.org
> Subject: RE: topics/notifications via MUSE
>
>
>
> >From what I see in the pubscribe documentation (e.g
> http://ws.apache.org/pubscribe/dev_guide/producer.html
), this Resource is
> supposed to have a getter by the name:
yourResource.getTopicSet().
>
> I produced a WSDL file (using the MUSE FileSystem
sample) and executed the
> ant "Generate" target.
> The Resource code generated by the build process
doesn't contain a getter
> by
> the name getTopicSet(). Further more, it seems as if
the Service is
> expected
> to implement the Notify function (e.g: public void
notify(NotifyDocument
> notifyDocument)) and it doesn't.
>
> Are there any known issues with the MUSE code
generator?
>
> Asaf Lahav
> VP R&D, Prima Grid LTD.
> Cellular: 972-54-4717955
> Phone: 972-3-6540255
> Fax: 972-3-6540254
>
>
>
>
> From: Campana Jr., Salvatore J [mailto:sal.campana hp.com]
> Sent: Wednesday, March 29, 2006 4:03 PM
> To: wsrf-user ws.apache.org; muse-user ws.apache.org
> Subject: RE: topics/notifications via MUSE
>
> take a look at the Pubscribe documentation and
examples. Muse extends
> Pubscribe, which means you do things the same way,...
>
>
>
>
> From: Asaf Lahav [mailto:asaf.lahav primagrid.com]
> Sent: Wednesday, March 29, 2006 6:52 AM
> To: muse-user ws.apache.org; wsrf-user ws.apache.org
> Subject: topics/notifications via MUSE
> Hi,
> What is required if I want to utilize MUSE to generate
WSNT notifications
> and topics on my web service?
> What I'm trying to accomplish is to utilize MUSE to
enable the publishing
> of
> custom Notifications.
> e.g,
> Let's say I have a scenario of WSRF web-services which
are managing a
> hardware store. And I want to be able to publish
notifications to
> subscribers indicating that the storage level decreases
below a
> preconfigured level.
> What I would like MUSE to provide is the means to
enable creation of a
> topic
> that would enable consumers subscribe to it so they
will get the
> notification.
>
> What am I supposed to include in the MUSE WSDL (or
anywhere else) in order
> to accomplish that or similar results?
>
> Asaf Lahav
> VP R&D, Prima Grid LTD.
> Cellular: 972-54-4717955
> Phone: 972-3-6540255
> Fax: 972-3-6540254
>
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: wsrf-user-unsubscribe ws.apache.org
For additional commands, e-mail: wsrf-user-help ws.apache.org
|