Sunday, January 19, 2014

How To Publish Code In Google Blogger






package com.vha.esb.purej;

package com.vha.esb.purej;

public class Context {
 public String POLL_END_TIME = "2013-06-05 11:30:00.000";
 public String POLL_START_TIME = "2013-06-05 12:00:00.000";
 public String MEMID;
 public String DP_340B_ID;
 public String RX_SEQ_NUMBER;
 public String STREET;
 public String CITY;
 public String STATE;
 public String CONTRACTED_RX_BEGIN;
 public String CONTRACTED_RX_ZIP;
 public String EDIT_DATE;
 public String RecordTypeID;
 public String CONTRACTED_RX_END;
 public String DEANO;
 public String messagePayLoad;
 public String sObjectXML;
 public boolean systemOutPut; 

}





package com.vha.esb.purej;

public class Context {
 public String POLL_END_TIME = "2013-06-05 11:30:00.000";
 public String POLL_START_TIME = "2013-06-05 12:00:00.000";
 public String MEMID;
 public String DP_340B_ID;
 public String RX_SEQ_NUMBER;
 public String STREET;
 public String CITY;
 public String STATE;
 public String CONTRACTED_RX_BEGIN;
 public String CONTRACTED_RX_ZIP;
 public String EDIT_DATE;
 public String RecordTypeID;
 public String CONTRACTED_RX_END;
 public String DEANO;
 public String messagePayLoad;
 public String sObjectXML;
 public boolean systemOutPut; 

}

Saturday, January 18, 2014

How to Install and Configure Subversion (SVN) on RHEL

I have some prototype projects I need to save the source code to some kind of code repository. SVN natually comes to my mind. This blog record how I did.

These days, virtually every question can be answered through google. The only challenge is to form the right question and look through the pages and find out the right information. Through googling, I found the following pages are very useful.


Even though these pages are well written, but I found that you will not know what has happened without plowing a bit deeper.

Few things are important to know. Firstly, after the commands of:
yum install subversion httpd mod_dav_svn

apache httpd are installed at /etc/httpd. The configuration is the file
/etc/httpd/conf/httpd.conf

In that file, you will find that apache httpd is listening on the port 8099 by default. Thus, in order to check whether the svn is up and running or now, you can type in a web browser with the url of:

http://hostname.company.com:8099/snv/testrepo




Monday, September 9, 2013

VisualVM For Java Developers

Introduction

VisualVM is a very powerful and convenient tool for visualizing local and remote java applications. These days, I use it for visualizing camel routes, memory usage, and many other things.

Start VisualVM

VisualVM comes with JDK 7 under %JAVA_HOME%\bin\jvisualvm
When you start this application, you may encounter the error page below. This seems no-harm error. The work-around to avoid this problem is show on the troubleshooting page:
https://visualvm.java.net/troubleshooting.html. I fixed this problem by changing the directory hsperfdata_GLIU to hsperfdata_gliu. The hsperfdata_gliu directory is at %TMP% for windows. 

Install Plugins

After you start the VisualVM, you will see the local currently running application. That is fine if you just want to browse the local applications with minimum information, such as jvm startup options, threading etc. However, as java developer, you probably want to have more plugins. VisualVM plugins center comes with 16 plugins at this time or writing. I selected and installed all of them. 


Connect To Remote Applications

To connection applications running on remote servers are very useful feature of VisualVM. It comes with 2 mechanisms, namingly JMX and stated. To me jmx is the choice, as my currently project is about enterprise integration using Talend ESB which is basically running on top of Apache ServiceMix.

The following is the procedure to connection Apache Karaf application:

Right click on remote note
Now, the remote server is connected. 
Connect Apache Karaf - right client on the newly added node - select JMX option.
on the URL I entered the following:
service:jmx:rmi://acldlu02tld.corp.vha.com:44444/jndi/rmi://acldlu02tld.corp.vha.com:1099/karaf-trun

You can achieve this by using jconsole, but jconsole will not remember all your connections like visualvm. 






Saturday, May 11, 2013

New MacBook Pro Experience

OK, this is my third MacBook. The last one I bought was January 2011. That one is still in good shape. I have upgraded the memory from 4GB to 8GB. Still, I have installed a lot of software on that Mac including Paralles, and other open source softwares, ActiveMQ, ServiceMix, Tomcat, MySQL, etc. All those applications put stress on the Mac. So I decided to buy a new one with 16GB memory and 2.7GHZ CPU. BestBuy has a promotion saving 150$, a good deal. But still, it cost almost 2,900$. Not small amount, but I think it worths it. Here are few photos I took when I open the box. It is really beautifully designed. At the moment, I am trying to migrate my music to the new computer, but the Migration Assistent seems taking very long time to recognized my previous MacBook Pro.

Thursday, April 26, 2012

Working on the paper: A Comparative Study of OpenSource ESB Mule and ServiceMix