[英]Mobilefirst Studio and Bluemix
i want to ask a question concerning the integration between Bluemix platform and mobilefirst studio on my local environment. 我想问一个有关我本地环境中Bluemix平台与mobilefirst Studio之间集成的问题。 First i did all the steps in the following link:
首先,我做了以下链接中的所有步骤:
http://mbaas-gettingstarted.ng.bluemix.net/hybrid http://mbaas-gettingstarted.ng.bluemix.net/hybrid
After i followed the steps i did this in my main.js
file 在按照步骤操作之后,我在
main.js
文件中执行了main.js
操作
var ibmbluemix,ibmpush;
var values = {
applicationId: "7ecb984c-43e5-4dcab2a0-76aca303ba6d",
applicationRoute: "http://ibm-banktrial2.mybluemix.net"
};
function initPush() {
ibmbluemix=IBMBluemix.hybrid;
ibmpush = IBMPush.hybrid;
ibmbluemix.initialize(values);
}
and then i tried running the application on the android simulator and it's fine no errors happen. 然后我尝试在android模拟器上运行该应用程序,这很好,没有错误发生。
what i want to do now, is that i want this application not to be locally deployed i want it deployed on bluemix, and i want to access the services for this ibm-banktrial2 app on ibmbluemix platform, it contains a service called "Business rules" and it has a rest API that i can't deal with through mobilefirst in the main.js and i couldn't find any useful links. 我现在想做的是,我希望此应用程序不在本地部署,我希望将其部署在bluemix上,并且我想在ibmbluemix平台上访问此ibm-banktrial2应用程序的服务,它包含一个名为“业务规则”的服务。 ”,它具有一个剩余的API,我无法通过main.js中的mobilefirst进行处理,也找不到任何有用的链接。
PS: i made the business rules service instance and i made the rules through eclipse with the plugin for business rules and i deployed it. PS:我制作了业务规则服务实例,并通过带有业务规则插件的eclipse制定了规则,并进行了部署。 what i want is to validate an application request from mobilefirst to access this business rules service which contains the rules for validating a bankloan.
我想要的是验证来自mobilefirst的应用程序请求以访问此业务规则服务,其中包含用于验证银行贷款的规则。
final note: i understood nothing from the following link: http://www-01.ibm.com/support/knowledgecenter/SSQP76_8.7.0/com.ibm.odm.dserver.rules.ref.res/html/restapi/html/index.html 最后的说明:我从以下链接一无所知: http : //www-01.ibm.com/support/knowledgecenter/SSQP76_8.7.0/com.ibm.odm.dserver.rules.ref.res/html/restapi/html /index.html
If I am understanding you correctly you want the application to run on Bluemix? 如果我正确理解您的要求,那么您希望该应用程序在Bluemix上运行吗? It looks like you are running a hybrid app.
您似乎正在运行混合应用程序。 The code you have above runs locally on the mobile device.
您上面的代码在移动设备上本地运行。 Since you are running a hybrid app you can not run the above code on Bluemix.
由于您正在运行混合应用程序,因此无法在Bluemix上运行以上代码。 Bluemix in this case provides a backend for your app.
在这种情况下,Bluemix为您的应用程序提供了一个后端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.