AppFabric 缓存的 Java 客户端?

发布于 2024-12-19 12:30:43 字数 682 浏览 2 评论 0 原文

是否有任何 Java 库可用于使用 Windows Azure AppFabric 缓存 功能?

我想将一些字符串从 java 应用程序放入 AppFabric 缓存中,并从 .Net 应用程序中检索它(反之亦然)。

面向 Java 开发人员的 AppFabric SDK 提供了用于访问 AppFabric 访问控制服务总线,但它不提供访问的类缓存功能。

提前致谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

葮薆情 2024-12-26 12:30:43

我认为您在这里有两个选择: -

  1. 从客户端角度,在 java 中重现 appfabric 客户端用于与缓存集群交互的机制。您需要嗅出 appfabric 客户端 wcf 创建的 tcp 消息并重现它们。
  2. 从 ASP.NET 应用程序公开一种机制,该机制将调用包装到 .net AppFabric 客户端,并使您的 Java 应用程序调用包装器。包装器可以公开 SOAP 或 Restful 接口 - 您可以提供 CRUD 缓存方法。

如果我是你,我会选择后者。我认为实施起来会更快,测试也更容易。

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.

GRAY°灰色天空 2024-12-26 12:30:43

由于 tcp 传输和序列化(在 java 中反序列化......),似乎不可能有本机客户端。使用 basicHttpBinding 的 WCF 服务可以解决您的问题。问题是需要单独的托管,并且速度不如 AppFabric 本机客户端。

Seems to be impossible to have a native client because of tcp transport and serialization (deserializing in java ...). A WCF service using a basicHttpBinding can solve your problem. The problem is that is will need a separate hosting and it will not as fast as AppFabric native client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文