Search code examples
java.netazureappfabric

Java client for AppFabric Cache?


Is there any java library available to use Windows Azure AppFabric Caching features?

I want to put some string in the AppFabric cache from a java application and retrieve it from a .Net application (and the other way around too).

AppFabric SDK for Java Developers provides classes to access AppFabric Access Control and Service Bus, but it doesn't provide classes to access Caching features.

Thanks in advance


Solution

  • I think you've got two options here:-

    1. Reproduce in java, from a client perspective the mechanism that the appfabric client uses to interact with the cache cluster. You'll need to sniff out the tcp messages that the appfabric client wcf creates and reproduce them.
    2. Expose a mechanism from your ASP.NET app that wraps the call to the .net AppFabric client and make your Java app call the wrapper. The wrapper could expose a SOAP or restful interface - you could provide CRUD cache methods.

    If I were you I'd, do the latter. I think it'd be faster to implement and easier to test.