After a great evening on the beach and a visit to an amazing restaurant (Patio Antico) with the Dutchies we are ready for a new day of ICS training.

After a quick demo on REST connections by Niall he thought it was time to grant us access to the Cloud! YEY! After yesterdays disappointment about the Cloud in a VM, today we are actually entering the Cloud to play with ICS. Today we will play with Twitter connections a little. Looking forward to it! The goal for today is to Tweet from ICS.

But first some discussion about SOA CS:

SOA CS runs on JCS (weblogic). If you want to run SOA CS, you need the Database Cloud Service as well. An instance in Database CS takes about an hour to create. You can select shapes, which is nothing more but a combination of CPU’s and RAM ranging from small to huge. You need to think about Storage Cloud Service as well. When you create your database, you need to think of public and private key as well because you need to make a connection to the Cloud. When you create a database instance, you also need to define a backup (strategy) to be able to install a SOA intance. Otherwise you get an error when creating a SOA instance. So you have your backup covered as well!

Connect to the instances on the SOA CS by using putty. Data – opc. SSH select file with privateKey.ppk

Agents are new in the latest version of ICS. Go into your cloud environment. In ICS under Also Learn About, you see Lookups, Packages and now also Agents:
agents

Agents are for connecting SaaS applications to your on-premises applicatons. The Agent arranges security and connectivity to Cloud and on-premises. No need to open up ports whatsoever. All you need to do is download and install the Agent in your on-prem environment.
You need to create an Agent Group first. This will be a group of Agents working together to process messages and can be used for message categorization or High Availability. You need to install Agents on two different pieces of hardware to have a HA cluster.

There are two types of Agents. The Connectivity Agent and the Execution Agent. The Execution Agent is for ICS on-prem. The Connectivity Agent is interesting one in our case. When you install the Agent, it registers itself with ICS. When creating a new connections to lets say on-prem Oracle Siebel, you can select a particular Agent.

Currently if ICS is updated over the weekend, there might be compatibility issues with your Agents locally. You have to do magic yourself to make it work again. In the future Oracle will provide you with automatic updates.
Note: Installing Agents will not work on Windows.

So what about that Twitter lab, right?

First of all, you need to allow the ICS connection to talk to your twitter account by using the Twitter API. You can create an application in at https://apps.twitter.com. I will not bother you with these details as Google is your best friend if you need help.

After you granted ICS to use Twitter (by making the application on https://apps.twitter.com), you can make a new connection in ICS. Start typing in the new connection to find the Twitter adapter quickly.
typing
Next you fill in the security polici, tokens and keys you got from the Twitter apps site.
securitytwitter
Save and test your connection and you’re done.

Next you create a new integration and select Basic Map Data. Fill in the blanks (name, comments) to continue. Then add a connection. Select you’re newly created Twitter connection and drag it onto the Invoke. Name the Endpoint and select an Operation (Tweet). Add a local REST connection on the Trigger of the Integration.
twittersettings

For the request use a string variable. For the response use JSON:
{
“User” : “user name”,
“UserID” : “UID”
“TweetID” : “id”,
“Text” : “tweet”
}

Last thing to do is create a mapping where you map the status from the trigger to the status of the Invoke.
twittermapping
And map a response.
tweetresponse

Add a Tracking Field and activate the Integration.

Now to Tweet via ICS go to your server URL:
https://<SERVER&gt;:<PORT>/integration/flowapi/rest/TWEET_NOW/v01/metadata and replace metadata with “tweet?status=<your tweet goes here>“.

And voila! Tweets from my own ICS!
tweetsbyics

Not sure what my business would be if I have the need to tweet from my ICS, but it’s a cool feature! And great fun getting to know ICS. The funny thing during our training was that I was able to “hack” the other attendees Twitter accounts and send Tweets from their names.
haan
That was fun!!

To conclude this second day, Niall explained us when to use SOA CS and when ICS. No rocket science.

  • When things are complex, SOA CS.
  • When you have have most applications in the Cloud, ICS
  • When you have most of your applications on-prem, SOA Suite.

See more ICS information on Niall Commiskey blogs http://niallcblogs.blogspot.com

Houd jij je kennis graag up to date?

Mis niets meer van onze kennisdocumenten, events, blogs en cases: ontvang als eerste het laatste nieuws in je inbox!

Fijn dat we je op de hoogte mogen houden!