Tuesday, June 21, 2016

Perfoce resolve after merge

Perforce is a nice tool. We do lots of merges and it's really handy to know few commands when you resolve. Otherwise opening each and every file in the tool and accept merge is a hassle. If you anyway , takes accept merge when there are no conflicts, then best way to resolve using a command as whole change list


below is the way to run command.
eg: you may need to resolve chnagelist 210153

>p4 resolve -am -c 210153


this will produce an output for each file inside the change list as below.

========================================================

d:\Test.java - merging //Source_Code/Test.java#2
Diff chunks: 13 yours + 2 theirs + 3 both + 0 conflicting
//Test1.java - merge from //Source_Code/Test1.java
d:\Sample.java - merging //Source_Code/Sample.java#46
Diff chunks: 30 yours + 0 theirs + 1 both + 0 conflicting
//ServerError.properties - ignored //Source_Code/ServerError.properties
================================================

* if you resolve single file

>p4 resolve -am "d:\work\.classpath"

====================== output may look like below================
d:\work\.classpath - merging //Source_Code/.classpath#2
Diff chunks: 1 yours + 1 theirs + 0 both + 0 conflicting
//WORKSPACE/work/.classpath - merge from //Source_Code/.classpath








Monday, February 29, 2016

Setting screen size to fit the monitor, when login to remote machine

I have been working on a remote environment . I logged to remote desktop using "Remote Desktop Connection" in windows.
to adjust the screen size fit to the monitor follow below steps.

1. click "Remote Desktop Connection" in windows menu.
2. you can see the dialog box. enter your IP.
3. In the dialog box, left bottom corner click "Show Options"
4. go to "Display" tab
5. in the "Display" tab you will find "Display Configuration"
6. drag the slider to fit your screen, most probably to "Large" side. So drag the slider to right.


Thursday, January 28, 2016

bucket (AWS bucket)

bucket is a logical unit of storage in Amazon Web Services (AWS) object storage service, Simple Storage Solution (S3). Buckets are used to store objects, which consist of data and metadata that describes the data.
An S3 customer must create a bucket before he can store data in Amazon's public cloud and specify access privileges for the bucket by using the AWS Policy Generator. Although customers are not charged for creating buckets, they are charged for storing objects in a bucket and for transferring objects in and out of buckets.
There is no limit to the number of objects a customer can store in a bucket, but each AWS account can only have 100 buckets at one time.

Thursday, January 21, 2016

Cannot find javax.ejb.** in eclipse project

I created an eclipse Project to test simple ejb application.

Then I created simple Session bean. Bean import  " javax.ejb.** " and Annotations.
Eclipse project cannot find the javax.ejb  classes



---------------------------------------------------------------------------------------------

import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 * Session Bean implementation class Addition
 */
@Stateless
@LocalBean
public class Addition implements AdditionRemote {

    /**
     * Default constructor.
     */
    public Addition() {
        // TODO Auto-generated constructor stub
    }

}

--------------------------------------------------------------------------------------------------

Solution:
Need to add a jar which has above classes
I have downloaded glassfish. Glassfish is a server use to run ejb. So it has ejb support jars with in it
Add "javaee.jar" as an external jar

Steps
------
1) In Eclipse, right click on the project --> properties --> java build path

2) Click on add external JAR

3) Add c:\glassfish4\glassfish\lib\javaee.jar (Your directory path to this JAR can of course be different.)

Click  "Ok "the dialog, and now Eclipse should be able to see javax.ejb.* classes.


Monday, January 18, 2016

unikernel

A Unikernal is an executable image that can execute natively on a hypervisor without the need for a separate operating system. The image contains application code as well as all the operating system functions required by that application.

Unikernels are usually built using compilers that leverage library operating systems, which are collections of libraries that represent an operating system's core capabilities. This allows a unikernel developer to selectively include only those library components required to make an application work. Traditional operating system functions, such as network or file system handling, are selectively compiled in to the final executable on an as-needed basis.

Unikernels use a fraction of the resources required by full multipurpose operating systems, such as Linux or Microsoft Windows Server. Their diminutive size enables sub-second startup times and high deployment densities unmatched in traditional server virtualization. Additionally, the minimal footprint of the library OS functions and the absence of traditional operating system utilities greatly reduces the attack surface available for exploitation by malicious hackers.

