- Joined
- Jun 18, 2007
- Messages
- 65,824
- Likes received
- 32,654
- Thanks received
- 10,042
- Location
- Your local branch
This is a piece of cake in Silverlight and WCF.
Yes, I've heard that networking stuff is really easy with MS technologies

This is a piece of cake in Silverlight and WCF.

Flex makes the socket thing very easy on the client side; how do sockets fit into the WCF framework? And how do you integrate WCF & ASP.net into a single app? I don't plan to go the MS route, but it's always interesting to learn for the future.This is a piece of cake in Silverlight and WCF.
Only problem then is don't they have to 'communicate' through a DB which is hardly the best thing performance-wise? Or is there a neat way to let two apps communicate efficiently? I mean if both apps are running on the same JVM instance they can do this, but that seems just as much a hack as spawning threads from a servlet.I would be very hesitant to create a thread that controls sockets in that way, you should really create 2 applications.
Hmm, let me simplify a little. I'm aware that Flash can use sockets directly but let's forget the client part totally.
Now the question is simply, how do you have a Java web-server (probably Spring) which can maintain open socket connections to multiple clients as well as doing more traditional HTTPRequest/response handling through servlet/JSP type architecture?
I guess my confusion is partly over the fact a servlet-based app, especially using SpringMVC, has no entry-point in the traditional sense... no main() in which you can set up non-webserver functionality.
I could have two distinct apps, a webserver and a socket app... but that's not ideal. When sockets are not available, it's likely a web-service or AJAX might be used as a fall-back so conceptually the same app should provide servlet, web-service and socket based communications for different clients.
Flex makes the socket thing very easy on the client side; how do sockets fit into the WCF framework? And how do you integrate WCF & ASP.net into a single app? I don't plan to go the MS route, but it's always interesting to learn for the future.
