Friday, December 23, 2016

Root user Session in MobaXterm

Root user Session in MobaXterm 


If your account on linux system has root permissions, then you can use this privilege to create a new session on MobaXterm directly as a root user without entering roots password. Why would you need new session directly as root user? This you may need some times, so you can work as root user on files from SFTP or use other tools of  MobaXterm.

Here are steps to create a Mobaxterm session as root user without entering root's password.

Steps:
ssh to remote linux machine from MobaXterm with your user. Then swicth to root session.
sudo su

Create private and public keys, using following command:
ssh -keygen -t rsa
          (don’t provide file names or passwords at prompts)

This will create keys id_rsa and id_rsa.pub in ~/.ssh folder

Create file named authorized_keys in ~/.ssh (ignore if already exists, this file should have 600 permissions)

        
         Append public key (id_rsa.pub) contents to authorized_keys file.
           
            cp ~/.ssh/authorized_keys ~/.ssh/authorized_keys_bak
            cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys


copy private key (id_rsa) to your local machine (This is private key so save it in secure location)

Now create new session in MobaXterm with following settings in Basic ssh: 

  • Provide Remote host name
  • Check ‘Specify user name’ (value : root)
  • Under Advanced Ssh settings tab, select use private key and provide location of Private key.
  • Under Bookmarks Setting: give relevant server name 

Now you are ready to login to remote server with above bookmarked session as root user without entering password for root user.








Sunday, November 6, 2016

How to install Java on Mac OS X and set JAVA_HOME

Download and install latest JDK for Mac ( name ending in macosx-x64.dmg) from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Verify installed version of Java after installation is completed from terminal.

$java -version
java version "1.8.0_71"
Java(TM) SE Runtime Environment (build 1.8.0_71-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.71-b11, mixed mode)


Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home. To set JAVA_HOME, just export $JAVA_HOME in file ~/. bash_profile or ~/.profile as follows:

$ cd ~
$ touch .bash_profile
$ open -e .bash_profile

Add following export statement to .bash_profile file
export JAVA_HOME=$(/usr/libexec/java_home)

Close terminal window after setting JAVA_HOME. Open new terminal window and check value of JAVA_HOME.

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home

Now you are ready to install and run java based applications in your Mac.

Tuesday, June 7, 2016

SOAP UI Error: "java. net.SocketException: Permission denied: connect"


SOAP UI Error: "java. net.SocketException: Permission denied: connect"


I have recently installed Windows 7 in Parallels on Macbook pro and installed SOAP UI 4.5.1 on this Windows VM. I was not able to execute any soap tests from SOAP-ui tool when I am connected to VPN (which was not the case when I execute same SOAP-ui testing from non VPN connection). Following is the error I was seeing in SOAPui console:

Error: java. net.SocketException: Permission denied: connect

With some research online, I was able to find that by disabling IPv6 in Windows network adapter for VPN, I was able to fix this error.

Following are the steps to unbind IPv6 from a specific VPN network adapter on Window-7:

1. Click Start, and then click Control Panel.
2. Click Network status and Tasks.
3. In the View your active networks area, click VPN / Local Area Connection, and then click Properties.
On the Networking tab, click to clear the Internet Protocol Version 6 (TCP/IPv6) check box, and then click OK

Restart your windows system after saving the changes.


Thursday, December 6, 2012

Launching JRockit Mission Control


The Oracle JRockit JVM comes with JVM diagnostics toolset called JRockit Mission Control. The JRockit Mission Control tools suite includes tools to monitor, manage, profile, and eliminate memory leaks in your Java application without introducing the performance overhead normally associated with tools of this type.

Steps to Launch JRockit Mission Control in Weblogic Server :

Step1: Make sure Xming is running in windows background

Step2: Connect to weblogic server from putty (with X11 configurations for xming in putty)

Step3: Jrockit is available as executable under bin folder
 cd /u01/app/oracle/jrockit-jdk1.6.0_24-R28.1.3-4.0.1/bin

Step: Lauch Mission control:
./jrmc


Screenshots:




Thursday, August 27, 2009

Best Practices of Exception Handling in implementing Integrations using Oracle SOA

Exception Handling :

It is important to define reusable, extensible, and agile approach to handle exceptions at process level and other unknown exceptions for the integration processes. Using a common exception handler service with extensible interface can provide the flexibility, re-usability, and extensibility.

• A Common Exception Handling Service will provide the exception handling capabilities for the integration services for this architecture. It will be invoked by all the services for performing actions in case of exceptions. This service will have the ability to be extended for functionality and in terms of actions in response to the corresponding exceptions.
Following functionality can be included in Common Exception handling services:
* Send email notification to support resource based on error severity and error category.
* Retry transaction for certain error types
* log error details in Error and log tables for analysis and reporting.
* Send error to Worklist Application to initiate Human Workflow.




• Fault Management Framework for BPEL Services: A generic fault management framework is recommended for handling faults in BPEL processes. If a fault occurs during runtime in an invoke activity in a process, the framework catches the fault and performs a user-specified action defined in a fault policy file associated with the activity. If a fault results in a condition in which human intervention is the prescribed action, you perform recovery actions from Oracle BPEL Control. The fault management framework provides an alternative to designing a BPEL process with catch branches in scope activities.