Some unikernel build systems leverage type-safe languages like Haskell or Erlang, while others can bind to more common languages like C, C++, or Java. Not all applications are suitable for unikernels. Applications that require multiple processes in a single VM are not good candidates, but a huge number of traditional application images could become much smaller and faster when recompiled as unikernels.

Numerous unikernel build systems are available from multiple sources, with the open source community leading the way. Some of the more popular unikernel systems include MirageOS from the Xen Project incubator, Drawbridge from Microsoft, Haskell Lightweight Virtual Machine (HaLVM), LING (formerly Erlang on Xen), OSv, Project Guest VM Microkernel, IncludeOS, rump kernels which leverage NetBSD's library of OS functions, ClickOS created by NEC Laboratories Europe, and Clive from researchers at the Universidad Rey Juan Carlos of Madrid (Spain).

Friday, January 8, 2016

IBM application Server - Introduction

I have been studying about IBM WebSphere Application server for a little while and thought of sharing what i have gathered with you all.
I will write set article from first step describing
  • IBM WebSphere Application Server
  • How to download WAS
  • How to select WAS for you requirement
  • IBM forum and frequently asked questions page.




WebSphere Application Server (WAS) is a software product that performs the role of a web application server. More specifically, it is a software framework and middleware that hosts Java based web applications. It is the flagship product within IBM's WebSphere software suite. It was initially created by Donald Ferguson, who later became CTO of Software for Dell and the first version was launched in 1998.


Developer

Website
Initial Release
1.0  22 June 1998; 17 years ago
Stable Release
8.5.5 / 14 June 2013; 2 years ago
9.0 / 14 March 2014; 19 months ago
Written in
Available in
English, French, German, Brazilian-Portuguese, Czech, Hungarian, Italian, Japanese, Korean, Polish, Russian, Spanish, Simplified Chinese, Traditional Chinese
Type
Commercial(Do not download yourself – contact IT)
Version History
https://en.wikipedia.org/wiki/IBM_WebSphere_Application_Server#Version_history
Software Product Compatibility Reports
http://www-969.ibm.com/software/reports/compatibility/clarity/index.html


System Requirements


Downloads
What’s New
Memory
Minimum 1 GB of physical memory recommended



Monday, December 21, 2015

What is ESB and WSO2 ESB Quick Start

Recently I started learning about wso2 ESB. They have provided a good document. But for a starter it looks little too much of information and going to quick start with given quick start document I found little time consuming.
So I thought of sharing few thing in pretty short.

First we look at what is ESB and let's start it.

What is an ESB ?

As with a Service-Oriented Architecture (SOA), an ESB is essentially a collection of enterprise architecture design patterns that is now implemented directly by many enterprise software products.

ESB is a software architecture that enables communication (Integration) among various applications.
·         Instead of directly communicating each other via their own communication formats, each application communicate directly with ESB. ESB transform and route the message to their appropriate destinations.

ESB provides fundamental service via event driven and standard based messaging engine. (The bus)

 Note : I have using latest version 4.8.1 - this is not supporting Java 1.8

The few important links

About WSO2 esb
https://docs.wso2.com/display/ESB481/About+WSO2+ESB

Download source and compile and build SEB
Prerequisites



Quick Start

1. Download ESB = http://wso2.com/products/enterprise-service-bus/
2. Windows - unzip it
I have added this file inside "WSO2" folder created inside "Softwares". So after unzip my wso2 esb home folder will be
C:\Softwares\wso2\wso2esb-4.8.1

3. Set home variable for Java
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_13


4. Go to "bin" folder and run "wso2server.bat"
you can run with opening command line "cmd". set the path to "C:\Softwares\wso2\wso2esb-4.8.1\bin". type "wso2server.bat" and enter.

C:\Softwares\wso2\wso2esb-4.8.1\bin>wso2server.bat

ESB will start.

There is an easy way. Once you go to "bin" folder. Just type "cmd" in the address bar (--> That is where you can see the folder path "C:\Softwares\wso2\wso2esb-4.8.1") and enter. It will open a command line with path set to "C:\Softwares\wso2\wso2esb-4.8.1\bin>"


5. verify whether ESB started.
Open browser. go to
https://localhost:9443/carbon

Remember to use secure "https" if you omit "S" you will not get the console

6. use username and password  admin/admin  respectively
you will get the admin console


I will give summary steps to quick start in my next article.