Monthly Archives: July 2015

How to add your custom domain to your Bluemix app

When you want to deploy your app to the real world a mybluemix.net adress might not be the best you probably want your own domain added. Fortunately this is very simple to do with Bluemix.

screen510

Click on the settings icon in the top right corner on your Bluemix Dashboard and select Edit Routes and App Access.

screen511

Click on Manage Domains

screen512

Click on Add Domain

screen514

Write your custom Domain name and press Save

screen515

an upload SSL Certificate appears and if you want to accept SSL to you application, you need to upload a certificate to your application.

screen516

Add your CRT file i the Certificate file upload control and your Key File and password in the next two fields. And press Upload.

Now you are almost done.

Go back to the first screen

screen511

your new domain will now show up as an option instead of mybluemix.net

There are several options too create a SSL cert but for test purposes I use https://www.startssl.com/ it’s a great way to create a free SSL cert or your can get a great price from Digicert that I use for all my professional certs

Is it possible to kill a XPage for Bluemix instance if it’s gone none responsive

I have seen more than once both of own and other developer experience that a loop in XPages gone bad and you have to kill the server. How can this kind of behavior be fixed in XPages for Bluemix will the dashboard work to “kill” the server?

See the answer

Also see my XPages for Bluemix the questions post lot’s of questions is updated with answers

XPages for Bluemix – The questions

When I started to try out XPages for Bluemix I started to create a list of questions for the future because this is in Beta and between now and Gold release some of this questions would be good to have an answer on.

  • What release cycle could we expect to get for the XPages runtime, in relation of getting new versions of extension library and functionality – Answered a monthly release cycle or synced with openntf extension library upgrades
  • Is it possible to install your own OSGI plugins like Debug Toolbar or the OpenNTF Domino API Answer Yes probably already in the next release
  • How do we run scheduled code that we have runned in agents before – Not at this point but the possibility could be there in a future release Answer
  • How to handle Users/Groups/Roles partial answerGroups is not supported and you are limited to 6 web users in the experimental version of XPages for bluemix
  • How to register users thru code, integrate with LDAP, SAMLNot at this point  partial answer
  • How to control JVM Security
  • How to do an automated XPage build process – Could could add git to a Bluemix project and deploy your code the git See post perhaps we will see a ODP git push to Bluemix in the future that would be great. 
  • How to use other Bluemix Services with XPages Answer Answer2
  • How to package an XPage for Bluemix solution as a temple for multi service deployment
  • can a XPages application be run inside a Docker container
  • How does XPages in Bluemix scale – Answer and a very good one
  • Is the database

I will probably get more questions and will then update this post. I will also add any answers I get to this post. If you know any answer please comment.

XPages on Bluemix a first look deploying app

On friday the XPages runtime on Bluemix was released and also the new version of OpenNTF Extension library that enables to work with.

My first impression is that it works great I haven’t had time to do any deep diving into the new possibilities but I thought I should share as long as I have tried it.

To get it to work you need a bluemix account and install the latest extlib into you designer client when you done that you will get a new entry in your preference in the designer.

screen485

I have selected the US South (Don’t know if the XPage engine is deployed in the UK site) write your user name and password and Test Connection

if this is ok your designer is connected to Bluemix

Go to bluemix and setup an XPage Starter app when you have logged in to Bluemix you need to go to catalog and at the bottom click on Bluemix Labs Catalog

screen478

inside this beta catalog you will find the XPage Bluemix engine and also a web starter application click on this entry.

screen480

Fill out an name for you app at the lefthand side and press Create

screen481

Your started application is now being setuped and the next step is to download the webstarter app, I actually don’t know if you need the Bluemix commandline tool and I haven’t been able to download it and had it from before so I couldn’t test with out it, but try without it and let me know.

Snap12

When you have downloaded the starter code go to designer and in the tools menu

screen487

This will start a wizard when you need to specify a path to a bluemix staging area, this area should not be in the client data folder and connect to the bluemix app area.

To deploy your code to bluemix you need to right click on the database and select deploy application remember to sign your database before doing this if you have multiple signers in the application.

screen491

The deployment will take very long time and if you check the Bluemix the application will show as started but it’s not. This might hopefully be improved with better status updates in future releases.

This will add the design database if you want to connect to the data nsf you need to go into Bluemix and download a notes id and connect you will find this information below services in the Bluemix dashboard.

screen492

It seams like the backend data store for the Bluemix is a Linux Domino server because if you browse it you will find regular databases in the root of the server. It will be interesting to see any performance data from the Bluemix setup.

Also read my XPages for Bluemix the questions

Xpages on Bluemix

Finally did the beta arrive and I wasn’t dissapointed. Setting up the web start app was very simple, a few minor things but no error.

  • Deployment takes very long and the bluemix dashboard log says started but overall status say not started. Should say starting
  • Before deploying remember to sign databas otherwise you will get an error
  • You need to manually setup connection to backend database.

But overall great first release will be fun to see what the future will give us.