通过 JPA 的 Salesforce 的 Database.com 和 Google App Engine

发布于 2024-12-08 21:01:07 字数 845 浏览 5 评论 0原文

目前,我尝试连接(通过 JPA/Datanucleus)由 Google App Engine 托管的应用程序到 database.com (Salesforce) 的数据库服务

经过多个小时的阅读和尝试,我找不到任何解决方案。

那么,有可能吗?

一些信息.... Database.com提供JPA: http://forcedotcom.github.com/java-sdk/jpa -provider,但我在这一边找不到任何sdk,但我发现了一个由 grepcode http://grepcode. com/snapshot/repo1.maven.org/maven2/com.force.sdk/force-jpa/22.0.7-BETA/ - 可能在那里目前还没有正式发布...

问题是Salesforce的这个SDK需要datanucleus 2.0,但Google App Engine仅包含datanucleus 1.1.5。所以我尝试更新这些库并发现了这个.... code.google.com/p/datanucleus-appengine/ 。我尝试了几个小时来替换旧的库并使用较新的库,但没有成功。错误是 eclipse 找不到一些库,因为上面提供的较新的库具有不同的包结构 -

我很感谢任何帮助...

Kotake

Currently i try to connect (via JPA/Datanucleus) with an application, hosted by Google App Engine, to the database service of database.com (Salesforce)

After many hours of reading and trying, i could not find any solution.

So, is it even possible??

Some Information....
Database.com provides JPA: http://forcedotcom.github.com/java-sdk/jpa-provider, but i could not found any sdk on this side, but i found a jar-file hosted by grepcode http://grepcode.com/snapshot/repo1.maven.org/maven2/com.force.sdk/force-jpa/22.0.7-BETA/ - Possibly there is currently no official release ...

The problem is that this SDK from Salesforce needs datanucleus 2.0, but Google App Engine includes only datanucleus 1.1.5. So i try to update theses libaries and found this.... code.google.com/p/datanucleus-appengine/ . I tried a few hours to replace the old libaries and to use the newer, but unsuccessfully. The error was that eclipse could not find some libaries, because the newer libaries, provided by the side above, have different package structure -

I am thankful for any help...

Kotake

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

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

发布评论

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

评论(3

满身野味 2024-12-15 21:01:07

JPA 提供程序的官方版本可在 Maven Central 上找到:
http://search.maven.org/remotecontent?filepath=com/force/sdk/force-jpa/22.0.7-BETA/force-jpa-22.0.7-BETA.jar

外部连接限制不会成为限制因素,因为 JPA 适配器使用 SOAP API 通过 https 连接到 Database.com。

我无法谈论在 GAE 上运行 DN 2.0 所面临的挑战。也许 GAE 支持可以帮助解决这个问题?

The official release of the JPA provider is available on Maven Central:
http://search.maven.org/remotecontent?filepath=com/force/sdk/force-jpa/22.0.7-BETA/force-jpa-22.0.7-BETA.jar

The external connection restriction won't be a limiting factor because the JPA adapter connects to Database.com over https using a SOAP API.

I can't speak to the challenges around getting DN 2.0 running on GAE. Perhaps GAE support can help with that?

左秋 2024-12-15 21:01:07

正如 App Engine 文档中所述,您无法直接从 GAE 到外部服务器的连接(通过 http 或 https 使用应用引擎特定 URL API 除外)。您将需要找到其他方法来从远程数据库中获取数据。

As stated here in the App Engine docs, you cannot make direct connections to external servers from GAE (except over http or https using the app engine specific url APIs). You will need to find some other way to get data out of your remote database.

清风无影 2024-12-15 21:01:07

此链接描述了如何解决您的问题:

如何在 Google APP Engine 上使用 Force.com Database SDK

(他更新了 Saleforce SDK 源代码,使其可以在 GAE 上正常工作。)

This link describes how to solve your problem:

How to use Force.com Database SDK on Google APP Engine

(He has updated the Saleforce SDK source code to allow it to work without problem on GAE.)

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