ibm-mobilefirst

How do I use Dojo inside of Worklight correctly?

北城以北 提交于 2019-12-06 13:45:50
问题 I need some help as well as some advice on how to use Dojo correctly in my project. At the moment, this is what I'm doing: Say I setup a project named 'Test'. Test.html is the first file hit, and in that file I have the following: <script type="text/javascript" data-dojo-config="isDebug: false, async: true, parseOnLoad: true" src="dojo/dojo.js"></script> <script type="text/javascript" src="dojo/core-web-layer.js"></script> <script type="text/javascript" src="dojo/mobile-ui-layer.js"></script>

How can I trace Operational Analytics in MobileFirst Platform 6.3 to determine why data is being lost?

ε祈祈猫儿з 提交于 2019-12-06 13:21:42
问题 I'm working in a scenario where we are trying to get Operational Analytics working within an MFP 6.3 environment. There is a MobileFirst client application (hybrid, if it matters), a MFP 6.3 server, and an Operational Analytics server (the system is for dev/test only, so is lightly loaded, and no uptime/performance concerns exist). Currently, we are seeing intermittent problems, where data sometimes appears in the Operational Analytics console on adapter invocations etc., and then for some

IBM Worklight Server 6.2 - Running on Apache Tomcat? “Timeout while waiting for the management service to start up”

二次信任 提交于 2019-12-06 13:20:52
I've been trying to setup an IBM Worklight environment. I want to use: Windows Server Apache Tomcat 7 (latest at the time of writing) IBM Worklight 6.2 (latest at the time of writing) MySQL Server 5.6 (latest at the time of writing) Everything seems to be working OK. I've setup Tomcat (default configuration), MySQL (default configuration). Then I continued setting up IBM Worklight. I pointed to the Tomcat installation directory, put in the MySQL Connector/J jar file, etc etc. I left virtually everything default. Upon completion, I deployed an app. The app was made with Eclipse, using the IBM

Using jax-ws in MobileFirst server (Liberty server)

拟墨画扇 提交于 2019-12-06 12:51:20
问题 We are trying to access SOAP 1.1 Web services from a Java JAX-RS adapter. We are using a SOAP Client that has been generated from our WSDL. But when unmarshalling soap fault we get the following exception: ... Caused by: java.lang.ExceptionInInitializerError at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:107) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke

How To Calling a Stored Procedure in Worklight

牧云@^-^@ 提交于 2019-12-06 12:45:58
问题 I have just started working on IBM Worklight. I ran a SQL Adapter , in which it uses the procedure to fetch data from database and displays in JSON format.But I want to use that stored procedure in my HTML file regarding to display records in my frontend UI. please provide me any suggestion. 回答1: Once you have written and tested your adapter you can invoke the adapter from an application using this syntax: function getData() { var invocationData = { adapter : 'ADAPTER_NAME', procedure :

Worklight: multiple security realms

依然范特西╮ 提交于 2019-12-06 11:47:38
I want to know can we have multiple security tests defined in the authenticationconfig.xml file? Will it work fine, or cause problems? Sort of like this: <securityTests> <mobileSecurityTest name="myMobileSecurity"> <testUser realm="myAppRealm"/> <testDeviceId provisioningType="none"/> </mobileSecurityTest> <customSecurityTest name="PushApplication-custom-securityTest"> <test realm="PushAppRealm" isInternalUserID="true" /> </customSecurityTest> <customSecurityTest name="myAppSecurityTestCustom"> <test realm="myAppRealm" isInternalUserID="true" /> </customSecurityTest> </securityTests> <realms>

Unable to build adapters using profiles and properties in Maven

为君一笑 提交于 2019-12-06 09:55:13
问题 I have created an http adapter using mfpdev adapter create but I found out the adatper.xml configuration file contains server connection configuration which I would like to change accordingly to dev,test,produciton environment. So I tried to use maven resource filter by changing the pom.xml as following pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org

How to tell app was started by tapping push message notification

与世无争的帅哥 提交于 2019-12-06 09:55:06
I have a Worklight app that receives push notifications from the server. A notification means there are new messages for the current user from other users. A user would read them by visiting a messages page within the app and then proceeding to a particular conversation page. I would like to differentiate in the code between user intentions. The app would: If the user started the app normally (not by tapping a new notification), present the user with the regular app home screen. If the user started/resumed the app by tapping a notification, present the user with the messages page. If received

IBM Worklight session control with back-end server

我怕爱的太早我们不能终老 提交于 2019-12-06 09:00:55
Got a question on IBM worklight server, thanks in advance for any comments on this subject. Workflow: User --> WorkLight Server --> Back-end Server Scenario: (1) Designed a mobile application with IBM worklight studio and deployed to worklight server. (2) Must use worklight server for the first entry point (user authentication by LDAP via worklight server) (3) This mobile application designed for downloading/uploading huge file size (10mb to 1gb) to the backend server behind the worklight server (refer to the workflow pls.) Question(s): (1) How session sharing can be done in between worklight

Worklight Console redirects to port 9080

可紊 提交于 2019-12-06 08:07:26
I am using Websphere Liberty 8.5.5 with IBM HTTP Server 8.5.5 and Worklight Server 6.0.0.1. I have configured IHS to redirect port 80 to Websphere port 9080. The redirection works properly for the front page , and entering domain.com/worklight/console directly opens domain.com:9080/worklight/console page. However, when I provide the credentials and click Login, the address bar changes to domain.com:9080/worklight/console page which should not happen as port 9080 is blocked over the firewall. I have applied the solutions given in this question " Mixed Port Numbers " but still the problem