Posts

Implementing PGP (Pretty Good Privacy) using Bouncy Castle Crypto APIs

I was just exploring the Java API's for encrypting and decrypting the file using PGP (Pretty Good Privacy), and I came across Bouncy Castle Crypto APIs. Here we will simply see how to use the Bouncy Castle APIs. Firstly download the cypto jar from the bouncy castle site, you can find the links in the end. 1.        Extract the Jar “crypto-145” at   2.      The java classes are at location “.crypto-145\src\org\bouncycastle\openpgp\examples” Use the jar’s at “crypto-145\jars” as per your SDK:- I have used bcpg-jdk16-145.jar and bcprov-jdk16-145.jar You need to first compile the JAVA classes. Lets create the public and private key:- 1. We will use  RSAKeyPairGenerator.java java class to generate the key’s         java org . bouncycastle . openpgp . examples . RSAKeyPairGenerator charlie "open sesame"    ---where            --  Ch...

Dynamic Routing in OSB

Image
In this post we will see how to use OSB dynamic routing feature to Route Request to different proxy/business service at run time.  To demonstrate how Dynamic Routing works, we will first create two proxy service with Mocked response indicating which proxy service got called. We will have customer creation service, which creates the customer either in CRMOD or OCH based on the parameter passed in request. There will be 3 proxy services: 1.      OCH proxy service : a.       URI : /proxy/ ochCreateCustomer This proxy will return the mocked response i.e. “customer created in OCH” 2.      CRMOD proxy service: a.       URI : /proxy/ crmodCreateCustomer This proxy will return the mocked response i.e. “customer created in CRMOD” 3.      Create Customer Orchestration service: a.       URI: /proxy/ createCustomer This p...

Downloading Twits using Twitter Public Stream API

In this post will try to show how to connect to Twitter Public Stream API and download live Twits. We can save these Twits in any format like comma or pipe delimited. These Twits can be use for Data Mining or Data Analysis. Have used this Twits to analyse the current News in given region. This program creates files of 50MB each, and keep rotating till the time the stream is running. we can run Map-Reduce program using Hadoop Framework to analysis the data at much faster rate. Prerequisite: 1. Need to have Twitter Application 2. Twitter OAuth Tokens       https://dev.twitter.com/docs/auth/obtaining-access-tokens 3. Twitter4j Libraries      http://twitter4j.org/en/ Below are the twitter4j API used: TwitterStreamFactory  : This API returns the object of type  TwitterStream We need to set below authorization tokens to connect to Twitter Public Stream. You will find below tokens once you create Twitter Application. -Dtwitter4j.oauth...

Integrating Weblogic with IBM MQ over JMS

Image
We can integrate weblogic with IBM MQ over JMS by creating Foreign JMS server with Links in weblogic server. We need to create .binding file which will acts as file based JNDI provider to create JMS binding to MQ resources. Will first explain how to create .binding file and then will configure weblogic to use the same. Steps to create .binding file: Firstly we need to add below jar’s in CLASSPATH jms.jar com.ibm.mq.jar com.ibm.mqjms.jar jta.jar connector.jar jndi.jar providerutil.jar fscontext.jar Create JMSProperties.config file with below properties INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory PROVIDER_URL=file:/tmp/mqm/jndi SECURITY_AUTHENTICATION=none Run below command ./JMSAdmin -v JMSProperties . config InitCtx> def qcf(ForeignCF) TRANSPORT(CLIENT) HOST(localhost) PORT(1414) CHANNEL(MQCHANNEL) QMGR(MQMRG) def q(MQ1) qmgr(MQMRG) queue(MQ1) def q(MQR1) qmgr(MQMRG) queue(MQR1) display ctx ...

Brief Overview on BigData and Hadoop

Big Data: The term Big Data applies to the information that can't be processed or analyzed using traditional processes. It’s basically processing terabytes of unstructured information to generate insights that are required for the businesses. Three basic characteristics of BigData: 1.     Volume : The data that is to be analyzed is in Terabytes. For example, Twitter alone generates around 7 terabytes (TB) data per day, Facebook around 10 TB/day. Analyzing this volume requires lot of hardware. 2.     Variety : The data is not only organized in traditional table patterns but also raw, semi structured, and unstructured data like weblogs, social media, blogs, sensors, images, videos etc. 3.     Velocity: It requires to analysis or process volume and variety data quickly. The velocity is very important as the data is still in motion, for example analysis real time market data, or analysis customer's browsing pattern while the time...

Configuring cluster environment on Oracle Weblogic 11g

Image
In this post will show how to configure cluster environment on Oracle Weblogic 11g. We will also create sample Loadbalancer using Oracle Service Bus to test our cluster. The clustered environment provide various benefits like Scalability, Reliability, Performance etc. By running the manageserver on multiple machine we can ensure Reliability i.e. if one machine goes down requests will be processed by another server running on another machine. All the manage server's are controlled by single Admin Server. It provide control to do various activities like start/stop the server, deployment, so on. Prerequisites: Oracle Weblogic is already installed on your system. Below steps shows how to configure the cluster environment on Oracle Weblogic: 1. Open weblogic configuration wizard 2. Select Create a new weblogic domain option. 3. Select the option which you want to be configured in your weblogic domain. 4. Specify the domain name ,say "clus_domain...

Oracle launches Oracle Banking Platform

On 18th september Oracle Financial Services Launches Oracle Banking Platform . Its now 3 years since I started working on OBP, really feels proud to be the part of this product development. Please refer below press release: http://www.oracle.com/us/corporate/press/1844990 Official page: http://www.oracle.com/us/industries/financial-services/banking/banking-platform/index.html