PubSub between Java and .Net - java

Is there a good free service bus for .Net that allows subscriptions from Java clients?
I'm working with NServiceBus and I like the fluent API and the simplicity, but it doesn't support Java clients or WCF integration for web-service based connections.
Thanks!

NServiceBus has builtin WCF support for receiving incoming commands. See the WcfIntegration sample that comes with the NSB download.

NServiceBus is a great tool for pub-sub and is very easy to configure:
http://docs.particular.net/nservicebus/messaging/publish-subscribe/

Related

WCF dual communication with java client

I have to find a way to connect a WCF service to a Java client. I can not change the code of the WCF service and it only offers NetTcpBinding or wsDualHttpBinding
One work-around would be to create a C# communication channel to manage the communication between the service and the client. However I have no experience with C# and I'm sure this will take a long time.
What would be the best way to deal with this? Are there any available communication channels and offer this already?
Thank you in advance!
The problem you have is neither of the bindings offered support non-wcf clients.
I can't see any way you can communicate with this service without as you say put an intermediary service in between.
The perfect candidate for this is WCF Routing protocol bridging - which is exactly what it sounds like - translation of one protocol to another. In this case you are not going between protocols but WCF bindings.
Your solution would have to use basicHttpBinding which ships with WCF and exposes services over soap 1.1.

How does a Swing client communicate with a Java EE backend?

I want to develop a Swing client application that will use a Java EE 6 backend. How does the Swing client communicate with the server? Do I have to make a web service that the communication go through or are there other ways?
There are other ways also in addition to web services.
One very common approach is RMI or Remote Method Invocation. It is a native extension of the Java platform that allows server-side objects to be directly accessible inside client-side code.
If you have no experience with RMI then take a look at the official Java Remote Method Invocation Tutorial
I think this might be a very useful document for you, complete with diagrams to demonstrate the architecture and communication modal.
There are to many communication types:
sockets gives to you the max communication speed.
a little communication overhead, you can use XML / SOAP
(plain)webservices too : fastest to implement. a HTTP GET, POST
RMI: I think is deprecated, but others are using. If you want only with Java backend from Java, you can use it
Yes, you can either create a web service (SOAP or RESTful), but since your client is a java application you can use jndi lookup to call EJB3 beans, it will work through rmi or soap, depending or your configuration. Something like here.

how can I talk to a blazeds endpoint without flash

i would like to reuse my existing blazeds/java/spring apps to write some html 5 clients. Is anyone aware of a pure js (no swf bridge allowed) client that has pub/sub capability
so far my googling has found 2 projects - jsasmf (which uses a tiny swf) and amf.js which is missing pub/sub, but no other projects besides these 2
any ideas (crazy is fine) on how to do this appreciated
cheers
Why not annotate your blazeds service object implementation with jersey annotations to expose it as a rest service. It should be possible to expose the same service through blazeds and rest at the same time. You could use Atmosphere to implement pub/sub
This may be possible with another server. You would consume the service with flash on that server and expose its api with web sockets (for example) to other clients. Your clients would not need flash installed.
Extending on Erik Martino's answer... you could try compiling a Java AMF client to JavaScript yourself using GWT.
Late to the party but is seems Adobe has a JS Client too. I you download the trail of Dataservices ES 4.6 its in the resource folder. A tutorial can be found here

How to connect Exchange Web Services via java web service client?

I am using JWebService framework to connect my Exchange Server 2007. As it is a paid version, I am looking for some open source like JWebService.
Can anyone suggest a good alternative Java API that is free?
Thanks in advance!
You can have a look at http://archive.msdn.microsoft.com/ewsjavaapi and http://sourceforge.net/projects/j-xchange/

Best way to manage asynchronous / push communication with web clients on a Spring based Java server

I need to push events to web clients in a cross-browser manner (iPhone, iPad, Android, IE/FF/Chrome/etc.) from a Spring based Java server. I am using backbone.js on the client side.
To my best knowledge, I can either go with a Web socket only approach, or I can use something like socket.io.
What is the best practice for this issue, and which platform/frameworks should I use?
Thanks
Looks like you're interested in an AJAX Push engine. ICEPush (same group that makes ICEFaces) provides these capabilities, and works with a variety of server- and client-side frameworks. There is also APE.
You can have a look at Lightstreamer.
My company is currently using it to push real time financial data from a web server.
I suppose Grizzly or Netty may fit your needs. Don't have a real experience in that scope, unfortunately.
I'd recommend socket.io as you mentioned in your question, if you're doing browser based eventing from a remote host. Socket.io handles all the connection keep-alives and reconnections directly from javascript and has facilities for channeling messages to specific sessions (users). The real advantage comes from the two-way communication of WebSockets without all the boilerplate code of maintaining the connection.
You will need to do some digging for a java implementation thoughConsider running the server directly from V8.

Categories

Resources