IBM Worklight - Deploy all adapters at once - ibm-mobilefirst

I have total 35 (and increasing) Worklight Adapters in my Worklight Hybrid App.
Now every time I power on my Mac, I need to deploy all those work light adapters ONE-BY-ONE
Is there any method by which I can deploy awl the adapters in single shot. As of now, I am unable to find out the way.
Anyone else faced the similar problem?
I am using:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 2
Build id: 20130225-0426
If that matters.

A Deploy All Adapters action is not available in Worklight Studio, but sounds like a rather useful feature for cases like yours. Feel free to submit a feature request.
After you power on the computer, open Eclipse and start the Worklight Development Server, and then visit Worklight Console, the apps and adapters are not available? I find it highly unlikely that you will need to re-deploy all of your adapters...
A possible workaround for it will be to enhance the Ant script that deploys apps and adapters, to deploy them all using a loop. Also see:
Ant tasks for building and deploying applications and adapters

Related

MobileFirst 7.1 - MobileWebApp and DesktopBrowserApp Environment

We are using MobileFirst 7.1.0.0-MFPF-IF201703150904 version. We have built a hybrid mobile application for iPhone and Android. In the backend, we have all Java Adapters.
Recently we have decided to extend the scope and add MobileWeb and DesktopBrowser Application. To achieve that I have created the new environment in eclipse studio and tried to test the new environments. I found this error "errorMsg":"Unsupported environment"
I found this article where the same issue is discussed. The article states a workaround would be to use JavaScript adapters.
My question is how can we create these environments now, we only have Java adapters in the backend. Do we need to replicate all the adapters in JavaScript? Is there any other way to achieve this?

Enabling Minification/Concatenation on 6.3 version of MobileFirst CLI?

We are trying to enable the Minficiation/Concatenation feature in MobileFirst 6.3 via the command line for use in our build servers. However, we cannot find the correct options to select to get it do that task.
We have been able to successfully perform this task using the IDE, but this is not a viable option with the build server. We are using identical build-settings.xml files between the Eclipse IDE build and the CLI build.
I have heard that there is a method for accomplishing this through editing the ANT script of the CLI. Does anyone know where this is located in the CLI, and how I would go about doing this?
The optimization feature that enables minification and/or concatenation in Hybrid applications is not available in the MobileFirst 6.3 CLI tool - only in MobileFirst Studio.
This is, however, possible using the MobileFirst CLI tool in v7.0. You can find the user documentation for this feature here: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.dev.doc/dev/c_optimize_app_cli.html

Can IBM Worklight Mobile build faster

Currently I am using Eclipse. Can I use another IDE or a customized configuration for Eclipse to build for my project faster? I want to increase my production time.
Worklight 6.2 and above provide a command line interface which you can use instead of Eclipse.
With some development effort you could also take the CLI and hook it to other IDEs that provide pluggability options.
You can read more about the CLI, here:
For Worklight 6.2: Command Line Interface for IBM Worklight Developers
For MobilFirst 6.3 and above: Using CLI to create, build, and manage MobileFirst project artifacts

Adding worklight adapter programmatically

I am creating application which should be plugin upgradable.
Problem is that every plugin should consist of some client code and there should also be some sort of adapter which will fetch data to application from 3rd party site/api/... So my problem is how do I add new adapter to server programmatically when someone deploy new plugin?? Is it possible? Or is there better architectonic approach?
Using Worklight Studio (plug-in for Eclipse), you cannot programmatically add adapters.
If you are using Worklight 6.2, you can explore the newly released Worklight CLI, which is a command line interface to create projects, applications, adapters, environments, etc... perhaps you could devise a way to intergrate this into a build a system of your own that will fit your needs.
Training module: Using CLI to create, build, and manage Worklight project artifacts
User documentation: Command Line Interface for IBM Worklight Developers

IDE for websphere/jython

I would like to develop administrative jython-scripts for WebSphere 7. Is there any IDE (or may be plugins for eclipse) which provides code auto-completition functions, ability to start/stop server, debug jython scripts? I know that there is the Application Server Toolkit 6.1 but it is for WebSphere 6.1 and couldn't be applied to WebSphere 7.
In WAS 7, "IBM Rational Application Developer Assembly and Deploy V7.5" has replaced the AST. "IBM Rational Application Developer V7.5 for WebSphere" is a superset of "IBM Rational Application Developer Assembly and Deploy V7.5". Both ship with your copy of WAS, but the license for RAD is just a trial one, while the license for the assembly and deploy tool does not expire. See:
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/catk_assemblytools.html
Either should allow you to create/debug Jython/wsadmin scripts.
As for Python/Jython there is PyDev Eclipse plugin.
I got frustrated with Jython Wsadmin myself. I built a tool that uses a Groovy-DSL for my configuration:
Datasource
JdbcProvider
SIB, JmsQueue, Top
ActivationSpec
etc.
You can add it as a project dependency in IntelliJ and you got completion and inspection. You will be able to step through the script with a Debugger as in a regular Java program. I didn't test the start/stop server functionality, though.
I went as far as to make it useful for my purpose, pull requests welcome:
https://github.com/revaultch/wsadmin-groovy