Posts

Showing posts from October, 2015

Creating a Cookie using jQuery

In one of my projects, I was tasked to create a cookie (no, not the chocolate chip dough, but a browser cookie), and I had to do it using jQuery, a commonly used JavaScript library. It can be done using plain old JavaScript, of course, but life is so much better with jQuery! By definition, a browser cookie is a text file created by a web browser for every unique website or domain. The cookie can only be accessed on the same domain where it was originally created. To be able to create a cookie using jQuery, you need to include a plug-in that can be downloaded from GitHub . Everything is already explained on the GitHub page, and the code is not very complicated. Perhaps, a few watch-outs would be: Differentiating between a session cookie and an expiring cookie. A session cookie is only valid until the user closes the web browser. An expiring cookie only gets removed after a specified number of days. Note: the unit of measure for the expires parameter is days .  The path param

Specifying Custom Engine Properties in Designer

Image
Specifying custom engine properties in TIBCO Designer can either be done by modifying the designer.tra, or by creating a properties.cfg file. The advantage of the latter is that you don't have to restart TIBCO Designer every time you need to change the value of the property. Also the properties.cfg overrides the value of the engine properties you have specified in designer.tra . You can comment out the property by prepending a hashtag (#) to the property. Before loading and running the process in Designer tester, you need to specify the full file path to your properties.cfg file. Here are some of the common engine properties: #Enabling web service authentication via LDAP java.property.com.tibco.bw.security.login.jaas=true java.property.java.security.auth.login.config=jaas.conf java.property.TIBCO_SECURITY_VENDOR=true java.property.com.entrust.toolkit.security.crypto.random.DRBGusingSHA512=true #Salesforce Connection Forward Proxy Configuration java.property.co