-
April 9th, 2013, 05:12 AM
#1
setting up multiple data adapter with 1 lightstreamer server
I have 2 data adapters connecting to 1 lightstreamer server on a machine. I am using .net adapter SDK.
In adapters.xml I have 2 data_provider with different id
<data_provider id="ProductIds">
<data_provider id="ProductPrices">
the 2 data adapters talking to lightstreamer with 1 on notify stream port 6664 and one on notify stream on port 8888. I got the following exception on second data adapter
Lightstreamer.DotNet.Server.RemotingException: Exception caught while writing on the notify stream: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at Lightstreamer.DotNet.Server.RequestReply.NotifySen der.Run() in c:\LIGHTSTREAMER\PROJECT_Lightstreamer_3_Remote_Ad apter_1\DotNetAdapter\Source\RequestReply.cs:line 208
--- End of inner exception stack trace ---
System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at Lightstreamer.DotNet.Server.RequestReply.NotifySen der.Run() in c:\LIGHTSTREAMER\PROJECT_Lightstreamer_3_Remote_Ad apter_1\DotNetAdapter\Source\RequestReply.cs:line 208
System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
what's wrong here? did I not set adapters.xml correctly? if not, what is the correct way to set it?
however, it seems like the second data adapter was able to send Item Event to lightstreamer server. I use the following method for updating
void Update(string itemName, IDictionary itemEvent, bool isSnapshot);
my question here is:
for items subscribed to lightstreamer server with data adapter id "ProductIds", I actually update it on data adapter with id "ProductPrices", will that subscribed item being notified by lightstreamer server?
thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:07 PM.
Bookmarks