(日本語) 【12月7日開催】ノーツコンソーシアム オープンセミナー 2nd Stage in 九州!IBM Notes Domino V10 新機能紹介 – IBM Championセッションで登壇します
Sorry, this entry is only avai...
XPages on Bluemix has been released as GA on May,2016, and developers can get the environment to develop XPages application easily on the cloud.
XPages code are compiled by “XPages runtime” for XPages on Bluemix.
This “XPages runtime” is just for runtime environment and should not store any data like Notes Document. Therefore XPages developer usually bind the service called “XPages No SQL Database” as the data store.
In fact, this “XPages No SQL Database” is just NSF file and you can store the data and create the view, form, etc.
However this “XPages No SQL Database” service is part of “Bluemix Labs Catalog” so far and according to IBM Japan, this service should not been used as the production environment.
By this blog post, I tried to use on-premise Domino as the data store for XPages on Bluemix.
Of cause it does not need to be on-premise domino, for example domino on SoftLayer is same meaning. This approach just try to access to outside of bluemix as the data store. It seams to be called as Hybrid XPages Application on bluemix.
To run Hybrid XPages application, you need to configure your on-premise domino.
If you’ve already used “XPages No SQL Database” service, you maybe can ealiry imagine this, “/O=Bluemix” is used as Organization on bluemix. so xpages on bluemix cannot access to the on-premise domino without cross-certificate.
So as the first step, you need to create the new server id and then, when you deploy the application to the XPages runtime container of bluemix, you also attach the server id so that XPages on bluemix can communicate the on-premise servers through uploaded server id information.
*Sorry, the screenshot are all in Japanese. I hope you still can understand where and what I explain.
OK, nothing special, just server id has been registered. the Different thing is you don’t need to install domino server by this server id since you only have to pass this server id to the bluemix Xpages runtime.
*Warning 1: Please confirm the server name is contained in “LocalDomainServers” group.
*Warning 2: Please confirm the server which has the access from Bluemix XPages runtime should contains the LocalDomainServers or created server name in Trusted servers field under the server document -> “Security” tab.
That’s all.
I created one sample xpage below:
<?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.data> <xp:dominoView var="view1" databaseName="App01/ZetaDataBank!!MyControl.nsf" viewName="AllContacts"> </xp:dominoView> </xp:this.data> <xp:viewPanel value="#{view1}" id="viewPanel1"> <xp:this.facets> <xp:pager partialRefresh="true" layout="Previous Group Next" xp:key="headerPager" id="pager1"> </xp:pager> </xp:this.facets> <xp:viewColumn columnName="Id" id="viewColumn1"> <xp:this.facets> <xp:viewColumnHeader value="Id" xp:key="header" id="viewColumnHeader1"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="FirstName" id="viewColumn2"> <xp:this.facets> <xp:viewColumnHeader value="First name" xp:key="header" id="viewColumnHeader2"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="LastName" id="viewColumn3"> <xp:this.facets> <xp:viewColumnHeader value="Last name" xp:key="header" id="viewColumnHeader3"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="EMail" id="viewColumn4"> <xp:this.facets> <xp:viewColumnHeader value="E mail" xp:key="header" id="viewColumnHeader4"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="City" id="viewColumn5"> <xp:this.facets> <xp:viewColumnHeader value="City" xp:key="header" id="viewColumnHeader5"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="State" id="viewColumn6"> <xp:this.facets> <xp:viewColumnHeader value="State" xp:key="header" id="viewColumnHeader6"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="Created" id="viewColumn7"> <xp:this.facets> <xp:viewColumnHeader value="Created" xp:key="header" id="viewColumnHeader7"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> <xp:viewColumn columnName="$10" id="viewColumn8"> <xp:this.facets> <xp:viewColumnHeader value="Name" xp:key="header" id="viewColumnHeader8"> </xp:viewColumnHeader> </xp:this.facets> </xp:viewColumn> </xp:viewPanel> </xp:view>
I specified on-premise domino view in this sample. (Line 5)
Deploy to the bluemix through Domino designer.
Bluemix service is going to reboot automatically. After wait for a while, access to the Xpage URL you created, and then if you get the on-premise data in the view, Success!