IBM Bluemix preview

IBM Bluemix is the next generation cloud platform based on Open Cloud Architecture and Cloud Foundry.

What actually is IBM Bluemix?

Bluemix is an implementation of IBM’s Open Cloud Architecture, leveraging Cloud Foundry to enable developers to rapidly build, deploy, and manage their cloud applications, while tapping a growing ecosystem of available services and runtime frameworks. IBM will provide services and runtimes into the ecosystem based on our extensive software portfolio.

Reference: http://www-01.ibm.com/software/ebusiness/jstart/bluemix/

IBM Bluemix

IBM Bluemix

IBM Worklight 6.1- Deploy Worklight war file into WebSphere 8.5.5

Previous tutorial I show you how to create a simple worklight app, http://blog.revivalx.com/2014/05/29/simple-app-crud-using-ibm-worklight-6-1/. Then we deploy our worklight app into IBM websphere. You get all the resources regarding to this tutorial here, https://github.com/datomnurdin/CRUD-worklight . Before you can deploy worklight app, you need install your worklight server using IBM Installation Manager.

Reference: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/10_01_Moving_from_development_environment_to_stand-alone_QA_and_production_servers.pdf

IBM Worklight

IBM Worklight

Go to your IBM Websphere console. Mine is https://192.168.1.180:9043/ibm/console. Enter your User ID and Password.

websphere login

websphere login

You will get welcome page like this one.

websphere welcome page

websphere welcome page

Open server tab on left side and click All Servers.

Websphere all server

Websphere all server

Websphere Middleware servers

Websphere Middleware servers

Stop all running server before deploy war file into websphere and click refresh Status to make sure all servers stop running.

Websphere Middleware servers

Websphere Middleware servers

See the result.

Websphere Middleware servers

Websphere Middleware servers

Go to Applications > Application Types > Websphere enterprise applications.

websphere

websphere

Click Install button.

Websphere Enterprise Applications

Websphere Enterprise Applications

Click Choose File button.  Use given war file for this tutorial. https://github.com/datomnurdin/CRUD-worklight/blob/master/bin/CRUD-worklight.war

Preparing for the application installation

Preparing for the application installation

Click Next button.

 Preparing for the application installation


Preparing for the application installation

Select Detailed click Next button.

Preparing for the application installation

Preparing for the application installation

Click Continue button.

Application Security Warnings

Application Security Warnings

Scroll down and click Next button.

Install New Application 1

Install New Application 1

Install New Application 2

Install New Application 2

Select your clusters and servers tick worklight module. Then click Apply button. Mine clusters and servers are server1 and IHSI. After that click Next button to proceed next page.

Install New Application

Install New Application

Click Next button.

Install New Application

Install New Application

Tick CRUD-worklight_war and click Reference shared libraries.

Install New Application

Install New Application

Select WL_PLATFORM_LIB and click Add button.

Enterprise Applications

Enterprise Applications

After selected and click Ok button.

Enterprise Applications

Enterprise Applications

Tick Worklight module and click Reference shared libraries button.

Install New Application

Install New Application

Select WL_PLATFORM_LIB and click Add button.

Enterprise Applications

Enterprise Applications

After selected and click Ok button.

Enterprise Applications

Enterprise Applications

Click Next button.

Install New Application

Install New Application

Click Next button.

Install New Application

Install New Application

Click Next button.

Click Next button.

Click Next button.

Tick on jdbc/WorklightDS Resource Reference. Click Set Multiple JNDI Names and select jdbc/WorklightDS. This process is to assign each resource reference to their own database. 

Install New Application

Install New Application

Do the same process again. This time tick on jdbc/WorklightReportDS Resource Reference. Click Set Multiple JNDI Names and select jdbc/WorklightReportDS.

Install New Application

Install New Application

Click Next button.

Install New Application

Install New Application

Click Next button.

Install New Application

Install New Application

Name your Context Root to /CRUD-worklight and click Next button.

Install New Application

Install New Application

Scroll down and click Next button.

 Install New Application


Install New Application

Install New Application

Install New Application

Click Next button.

Install New Application

Install New Application

Click Next button.

Install New Application

Install New Application

Click Finish button.

Install New Application

Install New Application

Click Save.

Install New Application

Install New Application

You will see that your war file already deployed inside the websphere. Enterprise Applications

Enterprise Applications

Enterprise Applications

Go to server tab and select All servers.

websphere server

websphere server

Select server1 and click start button.

Middleware servers

Middleware servers

Then click refresh status to make sure your server is running. Red colour shows your server stopped and green colour shows it started.

Middleware servers

Middleware servers

Go to Applications tab > Application Types > Websphere enterprise applications.

Websphere enterprise application

Websphere enterprise application

You will see all your applications are running.

 Enterprise Applications

Enterprise Applications

Enter this URL on your browser, mine is http://192.168.1.180:9080/CRUD-worklight.

IP address: http://192.168.1.180

Port number: 9080

Context root: /CRUD-worklight

You will see this page on your browser.

IBM Worklight Console

IBM Worklight Console

Deploy your application or adapter in your IBM worklight console. Use given CRUDWorklight-all.wlapp and USERAdapter.adapter for this tutorial.

CRUDWorklight-all.wlapp: https://github.com/datomnurdin/CRUD-worklight/blob/master/bin/CRUDWorklight-all.wlapp

USERAdapter.adapter: https://github.com/datomnurdin/CRUD-worklight/blob/master/bin/USERAdapter.adapter

github

github

Now you can test your app. If you had any problem regarding to this tutorial, let me know. Enjoy!!

IBM Worklight 6.1 issues

