简体   繁体   English

Bluemix上的MobileFirst JavaAdapter

[英]MobileFirst JavaAdapter on Bluemix

Recently, I have registered on IBM Bluemix. 最近,我已经在IBM Bluemix上注册。 I've created a Mobile Foundation Service which also creates a Container. 我创建了一个移动基金会服务,该服务还创建了一个容器。

I started a new MobileFirst Project on Eclipse and deployed a JavaAdapter. 我在Eclipse上启动了一个新的MobileFirst项目,并部署了JavaAdapter。 The adapter works fine in my machine, and the endpoint url is http://localhost:10080/ {My project name}/adapters/{My adapter name}. 该适配器在我的机器上可以正常工作,并且端点URL为http:// localhost:10080 / {我的项目名称} / adapters / {我的适配器名称}。

I went to the mfpconsole of the Mobile Foundation Service (where the url is like {my custom name}.bluemix.net/mfpconsole and uploaded the same adapter. 我去了Mobile Foundation Service的mfpconsole(其中的URL类似于{我的自定义名称} .bluemix.net / mfpconsole,并上传了相同的适配器。

My question is: What is the endpoint url where I can find my adapter? 我的问题是:在哪里可以找到我的适配器的端点URL?

I see in this documentation:( https://www.ibm.com/support/knowledgecenter/SSHSCD_7.1.0/com.ibm.worklight.dev.doc/devref/c_adapters_endpoint.html ) that there's a "Context," but I don't know where to find this "Context" name. 我在此文档中看到:( https://www.ibm.com/support/knowledgecenter/SSHSCD_7.1.0/com.ibm.worklight.dev.doc/devref/c_adapters_endpoint.html )有一个“上下文”,但是我不知道在哪里可以找到此“上下文”名称。 I received the message "Context Root not found." 我收到消息“找不到上下文根”。

Thanks in advance! 提前致谢!

You can go into your adapter in the console and view the swagger docs (View Swagger Docs). 您可以在控制台中进入适配器并查看swagger文档(查看Swagger文档)。

在此处输入图片说明

In addition to what Dora wrote, please note that you're using Mobile Foundation service, which is based on MobileFirst Foundation 8.0, but creating Java adapters in MobileFirst Foundation 7.1 除了Dora编写的内容外,请注意,您正在使用基于MobileFirst Foundation 8.0的Mobile Foundation服务,但在MobileFirst Foundation 7.1中创建Java适配器。

You may be able to deploy these adapters, but you will quickly find out that things have changed dramatically. 您也许可以部署这些适配器,但是您会很快发现情况已经发生了巨大变化。

I suggest that you will follow the v8.0 documentation, including how to create adapters for v8.0: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/ 我建议您遵循v8.0文档,包括如何为v8.0创建适配器: https : //mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM