473,503 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET & Java Publish-Subscribe pattern

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,

Jun 5 '07 #1
3 4345
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/pro...w/default.mspx

Hope this helps,
Steve

"Ludwig Wittgenstein" <se********@hotmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
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,

Jun 5 '07 #2
@PlatinumBay

I wish I can use MS SQL server! the main problem is that the clients
are running MySQL on Linux! Any other ideas?

On Jun 5, 1:08 am, "PlatinumBay" <stevan...@community.nospamwrote:
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/sqlser...06/evaluate/ov...

Hope this helps,

Steve

"Ludwig Wittgenstein" <sender_...@hotmail.comwrote in message

news:11**********************@g4g2000hsf.googlegro ups.com...
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,

Jun 5 '07 #3
Ludwig,

Here are some links I found which may help you:

http://forums.mysql.com/read.php?60,155547,155547
The poster is using linked servers on the SQL Server and the MySQL ODBC
driver.

http://lists.mysql.com/myodbc/9221

Hope this helps,
Steve
"Ludwig Wittgenstein" <se********@hotmail.comwrote in message
news:11*********************@k79g2000hse.googlegro ups.com...
@PlatinumBay

I wish I can use MS SQL server! the main problem is that the clients
are running MySQL on Linux! Any other ideas?

On Jun 5, 1:08 am, "PlatinumBay" <stevan...@community.nospamwrote:
>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/sqlser...06/evaluate/ov...

Hope this helps,

Steve

"Ludwig Wittgenstein" <sender_...@hotmail.comwrote in message

news:11**********************@g4g2000hsf.googlegr oups.com...
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,


Jun 6 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

73
7900
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
3
1368
by: anthony hornby | last post by:
Hi, I am starting my honours degree project and part of it is going to be manipulating ASCII encoded XML files from a legacy database and converting them to Unicode and doing text processing stuff...
9
8525
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
0
1473
by: Chad A. Beckner | last post by:
I am starting to work on implementing ASP.NET (using VS.NET Dev 2003) into our current ASP 3.0 intranet setup. We have several (say 15 - 20) "applications" that are run within our intranet, which...
27
3800
by: Daniel Vallstrom | last post by:
I'm having problems with inconsistent floating point behavior resulting in e.g. assert( x > 0.0 && putchar('\n') && x == 0.0 ); holding. (Actually, my problem is the dual one where I get...
2
1502
by: Douglas J. Badin | last post by:
I am using VS 2005 to Publish my ASP.NET 2.0 Website with the following: - Not allowing this precompiled site to be updatable - Use fixed naming and single page assemblies - Not Enable strong...
0
3158
by: Felix | last post by:
Ok, I've had this issues since yesterday and I cannot figure out what's causing it. Basically, I have a Visual Studio 2005 Web Service. The service runs completely find on my local development...
14
5907
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
5
2390
by: omri | last post by:
Hi everyody, i have a complex problem (kind of urgent). i wrote a website in asp.net 2.0, one of the classes execute a java class (which is the steady part of the project ) by the way i'm doing...
0
1505
by: dtsearch | last post by:
A new beta build offers 64-bit developer access to dtSearch's "terabyte indexer," and preliminary MS Word 2007 and Excel 2007 support (in both 64-bit and 32-bit versions) BETHESDA, MD (July 22,...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.