Tonight I got replied from mr Ed regarding to worklight issues. Luckily I follow up him until he respond my email. Even we not in the same timezone, we are able to communicate to each other. These are a list of issues that we faced past 3 months ago. I also post a several of questions here. Even though the problems not solved 100% but as long I got his feedback, it’s so much better than before.

gmail

gmail

1. Are there any tutorials or references to implement SSO on device?
https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.worklight.dev.doc/devref/c_device_single_sign_on.html
https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.worklight.dev.doc/devref/t_configuring_device_SSO.html

2. Are there any tutorials or references to integrate sencha framework into worklight?
We have a starter application at http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/WorklightStarter_Sencha.zip

3. App takes about 30 seconds to launch for the first time on android.
That has been fixed in Worklight 6.1

4. Sometimes why worklight project got this error message, “untracked file differs” after pulling from mercurial?
I don’t know. Seems like a problem with mercurial though.

5. Why worklight wont allow adjustment splash screen duration on iOS and android?
That is a feature we have not yet implemented.

6. Qhich worklight server I need to install? http://www-01.ibm.com/support/docview.wss?uid=swg24035056

If you need the server, search for IBM Worklight 6.1 on Partnerworld Software Access Catalog. Download the entire eAssembly to be sure you get everything you need. You need to install WAS Liberty Profile, the Worklight Server, and DB2 at a minimum.

But if you just want to develop and test, you don’t need a separate server as it is part of Worklight Studio. Follow these directions

http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/01_01_Setting_up_your_Worklight_development_environment.pdf

I hope this post can help anyone for those using this software.

IBM Worklight training – Day 3

Hi, welcome back. I just finished my worklight training today perfectly . There are a lot of things I want to share with you about worklight. Subjects for today that I learned are Apache Cordova, authentication, push notification service and mobile test workbench. Maybe a several of you already heard these kind of terms, but maybe not. But anyway, I will share with you what I gain from my class today.

Apache Cordova is a platform for building native mobile applications using HTML, CSS and JavaScript. Do not confuse between Apache Cordova and Phonegap. PhoneGap is a distribution of Apache Cordova. You can think of Apache Cordova as the engine that powers PhoneGap, similar to how WebKit is the engine that powers Chrome or Safari. Mostly developers think that mobile app that build from Apache Cordova only using Html5, Javascript and css.

apache cordova

apache cordova

History about Apache Cordova is starting from Nitobi. Nitobi is a creator for phonegap. The other codename for phonegap is Apache Cordova. Later Adobe purchase phonegap from Nitobi. After that, phonegap build was created. Then Adobe had an agreement with IBM for worklight. Until now, IBM had a contract with Adobe for phonegap support. They will fix it if any problems or technical issues regarding to phonegap.

If you want the device functionality works with your app, you need to use cordova plugin. If you want to use the cordova plugin, you must had knowledge in pure language device such as Objective-C for iOS, Java for Android and C# for windows phone.  Sadly, phonegap plugin already deprecated. But don’t worry, there are a lots of developers out there work out for cordova plugin. Mostly it’s open source. Maybe you just paid to the developers for support.

Last post I already post about worklight application console. There you can control your app either you want to lock the app, want to notify users through console or set a push notification service. You can read my post about the push notification service here. Besides that, you can set authentication to allow only authenticated users can enter this console. You can read more details about worklight authentication here.

Lastly about mobile test workbench. Mobile test workbench is a tool that can test the hybrid app on your devices. You can download mobile test workbench from eclipse marketplace. Either iOS, android and windows phone. I’m not sure about blackberry because I don’t what is blackberry, haha. Just kidding. This tool only can test your app and generate a report for you, not for analytical. Don’t misunderstanding about it. Testing/reporting tool and analytical tool are slightly differents. Tealeaf is a one of IBM product that can analyze you user’s behaviour, what kind of pages they visit and many more. you can go to IBM information centre if want to know more details about it. The license is different with worklight. But if you already purchased tealeaf so you don’t have to worry about the library, worklight already included for you.

mobile test workbench

mobile test workbench

You can learn about the worklight here. Don’t hesitate to ask me. Enjoy !!

IBM Worklight training – Day 2

I just finished my training for day 2. Not too many questions I need to ask today to trainer because yesterday he already gave me the answers regarding to worklight issues. Maybe you can check the issues here. We just done a few of lab sets that he gave to us yesterday. But mostly trainee not understand about this new technology, even worklight already 2 years running in the market.

You can learn more details about the worklight here. But you must aware, worklight only support in eclipse juno r2. Other than that it’s not working. Even you use android studio or eclipse what so ever, still not working. If you had problem with worklight, during the development phase, don’t hesitate to contact me or send direct email to mr Ed Grossman You can reach his email here, edgross@us.ibm.com.

Our lesson for today was application console and JSON store. Application console which we can control the mobile app from the web browser. You can disable the app, set the push notification and set a notification to users. Compare to non worklight mobile app, the push notification we need to set on each platform. Like iOS, we need to set APNs that stands for Apple Push Notification Service. You can check here.

apple push notifcation service

apple push notifcation service

For android, we need to set linked sender id for push notification. It called GCM, stands for Google Cloud Messaging. For both setup, you need 2 accounts, one account for apple developer another one account for google play in other to access these services. JSON Store, according to IBM information centre, it provides the API for storing JSON data locally, it may be linked to an adapter for data synchronization.

google cloud messaging

google cloud messaging

I thinks it enough for today. If I have a opportunity, I will post a tutorial about how to do CRUD operation using Jquery Mobile. Have a nice day !!