Adapters are the server-side code of applications that are deployed on and serviced by IBM® Worklight Foundation (now IBM MobileFirst Platform Foundation). Adapters connect to enterprise applications (otherwise referred to as back-end systems), deliver data to and from mobile applications, and perform any necessary server-side logic on this data.
Questions tagged [worklight-adapters]
519 questions
12
votes
8 answers
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options
I am using Eclipse plugin "IBM Worklight Developer Edition".
I am trying to debug the adapter procedure code. For that I tried to do some debug configurations but it said Server already running(debug button disabled). So I stopped the server then…

gaurav001
- 167
- 1
- 1
- 8
4
votes
4 answers
IBM Worklight - How to change dynamically domain/hostname to which the adapter connects from the client at launch or runtime?
When configuring WL HTTP Adapters, the domain and port are part of the adapter configuration .xml file build and uploaded on the WL server.
For our use case (especially beta testing and demos) the endpoint server url needs to be configurable for the…

DannySSS
- 57
- 4
4
votes
1 answer
Worklight logout does not clear active user
I am using Worklight 6.1 and am using a challange handler to determine if my user is logged or not.
Once logged in, I have the following code attached to my logout button in my app:
on(logoutBtn, "click", lang.hitch(this, function() {
…

Stijn
- 349
- 1
- 19
4
votes
2 answers
IBM Worklight - Include a JavaScript library on the server side
I'm building a mobile application using IBM Worklight. In an adapter, I need to use some functionality which is provided by a third party JavaScript file. I want to know if it's possible to include such a file on the server? If not, what is the…

Chandrahas
- 93
- 3
4
votes
2 answers
How to implement OAUTH 2.0 in IBM Worklight 6.0
In my app I have implemented Login module auth security by implementing security realms. But i am thinking of implementing a OAUTH2.0 authentication where user will be authenticated once I will get a token and re-validate than on app starts.
So…

Steve
- 385
- 1
- 16
3
votes
1 answer
Cannot access WebService configured on TLS1.2 from Worklight HTTP Adapter
I am trying to access the 3rd party SOAP service(securedSOAPService) from IBM Worklight 6.1 application server through HTTP Adapter.
Following is the configuration of adapter.xml of HTTP Adapter,

sohel shaikh
- 61
- 9
3
votes
1 answer
Session not ending on logout in IBM Worklight Adapter-based Authentication
I downloaded Adapter Based Authentication project from IBM Worklight and in that I found that when I click on Logout button it not Ending up the current session, while on timeout Its session ends up properly. (Note that it ends the session but does…

vshall
- 619
- 7
- 26
3
votes
1 answer
Worklight JSONStore data sync process with server
I have implemented JSONStore sync process as follows:
1.Push the local changes to the server
2.If pushing data is successful then wipe out all existing local data.
3.Load the fresh copy of data from server.
I need to know is this process of data…

Sanket K.
- 197
- 12
3
votes
1 answer
Maven and IBM worklight
Is there's a way I can mavenize IBM Worklight adapters build rather than using ANT ? Benefit i get from this is i need not require to install IBM worklight on my build server as well as for development.
If not maven then do we have any other way to…

user3181690
- 43
- 3
3
votes
1 answer
IBM Worklight - "Could not connect to database" error message
I have been trying to connect MySQL via my SQL adapter but I keep getting the following error:
Could not connect to database. Cannot create PoolableConnectionFactory
(Connection refused. Check that the hostname and port are correct and
that the…

Rahul Singh
- 103
- 1
- 10
3
votes
2 answers
Calling Worklight adapter from external app
I have deployed the adapter on Worklight server and there is some requirement where I am calling worklight adapter from outside as a rest serverice , it is working fine and returning data as required but instead of giving json output it is giving…

vishal_g
- 3,871
- 4
- 21
- 34
3
votes
2 answers
IBM Worklight - Is it possible to call Stored Procedures with the Out parameter?
Is it possible to call a Stored Procedure in Worklight through the WL.Server.invokeSQLStoredProcedure API method that requires an Out parameter?

GDM
- 110
- 6
3
votes
2 answers
How to best Test (Unit Test) WL Adapters independent from WL App? + Jasmine Tests: Cannot use 'in' operator to search for 'SUPPORT_COOKIES' in null
Related to this question:
Uncaught TypeError: Cannot use 'in' operator to search for 'SUPPORT_COOKIES' in null
But different due to Jasmine Test-Tool and the general question about Best-Practices for JS-Java Adapter-Testing.
We are working on…

christianmenkens
- 790
- 4
- 22
3
votes
3 answers
Sharing code between Worklight Adapters
In most cases I've dealt with so far the Worklight Adapter implementation has been pretty trivial, just a few lines of JavaScript.
On the current project, using WL 5.0.6, we have several adapters, each with several procedures. Our particular…

djna
- 54,992
- 14
- 74
- 117
3
votes
5 answers
Worklight http adapter questions
2 simple questions :
Do all http requests make thru http adapter do go thru the worklight server first?
If so then does it mean even a http adapter request to a public web site say a request to yahoo site for a stock price would also go thru…

Tara
- 549
- 2
- 7
- 14