Friday, June 28, 2013

Shindig and embedded experience



Configuring Embedded experience with IBM connections widgets.

Source

A. Enabling Open Social
http://www-01.ibm.com/support/docview.wss?uid=swg21627570

B. Open Social Server Settings
http://www-10.lotus.com/ldd/dominowiki.nsf/dx/Server-centric_settings_OSC90

C. Step by step OSC configuration
http://fr.slideshare.net/sieverssj/show110-make-your-business-open-and-social-using-ibm-notes-social-edition-90

D. Incredible collection of data about OSC components : This cookbook attempts to gather all of the information an administrator needs to setup and configure the OpenSocial Component for IBM Domino 9.0, IBM Notes 9.0, and IBM iNotes 9.0. I consider this a must-read, else you will not understand your doing.http://www-10.lotus.com/ldd/dominowiki.nsf/dx/IBM_Domino_9.0_Social_Edition_OpenSocial_Deployment_Cookbook



Configuration

  • Install Domino 9 on one of your servers, and then install open social components on top of it. 
  • Fill open social data into the configuration document of this server 
  • Create keystore 

launch a wasadmin prompt into the connections server (from the DMGR not the AppServer

execfile('gadgetAdmin.py')

I got : wasx7015e




But that was a bad launch of wsadmin command (i did a "wsadmin -jython" instead of "wsadmin -lang jython")



That's better!


NotesRegistrar.registerGadgets("Mes Gadgets","Mes gadgets pour open social","http://xxxx.xxxx.xxx/fiesta/gadgets/oauth2callback","c:/temp")


Even on windows, you can use "/" instead of "\" for the output directory, else your next caracter will be escaped. I guess you probably could use "\\" as well.




My files are generated


You have to create nek and credstore, in domino console (open social server) issue :

keymgmt create nek opensocial
keymgmt create credstore opensocial
question : what is the nek ?

ACL of the keystore and the widget catalog should be taylored in a production environnement, with a specific access group.

  • Open the credstore.nsf and create a key.
  • Configure how to find the credstore in the widget catalog.
  • Fill the first three fields of "Social Edition" tab (configuration document)
  • I added a account in my local notes
  • Add the widgets in the widget catalog, categorize them for ease of use, and policy pushing, and approve them (click approve and just validate twice).
  • "tell http osgi social refresh all" command, which is supposed refreshing OAuth and proxy data, is returning a "usage" text of the tell http task. Question : why ?

Client Side

You must have notes 9 with open social components installed.
Add in notes.ini 
ENABLE_EE=1
$ENABLE_EE=1


Debug

The following is from Source D, OSC cookbook.



OSGi on HTTP

OSGi logs from the HTTP task can be found under <Domino Data Directory>/domino/workspace/logs

To enable custom logging for the OSGi instance for the HTTP task, one can modify <Domino Data Directory>/domino/workspace/.config/rcpinstall.properties. The HTTP task must be restarted after making these changes.


OSGi on DOTS

OSGi logs from the DOTS task can be found under <Domino Data Directory>/domino/workspace-dots/logs

To enable custom logging for the OSGi instance for the DOTS task, one can modify <Domino Data Directory>/domino/workspace-dots/.config/rcpinstall.properties. The DOTS task must be restarted after making these changes.
Enabled logging in the server :







Result




Launching the widgets I have a "something went wrong" message, which is like the default error message.










The page "http://myserver.mydomain.com/fiesta/notesdomino/notesdominocommoncontainer.html", which is supposed to give me some information on my installation returns absolutely nothing.

I collected support data, and sent it to IBM. More next time.