You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by "Callner, David A." <dc...@mitre.org> on 2007/05/08 21:39:29 UTC
SimpleNotificationConsumer
I'm trying to use the SimpleNotificationConsumer but when I go to
subscribe the consumer to a producer I need the URI and it returns
null. How can I use the SimpleNotificationConsumer and subscribe to a
producer with it?
David Callner
Senior Software Systems Engineer
The MITRE Corporation
Center for Advanced Aviation System Development
7515 Colshire Dr.
McLean, VA. 22102
dcallner@mitre.org <ma...@mitre.org>
703.983.6431 (work)
RE: SimpleNotificationConsumer
Posted by Balan Subramanian <bs...@us.ibm.com>.
Please take a look at the TPTP project that Dan suggested. The
notification consumers are individual plugins in TPTP and can run on RCP
assuming you would build you own GUI instead of using the Managed Agent
Explorer (MAX). Please post any questions on the TPTP newsgroup regarding
running the notification consumer in RCP (
http://www.ibm.com/developerworks/autonomic/library/ac-wsdmos.html?S_TACT=105AGX09&S_CMP=art#N100BC
)
Balan Subramanian
Autonomic Computing, IBM, RTP, NC
919.543.0197 | bsubram@us.ibm.com
"Srinivasan Packirisamy \(spackiri\)" <sp...@cisco.com>
05/10/2007 11:54 AM
Please respond to
muse-user@ws.apache.org
To
<mu...@ws.apache.org>
cc
Subject
RE: SimpleNotificationConsumer
Dan,
I'd be interested more in knowing abt Eclipse RCP receiving
WS-Notifications. Can you shed more info about it?
~Srini
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Thursday, May 10, 2007 8:18 AM
To: muse-user@ws.apache.org
Subject: RE: SimpleNotificationConsumer
Opening a socket and doing the HTTP parsing for you would lead us down
the
road of writing our own little web server (we may not call it a web
server,
but if it's opening a TCP/IP socket, parsing HTTP headers, and handling
requests based on message content, that's really what we have). Since a
lot
of other people have already done this and solved all of the tricky bugs
that crop up when trying to write a robust web server, we'd rather rely
on
their work. In the case of receiving notifications from a traditional
app,
have you considered using OSGi for deployment and Eclipse's RCP for
GUI/other app development? We did this for some of our tooling in
Eclipse
TPTP - it's a normal Eclipse IDE, but part of it can receive
WS-notifications for logging/display.
Other users encountered this before and I think some more info was
posted
to the list. Here's my initial findings:
http://marc.info/?l=muse-user&w=2&r=1&s=OSGi+notification&q=b
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 01:23:45
PM:
> I was under the impression that the SimpleNotificationConsumer would
> open up a socket and listen for me. Why does it have to be a web
> server? Many clients of a Producer may not be web servers. Just like
> clients of Axis2 servers do not have to be web servers.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Wednesday, May 09, 2007 12:16 PM
> To: muse-user@ws.apache.org
> Subject: RE: SimpleNotificationConsumer
>
> If you don't have *some* kind of web server present (even if it's a
> homegrown piece of code that listens on a socket), how are you going
to
>
> receive and parse the notifications?
>
> Dan
>
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 11:23:05
> AM:
>
> > So I can't have a Consumer that's NOT a servlet. I just want to
have
> a
> > Consumer that is a stand alone Java Application. No Web Server for
> the
> > Consumer.
> >
> > -----Original Message-----
> > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > Sent: Wednesday, May 09, 2007 10:13 AM
> > To: muse-user@ws.apache.org
> > Subject: RE: SimpleNotificationConsumer
> >
> > The SNC is one capability in a consumer resource - to make an EPR
for
> > the
> > consumer resource, you want to follow the instructions at the bottom
> of
> >
> > this page:
> >
> >
> > http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
> >
> > If you generated the consumer resource with wsdl2java and have not
> > modified it at all, just making an EndpointReference object with the
> > right
> > address (URI) will work. If you have multiple instances of the
> consumer
> >
> > resource[1], you'll need to use EndpointReference.addParameter() to
> > complete the EPR.
> >
> > Dan
> >
> > [1] Instructions here:
> >
> >
> >
>
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
> > istence.html
> >
> >
> > "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007
07:23:05
> > AM:
> >
> > > I am, but I want the EPR to be a SimpleNotificationConsumer.
> > >
> > > -----Original Message-----
> > > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > > Sent: Tuesday, May 08, 2007 3:43 PM
> > > To: muse-user@ws.apache.org
> > > Subject: Re: SimpleNotificationConsumer
> > >
> > > I believe you want to use the NotificationProducerClient to
> > subscribe()
> > > to
> > > notifications from a producer. In the call to subscribe(), you can
> > > specify
> > > the EPR of the consumer, which may or may not be the piece of code
> > that
> > > is
> > > calling subscribe(). The NotificationConsumer just processes
> messages
> > > that
> > > are sent once the subscription is in place.
> > >
> > > Dan
> > >
> > >
> > > "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007
> 03:39:29
> > > PM:
> > >
> > > > I'm trying to use the SimpleNotificationConsumer but when I go
to
> > > > subscribe the consumer to a producer I need the URI and it
> returns
> > > > null. How can I use the SimpleNotificationConsumer and
subscribe
> > to
> > > a
> > > > producer with it?
> > > >
> > > > David Callner
> > > > Senior Software Systems Engineer
> > > > The MITRE Corporation
> > > > Center for Advanced Aviation System Development
> > > > 7515 Colshire Dr.
> > > > McLean, VA. 22102
> > > > dcallner@mitre.org <ma...@mitre.org>
> > > > 703.983.6431 (work)
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: muse-user-help@ws.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: muse-user-help@ws.apache.org
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: SimpleNotificationConsumer
Posted by "Srinivasan Packirisamy (spackiri)" <sp...@cisco.com>.
Dan,
I'd be interested more in knowing abt Eclipse RCP receiving
WS-Notifications. Can you shed more info about it?
~Srini
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Thursday, May 10, 2007 8:18 AM
To: muse-user@ws.apache.org
Subject: RE: SimpleNotificationConsumer
Opening a socket and doing the HTTP parsing for you would lead us down
the
road of writing our own little web server (we may not call it a web
server,
but if it's opening a TCP/IP socket, parsing HTTP headers, and handling
requests based on message content, that's really what we have). Since a
lot
of other people have already done this and solved all of the tricky bugs
that crop up when trying to write a robust web server, we'd rather rely
on
their work. In the case of receiving notifications from a traditional
app,
have you considered using OSGi for deployment and Eclipse's RCP for
GUI/other app development? We did this for some of our tooling in
Eclipse
TPTP - it's a normal Eclipse IDE, but part of it can receive
WS-notifications for logging/display.
Other users encountered this before and I think some more info was
posted
to the list. Here's my initial findings:
http://marc.info/?l=muse-user&w=2&r=1&s=OSGi+notification&q=b
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 01:23:45
PM:
> I was under the impression that the SimpleNotificationConsumer would
> open up a socket and listen for me. Why does it have to be a web
> server? Many clients of a Producer may not be web servers. Just like
> clients of Axis2 servers do not have to be web servers.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Wednesday, May 09, 2007 12:16 PM
> To: muse-user@ws.apache.org
> Subject: RE: SimpleNotificationConsumer
>
> If you don't have *some* kind of web server present (even if it's a
> homegrown piece of code that listens on a socket), how are you going
to
>
> receive and parse the notifications?
>
> Dan
>
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 11:23:05
> AM:
>
> > So I can't have a Consumer that's NOT a servlet. I just want to
have
> a
> > Consumer that is a stand alone Java Application. No Web Server for
> the
> > Consumer.
> >
> > -----Original Message-----
> > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > Sent: Wednesday, May 09, 2007 10:13 AM
> > To: muse-user@ws.apache.org
> > Subject: RE: SimpleNotificationConsumer
> >
> > The SNC is one capability in a consumer resource - to make an EPR
for
> > the
> > consumer resource, you want to follow the instructions at the bottom
> of
> >
> > this page:
> >
> >
> > http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
> >
> > If you generated the consumer resource with wsdl2java and have not
> > modified it at all, just making an EndpointReference object with the
> > right
> > address (URI) will work. If you have multiple instances of the
> consumer
> >
> > resource[1], you'll need to use EndpointReference.addParameter() to
> > complete the EPR.
> >
> > Dan
> >
> > [1] Instructions here:
> >
> >
> >
>
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
> > istence.html
> >
> >
> > "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007
07:23:05
> > AM:
> >
> > > I am, but I want the EPR to be a SimpleNotificationConsumer.
> > >
> > > -----Original Message-----
> > > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > > Sent: Tuesday, May 08, 2007 3:43 PM
> > > To: muse-user@ws.apache.org
> > > Subject: Re: SimpleNotificationConsumer
> > >
> > > I believe you want to use the NotificationProducerClient to
> > subscribe()
> > > to
> > > notifications from a producer. In the call to subscribe(), you can
> > > specify
> > > the EPR of the consumer, which may or may not be the piece of code
> > that
> > > is
> > > calling subscribe(). The NotificationConsumer just processes
> messages
> > > that
> > > are sent once the subscription is in place.
> > >
> > > Dan
> > >
> > >
> > > "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007
> 03:39:29
> > > PM:
> > >
> > > > I'm trying to use the SimpleNotificationConsumer but when I go
to
> > > > subscribe the consumer to a producer I need the URI and it
> returns
> > > > null. How can I use the SimpleNotificationConsumer and
subscribe
> > to
> > > a
> > > > producer with it?
> > > >
> > > > David Callner
> > > > Senior Software Systems Engineer
> > > > The MITRE Corporation
> > > > Center for Advanced Aviation System Development
> > > > 7515 Colshire Dr.
> > > > McLean, VA. 22102
> > > > dcallner@mitre.org <ma...@mitre.org>
> > > > 703.983.6431 (work)
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: muse-user-help@ws.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: muse-user-help@ws.apache.org
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: SimpleNotificationConsumer
Posted by Daniel Jemiolo <da...@us.ibm.com>.
Opening a socket and doing the HTTP parsing for you would lead us down the
road of writing our own little web server (we may not call it a web server,
but if it's opening a TCP/IP socket, parsing HTTP headers, and handling
requests based on message content, that's really what we have). Since a lot
of other people have already done this and solved all of the tricky bugs
that crop up when trying to write a robust web server, we'd rather rely on
their work. In the case of receiving notifications from a traditional app,
have you considered using OSGi for deployment and Eclipse's RCP for
GUI/other app development? We did this for some of our tooling in Eclipse
TPTP - it's a normal Eclipse IDE, but part of it can receive
WS-notifications for logging/display.
Other users encountered this before and I think some more info was posted
to the list. Here's my initial findings:
http://marc.info/?l=muse-user&w=2&r=1&s=OSGi+notification&q=b
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 01:23:45 PM:
> I was under the impression that the SimpleNotificationConsumer would
> open up a socket and listen for me. Why does it have to be a web
> server? Many clients of a Producer may not be web servers. Just like
> clients of Axis2 servers do not have to be web servers.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Wednesday, May 09, 2007 12:16 PM
> To: muse-user@ws.apache.org
> Subject: RE: SimpleNotificationConsumer
>
> If you don't have *some* kind of web server present (even if it's a
> homegrown piece of code that listens on a socket), how are you going to
>
> receive and parse the notifications?
>
> Dan
>
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 11:23:05
> AM:
>
> > So I can't have a Consumer that's NOT a servlet. I just want to have
> a
> > Consumer that is a stand alone Java Application. No Web Server for
> the
> > Consumer.
> >
> > -----Original Message-----
> > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > Sent: Wednesday, May 09, 2007 10:13 AM
> > To: muse-user@ws.apache.org
> > Subject: RE: SimpleNotificationConsumer
> >
> > The SNC is one capability in a consumer resource - to make an EPR for
> > the
> > consumer resource, you want to follow the instructions at the bottom
> of
> >
> > this page:
> >
> >
> > http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
> >
> > If you generated the consumer resource with wsdl2java and have not
> > modified it at all, just making an EndpointReference object with the
> > right
> > address (URI) will work. If you have multiple instances of the
> consumer
> >
> > resource[1], you'll need to use EndpointReference.addParameter() to
> > complete the EPR.
> >
> > Dan
> >
> > [1] Instructions here:
> >
> >
> >
> http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
> > istence.html
> >
> >
> > "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 07:23:05
> > AM:
> >
> > > I am, but I want the EPR to be a SimpleNotificationConsumer.
> > >
> > > -----Original Message-----
> > > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > > Sent: Tuesday, May 08, 2007 3:43 PM
> > > To: muse-user@ws.apache.org
> > > Subject: Re: SimpleNotificationConsumer
> > >
> > > I believe you want to use the NotificationProducerClient to
> > subscribe()
> > > to
> > > notifications from a producer. In the call to subscribe(), you can
> > > specify
> > > the EPR of the consumer, which may or may not be the piece of code
> > that
> > > is
> > > calling subscribe(). The NotificationConsumer just processes
> messages
> > > that
> > > are sent once the subscription is in place.
> > >
> > > Dan
> > >
> > >
> > > "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007
> 03:39:29
> > > PM:
> > >
> > > > I'm trying to use the SimpleNotificationConsumer but when I go to
> > > > subscribe the consumer to a producer I need the URI and it
> returns
> > > > null. How can I use the SimpleNotificationConsumer and subscribe
> > to
> > > a
> > > > producer with it?
> > > >
> > > > David Callner
> > > > Senior Software Systems Engineer
> > > > The MITRE Corporation
> > > > Center for Advanced Aviation System Development
> > > > 7515 Colshire Dr.
> > > > McLean, VA. 22102
> > > > dcallner@mitre.org <ma...@mitre.org>
> > > > 703.983.6431 (work)
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: muse-user-help@ws.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: muse-user-help@ws.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
RE: SimpleNotificationConsumer
Posted by "Callner, David A." <dc...@mitre.org>.
I was under the impression that the SimpleNotificationConsumer would
open up a socket and listen for me. Why does it have to be a web
server? Many clients of a Producer may not be web servers. Just like
clients of Axis2 servers do not have to be web servers.
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Wednesday, May 09, 2007 12:16 PM
To: muse-user@ws.apache.org
Subject: RE: SimpleNotificationConsumer
If you don't have *some* kind of web server present (even if it's a
homegrown piece of code that listens on a socket), how are you going to
receive and parse the notifications?
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 11:23:05
AM:
> So I can't have a Consumer that's NOT a servlet. I just want to have
a
> Consumer that is a stand alone Java Application. No Web Server for
the
> Consumer.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Wednesday, May 09, 2007 10:13 AM
> To: muse-user@ws.apache.org
> Subject: RE: SimpleNotificationConsumer
>
> The SNC is one capability in a consumer resource - to make an EPR for
> the
> consumer resource, you want to follow the instructions at the bottom
of
>
> this page:
>
>
> http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
>
> If you generated the consumer resource with wsdl2java and have not
> modified it at all, just making an EndpointReference object with the
> right
> address (URI) will work. If you have multiple instances of the
consumer
>
> resource[1], you'll need to use EndpointReference.addParameter() to
> complete the EPR.
>
> Dan
>
> [1] Instructions here:
>
>
>
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
> istence.html
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 07:23:05
> AM:
>
> > I am, but I want the EPR to be a SimpleNotificationConsumer.
> >
> > -----Original Message-----
> > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > Sent: Tuesday, May 08, 2007 3:43 PM
> > To: muse-user@ws.apache.org
> > Subject: Re: SimpleNotificationConsumer
> >
> > I believe you want to use the NotificationProducerClient to
> subscribe()
> > to
> > notifications from a producer. In the call to subscribe(), you can
> > specify
> > the EPR of the consumer, which may or may not be the piece of code
> that
> > is
> > calling subscribe(). The NotificationConsumer just processes
messages
> > that
> > are sent once the subscription is in place.
> >
> > Dan
> >
> >
> > "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007
03:39:29
> > PM:
> >
> > > I'm trying to use the SimpleNotificationConsumer but when I go to
> > > subscribe the consumer to a producer I need the URI and it
returns
> > > null. How can I use the SimpleNotificationConsumer and subscribe
> to
> > a
> > > producer with it?
> > >
> > > David Callner
> > > Senior Software Systems Engineer
> > > The MITRE Corporation
> > > Center for Advanced Aviation System Development
> > > 7515 Colshire Dr.
> > > McLean, VA. 22102
> > > dcallner@mitre.org <ma...@mitre.org>
> > > 703.983.6431 (work)
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
AW: SimpleNotificationConsumer
Posted by "Beil, Matthias" <Be...@ascom-ac.de>.
Hi,
if you want to have a Consumer as a standalone Java application and are willing to go with Axis2, then you should see for the SimpleHTTPServer of Axis2.
Axis2 can be started without any Servlet engine, see in the bin directory of Axis2 for some start scripts for the SimpleHTTPServer. Of course this server doesn't scale well :-(
Best regards
Matthias
-----Ursprüngliche Nachricht-----
Von: Callner, David A. [mailto:dcallner@mitre.org]
Gesendet: Mittwoch, 9. Mai 2007 17:23
An: muse-user@ws.apache.org
Betreff: RE: SimpleNotificationConsumer
So I can't have a Consumer that's NOT a servlet. I just want to have a
Consumer that is a stand alone Java Application. No Web Server for the
Consumer.
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Wednesday, May 09, 2007 10:13 AM
To: muse-user@ws.apache.org
Subject: RE: SimpleNotificationConsumer
The SNC is one capability in a consumer resource - to make an EPR for
the
consumer resource, you want to follow the instructions at the bottom of
this page:
http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
If you generated the consumer resource with wsdl2java and have not
modified it at all, just making an EndpointReference object with the
right
address (URI) will work. If you have multiple instances of the consumer
resource[1], you'll need to use EndpointReference.addParameter() to
complete the EPR.
Dan
[1] Instructions here:
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
istence.html
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 07:23:05
AM:
> I am, but I want the EPR to be a SimpleNotificationConsumer.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Tuesday, May 08, 2007 3:43 PM
> To: muse-user@ws.apache.org
> Subject: Re: SimpleNotificationConsumer
>
> I believe you want to use the NotificationProducerClient to
subscribe()
> to
> notifications from a producer. In the call to subscribe(), you can
> specify
> the EPR of the consumer, which may or may not be the piece of code
that
> is
> calling subscribe(). The NotificationConsumer just processes messages
> that
> are sent once the subscription is in place.
>
> Dan
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007 03:39:29
> PM:
>
> > I'm trying to use the SimpleNotificationConsumer but when I go to
> > subscribe the consumer to a producer I need the URI and it returns
> > null. How can I use the SimpleNotificationConsumer and subscribe
to
> a
> > producer with it?
> >
> > David Callner
> > Senior Software Systems Engineer
> > The MITRE Corporation
> > Center for Advanced Aviation System Development
> > 7515 Colshire Dr.
> > McLean, VA. 22102
> > dcallner@mitre.org <ma...@mitre.org>
> > 703.983.6431 (work)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: SimpleNotificationConsumer
Posted by Daniel Jemiolo <da...@us.ibm.com>.
If you don't have *some* kind of web server present (even if it's a
homegrown piece of code that listens on a socket), how are you going to
receive and parse the notifications?
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 11:23:05 AM:
> So I can't have a Consumer that's NOT a servlet. I just want to have a
> Consumer that is a stand alone Java Application. No Web Server for the
> Consumer.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Wednesday, May 09, 2007 10:13 AM
> To: muse-user@ws.apache.org
> Subject: RE: SimpleNotificationConsumer
>
> The SNC is one capability in a consumer resource - to make an EPR for
> the
> consumer resource, you want to follow the instructions at the bottom of
>
> this page:
>
>
> http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
>
> If you generated the consumer resource with wsdl2java and have not
> modified it at all, just making an EndpointReference object with the
> right
> address (URI) will work. If you have multiple instances of the consumer
>
> resource[1], you'll need to use EndpointReference.addParameter() to
> complete the EPR.
>
> Dan
>
> [1] Instructions here:
>
>
> http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
> istence.html
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 07:23:05
> AM:
>
> > I am, but I want the EPR to be a SimpleNotificationConsumer.
> >
> > -----Original Message-----
> > From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> > Sent: Tuesday, May 08, 2007 3:43 PM
> > To: muse-user@ws.apache.org
> > Subject: Re: SimpleNotificationConsumer
> >
> > I believe you want to use the NotificationProducerClient to
> subscribe()
> > to
> > notifications from a producer. In the call to subscribe(), you can
> > specify
> > the EPR of the consumer, which may or may not be the piece of code
> that
> > is
> > calling subscribe(). The NotificationConsumer just processes messages
> > that
> > are sent once the subscription is in place.
> >
> > Dan
> >
> >
> > "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007 03:39:29
> > PM:
> >
> > > I'm trying to use the SimpleNotificationConsumer but when I go to
> > > subscribe the consumer to a producer I need the URI and it returns
> > > null. How can I use the SimpleNotificationConsumer and subscribe
> to
> > a
> > > producer with it?
> > >
> > > David Callner
> > > Senior Software Systems Engineer
> > > The MITRE Corporation
> > > Center for Advanced Aviation System Development
> > > 7515 Colshire Dr.
> > > McLean, VA. 22102
> > > dcallner@mitre.org <ma...@mitre.org>
> > > 703.983.6431 (work)
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: SimpleNotificationConsumer
Posted by "Callner, David A." <dc...@mitre.org>.
So I can't have a Consumer that's NOT a servlet. I just want to have a
Consumer that is a stand alone Java Application. No Web Server for the
Consumer.
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Wednesday, May 09, 2007 10:13 AM
To: muse-user@ws.apache.org
Subject: RE: SimpleNotificationConsumer
The SNC is one capability in a consumer resource - to make an EPR for
the
consumer resource, you want to follow the instructions at the bottom of
this page:
http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
If you generated the consumer resource with wsdl2java and have not
modified it at all, just making an EndpointReference object with the
right
address (URI) will work. If you have multiple instances of the consumer
resource[1], you'll need to use EndpointReference.addParameter() to
complete the EPR.
Dan
[1] Instructions here:
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-pers
istence.html
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 07:23:05
AM:
> I am, but I want the EPR to be a SimpleNotificationConsumer.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Tuesday, May 08, 2007 3:43 PM
> To: muse-user@ws.apache.org
> Subject: Re: SimpleNotificationConsumer
>
> I believe you want to use the NotificationProducerClient to
subscribe()
> to
> notifications from a producer. In the call to subscribe(), you can
> specify
> the EPR of the consumer, which may or may not be the piece of code
that
> is
> calling subscribe(). The NotificationConsumer just processes messages
> that
> are sent once the subscription is in place.
>
> Dan
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007 03:39:29
> PM:
>
> > I'm trying to use the SimpleNotificationConsumer but when I go to
> > subscribe the consumer to a producer I need the URI and it returns
> > null. How can I use the SimpleNotificationConsumer and subscribe
to
> a
> > producer with it?
> >
> > David Callner
> > Senior Software Systems Engineer
> > The MITRE Corporation
> > Center for Advanced Aviation System Development
> > 7515 Colshire Dr.
> > McLean, VA. 22102
> > dcallner@mitre.org <ma...@mitre.org>
> > 703.983.6431 (work)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: SimpleNotificationConsumer
Posted by Daniel Jemiolo <da...@us.ibm.com>.
The SNC is one capability in a consumer resource - to make an EPR for the
consumer resource, you want to follow the instructions at the bottom of
this page:
http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html
If you generated the consumer resource with wsdl2java and have not
modified it at all, just making an EndpointReference object with the right
address (URI) will work. If you have multiple instances of the consumer
resource[1], you'll need to use EndpointReference.addParameter() to
complete the EPR.
Dan
[1] Instructions here:
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/create-resource-persistence.html
"Callner, David A." <dc...@mitre.org> wrote on 05/09/2007 07:23:05 AM:
> I am, but I want the EPR to be a SimpleNotificationConsumer.
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Tuesday, May 08, 2007 3:43 PM
> To: muse-user@ws.apache.org
> Subject: Re: SimpleNotificationConsumer
>
> I believe you want to use the NotificationProducerClient to subscribe()
> to
> notifications from a producer. In the call to subscribe(), you can
> specify
> the EPR of the consumer, which may or may not be the piece of code that
> is
> calling subscribe(). The NotificationConsumer just processes messages
> that
> are sent once the subscription is in place.
>
> Dan
>
>
> "Callner, David A." <dc...@mitre.org> wrote on 05/08/2007 03:39:29
> PM:
>
> > I'm trying to use the SimpleNotificationConsumer but when I go to
> > subscribe the consumer to a producer I need the URI and it returns
> > null. How can I use the SimpleNotificationConsumer and subscribe to
> a
> > producer with it?
> >
> > David Callner
> > Senior Software Systems Engineer
> > The MITRE Corporation
> > Center for Advanced Aviation System Development
> > 7515 Colshire Dr.
> > McLean, VA. 22102
> > dcallner@mitre.org <ma...@mitre.org>
> > 703.983.6431 (work)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: SimpleNotificationConsumer
Posted by "Callner, David A." <dc...@mitre.org>.
I am, but I want the EPR to be a SimpleNotificationConsumer.
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Tuesday, May 08, 2007 3:43 PM
To: muse-user@ws.apache.org
Subject: Re: SimpleNotificationConsumer
I believe you want to use the NotificationProducerClient to subscribe()
to
notifications from a producer. In the call to subscribe(), you can
specify
the EPR of the consumer, which may or may not be the piece of code that
is
calling subscribe(). The NotificationConsumer just processes messages
that
are sent once the subscription is in place.
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/08/2007 03:39:29
PM:
> I'm trying to use the SimpleNotificationConsumer but when I go to
> subscribe the consumer to a producer I need the URI and it returns
> null. How can I use the SimpleNotificationConsumer and subscribe to
a
> producer with it?
>
> David Callner
> Senior Software Systems Engineer
> The MITRE Corporation
> Center for Advanced Aviation System Development
> 7515 Colshire Dr.
> McLean, VA. 22102
> dcallner@mitre.org <ma...@mitre.org>
> 703.983.6431 (work)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: SimpleNotificationConsumer
Posted by Daniel Jemiolo <da...@us.ibm.com>.
I believe you want to use the NotificationProducerClient to subscribe() to
notifications from a producer. In the call to subscribe(), you can specify
the EPR of the consumer, which may or may not be the piece of code that is
calling subscribe(). The NotificationConsumer just processes messages that
are sent once the subscription is in place.
Dan
"Callner, David A." <dc...@mitre.org> wrote on 05/08/2007 03:39:29 PM:
> I'm trying to use the SimpleNotificationConsumer but when I go to
> subscribe the consumer to a producer I need the URI and it returns
> null. How can I use the SimpleNotificationConsumer and subscribe to a
> producer with it?
>
> David Callner
> Senior Software Systems Engineer
> The MITRE Corporation
> Center for Advanced Aviation System Development
> 7515 Colshire Dr.
> McLean, VA. 22102
> dcallner@mitre.org <ma...@mitre.org>
> 703.983.6431 (work)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org