Re: .NET & Java Publish-Subscribe pattern



Ludwig,

Whoa, there are whole books written on this topic. :)

If you go the web services route, remember to use only core types (types
that directly translate to xml types), so Java can interact with them. I
don't know that I would recommend polling web services. It would partly
depend on how realtime the remote data stores needed to be.

You may want to think about using SQL Server in all locations, and using the
built-in replication functionality (publisher/subscriber). You may also
want to look into middleware like BizTalk.

http://databases.about.com/cs/sqlserver/a/aa041303a.htm
http://www.microsoft.com/technet/prodtechnol/biztalk/2006/evaluate/overview/default.mspx

Hope this helps,


Steve



"Ludwig Wittgenstein" <sender_001@xxxxxxxxxxx> wrote in message
news:1181002106.507260.107420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello, all.

Does anyone know of documentation about implementing a publish-
subscribe model between a .NET Web service provide and a Java service
consumer? I have this problem I am trying to solve, and would greatly
appreciate it if someone can tell me what the best solution would be
for it.

I have a .NET 2.0 (ASMX) webservice on a server on a dedicated hosting
server, and several clients in different cities running linux servers
with MySQL, usually their MySQL server is synchronized with one I have
on a dedicated hosting server. This is easy to do, I just have web
service clients on each linux server calling webmethods on the .NET2.0/
SQL server and push information whenever there is a change in the
database. The problem is that I want to put data on the .NET2.0/SQL
server and have it propagated on all the MySQL servers. What is the
best way to do this? I believe a naive (?) solution would be to have
web service clients on the linux machines polling the .NET2.0 web
service every once in a while asking for data. However, I think that a
publish-subscribe model best fits this scenario, so that I can have
the .NET2.0 server publish new updates, send events to the subscribes
(the linux servers endpoint), which in turn will update the data on
their MySQL servers. What's the possible way to implement that? I'm
not asking someone to design it for me, I just want to be pointed into
the right technology-direction, I have the following solutions in
mind, let me know if I'm right or not:

1. use WS-Eventing: the .NET2.0 server publishes, and Apache Axis
webservices on each Linux client will subscribe to it.
2. Have JMS clients the Linux machines subscribe to a channel created
somehow by the .NET2.0 endpoint (is that possible?). The .NET2.0
service will send messages to all subscribers.



Thanks a lot,



.



Relevant Pages

  • Re: Architectural feedback
    ... Create your smart clients as std winforms apps using c# or VB. ... will call web services server to get lists, updates, etc. ... Most functionality will be accessed from our ...
    (microsoft.public.dotnet.general)
  • Re: Windows Authentication, Single sign on and Active Directory
    ... your web server is probably a workgroup mode machine. ... Co-author of "The .NET Developer's Guide to Directory Services ... web service proxy client fails to connect due to authentication failure ... Windows authentication on the web services. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to return a user-defined data type object from a webservice?
    ... your client ... object coming from the server via the web service is in a different ... John Saunders | MVP - Windows Server System - Connected System Developer ... It's just not how Web Services works. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Windows Authentication, Single sign on and Active Directory
    ... web service proxy client fails to connect due to authentication failure ... the web services anyway, as it is generally important to protect any ... web server is also a member of the domain). ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Designing .NET applications
    ... I prefer logic assembly in a server. ... Imagine, you develop an object-oriented application, and business components ... Because I think that web services doesn't keep data: ... >> same client or business layer is running in the server, ...
    (microsoft.public.dotnet.distributed_apps)

Loading