You need to sign in to do that
Don't have an account?
repton
outbound messaging - deploying more than one listener
I have been researching this problem for days. I previously posted a question the outbound messaging thread but it didn't register as a "new" post and I haven't heard anything on it.
I need to deploy multiple outbound listeners. How can I have say, an opportunity listener and an account listener running at the same time. Must I modify both the URL and the wsdl2java -p naming so as to get different packages. Must I also modify the service name?
How can this be done.
thanks,
Repton
I have done this in dot net (it's a bit easier :smileyhappy:). Looks like in java you may have to do some refactoring of packages and wsdd.
I'll take a closer look, but I there must be a reasonable way. Multiple endpoints is looking like the way to go.
http://some.server.com/OM/accounts/notifications
http://some.server.com/OM/contacts/notifications
Thanks for the response,
I have a 'working' solution which may prove not to be the 'best' way to go about this and if I find problems with this solution, I will post them. For my first outbound message listener on 'Account', I used the default wsdl and the default wsdl2java mappings. For my second listener based on 'Opportunity', I did the following:
I modified the Opportunity wsdl which looked like this ...
<!-- Service Endpoint -->
<service name="NotificationService">
<documentation>Notification Service Implementation</documentation>
<port binding="tns:NotificationBinding" name="Notification">
<soap:address location="<host>/axis/services/Notification"/>
</port>
</service>
to this:
<!-- Service Endpoint -->
<service name="OpportunityService">
<documentation>Opportunity Service Implementation</documentation>
<port binding="tns:NotificationBinding" name="Opportunity">
<soap:address location="<host>/axis/services/Opportunity"/>
</port>
</service>
Also, I used the "-p" switch in the wsdl2java (I'm using axis_1-4) to change the output package names so as to avoid collisions.
I now have two services running - 'Opportunity' and 'Notification' - and they respond so far as expected.
I did not have to modify the generated .wsdd deployment file. I did not have to merge any code. I did not have to change the names of any generated classes. So, for now, it suits my purpose and will allow for multiple outbound messages.
thanks,
Repton
Sumeet