Wednesday, August 11, 2010

How different was August 2010 from August 2009?

What is special about this period?Can i afford to forget it in my life,the answer is the reason for this post.
August 2009 came back from the US with tears and again in August 2010 came back to the homeland from the US after crying for days.
The tears on my eyes on both these phases of my life were not the same.August 2009, the reason for my tears was why should i come back to India.
The reason for tears on August 2010 was why should i stay in the US.
I know it sounds ridiculous.Well, this is the truth of the life.
In 2009, I liked the independent life of the US, i liked the dollars i earned, i liked the trips i made in the US with my friends,
most of all i liked the work place.In 2010, the independent life of the US made me feel lonely, the sum i earned made me feel,
is money everything in life, i had no friends to make trips, above all was not satisfied with the workplace.
To my surprise all my dreams about the US came true in 2009 whereas, in 2010 all these dreams were shattered to nothing.
This is the period when i realized life is not about just fantasy.There are hard truth in life which we need to confront without any excuses.
GOD threw me wonderful opportunity to understand the fact that life for an individual would not be consistent and predictable.
An individual should be ready to face the challenges of life with all courage in order to see a fruitful ending.The reality is something that comes to you without effort will not stay longer.
The later US trip proved me wrong about all my thoughts of US lifestyle, it made me understand the fact that it is always not fun to be alone.
I am totally convinced now to be back in India unlike August 2009.I do not have any hard feelings now in my heart that i was forced to come back in 2009 by my family.
During both of these period of my stay in the US had completely different experience and had good learning in both personal and official front.
I had a memorable fun filled experience during my farmer trip but more than that the bitter experience that i had during my later trip has thought me few good lessons of life.
Hence, from my heart I thank the LORD for having given me bitter experience during my later trip of the US.
Also i thank my company for giving me an opportunity to understand this truth of the life.
Now my mind is totally clear without any strong thoughts about enjoying US lifestyle.
And top of all the good news to my dear and near ones is i am not going to crib about the US trip anymore.. :)

Sunday, August 1, 2010

What am i doing ???

It's almost an year now since i looked back at my blog site.Have i gotten so busy?? No, not at all is the straight response from my heart.
What happened to all my inspirations to be a regular blogger.Did i loose my interest?No,the answer is i had suppressed my interest by letting my all good habits and interest decay due to various trivial issues in life.
Well it's TIME which has taught me a lesson as it does for everyone in their life.What i have learnt is PATIENCE is the key for happiness and success.
Cribbing about the failures and the issues around, i forgot the real me.I forgot what my interests are.I forgot what my habits are.I forgot to follow what's happening in the outside world.I forgot to do my regular routine.I know it is unbelievable.Yes, it happened in my life and to your surprise for not any big reasons.Unnecessarily i was distressing me and also the people around me.
Did i gain anything from that?Nope, just wasted the so called precious time for nothing.

When i did not really have time i cribbed saying i have no time for my interests, when i really did have time i ruined my time cribbing for silly problems that was bothering me.
One should indeed understand the definition of a problem before claiming he/she is stuck with a problem.I would like to reemphasize that PATIENCE is the only mantra for any happy life of a human.

As the saying goes, "It's better late than never",am happy that at least now i have realised my foolishness,in spite of wasting months of my life and my loved and dear ones with cribs and pessimistic thoughts.

Well,with the blessings of the LORD I have realised what i am doing and what i should be doing.
Now i am all set to catchup with all my interests and regular habits back... :) :) :)

Monday, June 15, 2009

Is RACISM prevalent only outside India??

Again i am back with an old debate topic, enticed by the hype created by media on the recent assault of Indians in Australia.

Why are we fighting against Australian authorities to get an answer for the recent attacks on Indians in Australia?We see Indian media projecting the anguish of the Indians on the recent attacks in Australia.How much is this justified??It is truly a waste of time.

Did we think a minute before that, how safe India is to its own people.It's a very well known fact that in India, there still exists discrimination across the nation based on caste,religion,sex and color.

Why Indian authorities are not questioned when Indians witness humiliation in their own motherland.Media and public are appalled on the recent attacks on India and trying to denounce the attack.

It is indeed misfortune to have a media which just focuses on the welfare of Indians outside India.
We all know, how people are ill treated in most part of the nation based on their state,caste,income etc..For instance, any north eastern Indian is addressed as chinkies in any other part of India, resulting in making them feel as though they belong to outside India.
They would be ridiculed to such an extent that, they start rethinking to come out of their state for higher education or career.
Any REC is the top notch institution, yet why students of many parts of India are hesitant to join Bihar REC.Media should start investigating on the safety concerns in Indian educational institutions and bring them to light.

We proudly project to the outside world that, India is a multilingual country.Only we Indians know the real harassment and humiliation an Indian undergoes in his own motherland.Still, it is never brought to light and addressed, because this will not make the media more popular.

Moreover, coming back to the attacks on Indians in Australia,the facts on the assault are revealing that, it is not because of racial discrimination; it is an attack by lower class mass for money.
Media is diverting the issue and discussing something which is immaterial, forgetting the fact that India is no better.

We should not forget that for India to become a super power not only the country's economy contributes, but also every individuals mind should be revived and a feeling of equality should be germinated which would make India more safe and united.

Sunday, March 8, 2009

Should Women's day be celebrated???

Well,i know it is a very old topic to be discussed up on.Nonetheless, i am obliged to write about it on the International Woman's Day!!

Women's day is basically, celebrated to recognize the old achievements,present and future initiatives taken by women in order to bring a difference in society,politics and economics.

Hence, it is a day allocated for celebrating Women's recognition.Every corporate encourages the celebration of the day and organizes a lot of events and distributes awards to women recognizing their achievements.


Now it is just not the names of men listed in any top achievements across the globe, gone are those days..

It makes you feel indeed proud when we see women taking equal role against men in every field.
It is really a great achievement, where we have reached from no where!!

The battle is not over yet,long way to go.. We still have villages in a lot of developing countries,where still women are discriminated.Any country would be called a developed country only when a women gets full independence and equality in every nook and corner of the nation.

Women in the good community are blessed enough to celebrate the day of women's recognition but on the very day there would definitely be hundreds of thousand women tortured due to various common reasons.
For instance, it is really cruel and heartless to see a women tortured by another women
in the name of dowry and stuffs like that.There are numerous other problems that a women faces everyday at her workplace, at home, on the way to work and the list goes on and on..
Though there are myriads of laws in place, these tortures for women are prevalent across our nation.
Women are forced to get accommodated to such situation and these are tagged as part and parcel of their life.Such complaints from women are cruelly sidelined with out giving any priority.

Though i can list all the tortures confronted by a women, it is very pathetic, i do not have a remedy to list for the same.

I wish and pray GOD for some great miracles to happen in the coming years and hope the situation for women becomes really blessed and that will be the real accomplishment of International Women's Day celebration!!!

Friday, March 6, 2009

IPL Challenges, RECESSION N ELECTION

NO hike, no recognition, no rewards only retrenchment.With recession ruling the country the bad news goes on and on,how can it be good for IPL alone?
How can IPL be claimed as recession proof?
This can be true only in lines with the common joke that is being circulated,
Vijay Mallya would spend millions in hiring a world class player at the cost of a kingfisher pilot.. :)

I agree to the fact that the richest tournament earned a huge sum to all that were involved in the business during the first season.
However, with the nation facing the worst side of business cycle it is uncertain to expect the same result this season too.

With the big multinationals and Indian giants planning all possible strategies for cost cutting to
overcome economy contraction,it is unpractical to expect them to spend in fat figures for endorsement and sponsors.

Next, having known about the threat to cricketing world,how can we put the lives of cricketers
and the hundreds of thousand innocent lives at peril.

Private security forces might be arrranged by the IPL committee , however, it will be secure enough for the cricketers but there are all possibilities for the audience to become the victims for lack of security.
Security is a serious concern across the country, which cannot be by passed.
General election should be honoured and cannot be overlooked for the sake of the multi millionaire game.

Knowing the situation well ahead it is good to plan accordingly than regretting latter.

It is just the matter of entertainment to the public, if they miss this, it is not gonna cost much,
anyway we have twenty 20 wolrd cup and other matches scheduled for latter this year.

Needless to say, even the club leaders are capable enough to cope with the expense occurred so for in organizing the richest tournament.

However, the lives of world champions and innocent audience is priceless.

It is indeed doubtful if IPL would make the same profit as last year with recession dominating this season.
Hence, considering the challenges faced by IPL this season, BCCI shld rethink and take an optimum decision!!

Wednesday, June 4, 2008

MVC in JSF

* When a user requests a JSF page, the request goes to Faces Servlet.
* Faces Servlet is the controller which examines the user requests and calls various actions on the model.
*JSF user interface component represent the view layer.

JSF Application

Any JSF application includes the followinf pieces,

* Set of JSPs for presentation
* Java Beans
* Application configuration file whch defines navigation rules,configures beans and other custom objects.
* Web.xml
* Set of custom objects created by the developers.
* Custom tags needed for reperesenting custom objects.

Thursday, May 1, 2008

JAVAServer Faces Technology

Javaserver faces technology is a server side user interface component framework for java based web applications.
The well defined programming model and tag libraries significantly ease the burden of developing and maintaining web applications with server UIs.
One of the greatest advantage of JSF is , it provides complete separation between behavior and presentation just like client side UI architecture.

Introduction on AJAX Technology: Asynchronous JavaScript and XML

AJAX is not a new programming language, but a technology for creating better, faster, and more interactive web applications.
With AJAX, your JavaScript can communicate directly with the server, using the JavaScript XMLHttpRequest object. With this object, your JavaScript can trade data with a web server, without reloading the page.
AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.

This is an excellent article on AJAX.
http://java.sun.com/developer/technicalArticles/J2EE/AJAX/

Tuesday, April 22, 2008

Command to generate client classes for wsdl using axis

Use the following task to generate the client class for the given WSDL using appache axis tool,



macro.java classname="org.apache.axis.wsdl.WSDL2Java" args="specify the wsdlname with absolute path --output specify the location where the client class shld get generated"

Out of memory error while generating client classes using WSDL

To handle this error we can generate the classed by directly using clientgen program by passing the memory limits.
Here's the command that could be used,

C:\bea\weblogic81\server\bin>java -Xms128m -Xmx1024m -Dweblogic.xml.schema.binding.verbose=true weblogic.webservice.clientgen -wsdl http://113.130.235.213:7741/webservice/SentinelWS?WSDL -packageName com.verizon.enterprise.eBosi.BOSIRepair.CMIS -clientJar CmWSClient.jar

Issues with Serialized object in webservice

Since objects communicating in webservice are serialized, any changes to the webservice would affect client application.
Esp when fields or methods are removed, then the object can't be deserialized in the client application.
Addition of fields/methods would not cause any issue during deserialization.

Creating and invoking WebService in Weblogic Server

Create the following file myRemote, myHome and myEJBClass under c:\myEJBexample .Set the path as c:\Webservicestaging.
com.example.webservices structure will be created under c:\Webservicestaging.
// myRemote.java
package com.example.webservices;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
public interface myRemote extends EJBObject
{

public int mymethod(int i) throws RemoteException;
}

//myHome
package com.example.webservices;
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
public interface myHome extends EJBHome
{
myRemote create() throws RemoteException,CreateException;
}

//myEJBClass
package com.example.webservices;
import java.rmi.RemoteException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
public class myEJBClass implements SessionBean
{
public myEJBClass(){}
public int mymethod(int i)
{
return i+5;
}

public void ejbCreate(){}
public void ejbRemove(){}
public void ejbActivate(){}
public void ejbPassivate(){}
public void setSessionContext(SessionContext sc){}
}

Compile the EJB as below
C:\myEJBexample>javac -d c:\staging *.java
Now class file will be generated under com.example.webservices structure in c:\ staging
Create META-INF folder in c:\ staging
Create ejb-jar.xml and weblogic-ejb-jar.xml under META-INF as below
C:\ staging>java weblogic.ant.taskdefs.ejb.DDInit c:\staging
Create myjar.jar under c:\ staging using the below command
C:\staging>jar cvf myjar.jar .
Create build.xml at C:\staging using the below script for creating an EAR file.

project name="buildWebservice" default="ear"
target name="ear"
servicegen
destEar="myear.ear"
contextURI="myServiceTest"
service
ejbJar="myjar.jar"
targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
serviceName="myServiceTest"
serviceURI="/myServiceTest"
generateTypes="True"
expandMethods="True"
style="rpc"
/service
/servicegen
/target
/project

Execute the created build.xml using the below command
C:\staging\ant
Now an EAR file named myear would be created in the folder C:\staging.
Deploy myear in Weblogic server bu following the below said steps,
In the weblogic server console click Applications under Deployments.
Now Applications window will be opened in the right panel.
Click on Deploy an Application in the right panel.
In the Deploy an Application window go to C:\staging folder and select myear.ear file and select continue.
After successful deployment of myear.ear file; two files namely myjar.jar and myServiceTest would be created under myear.ear in the left panel under Applications.
Now click on myServiceTest in the left panel, and click on Testing tab in the right panel.
In the right panel under testing tab click on the link beside Launch Test Page.
In the page opened you can get the following details,
a. WSDL will be opened on click of the link Service Description
b. The method exposed in the WSDL can be tested by clicking the link myMethod.
c. Example code that invokes this service using generated stub will be given. This sample code can be used for writing out client.
d. To generate a client stub for this Web Service the ant task that needs to be used will be given.
Now create a folder named client under c:\staging to place all client related files.
Create build.xml to generate client jar using the ant task mentioned in step 8.d
Run this build.xml from c:\staging\client
Client jar containing supporting stubs will be created.
Extract the created client jar under c:\staging\client
Here is the sample client file for invoking the created the Web Service,create this file in c:\staging\client
import com.myco.myservice.client.MyServiceTest;
import com.myco.myservice.client.MyServiceTest_Impl;
import com.myco.myservice.client.MyServiceTestPort;
import com.myco.myservice.client.MyServiceTestPort_Stub;
public class myClient
{
public static void main(String args[])
{
try{
String wsdlUrl = "http://localhost:7001/myServiceTest/myServiceTest?WSDL";
MyServiceTest service = new MyServiceTest_Impl( wsdlUrl );
MyServiceTestPort port = service.getmyServiceTestPort();
int result = port.mymethod(10);
System.out.println("Result is ******** " + result);
}
catch(Exception e)
{
}
}
}
Now compile this file using the following command,
C:\staging\client>javac -d . *.java
17. Now run the generated class file to get the result.

Overview of WebLogic Web Services Architecture

Here is what happens when a client application invokes this type of WebLogic Web Service operation:
-The client application sends a SOAP message request to WebLogic Server over HTTP. Based on the URI in the request, WebLogic Server identifies the Web Service being invoked.
-The Web Service reads the SOAP message request and identifies the operation that it needs to run. The operation corresponds to a method of a stateless session EJB or a Java class, to be invoked in a later step.
-The Web Service converts the operation's parameters in the SOAP message from their XML representation to their Java representation using the appropriate deserializer class. The deserializer class is either one provided by WebLogic Server for built-in data types or a user-created one for non-built-in data types.
-The Web Service invokes the appropriate back-end component method, passing it the Java parameters.
-The Web Service converts the method's return value from Java to XML using the appropriate serializer class, and packages it into a SOAP message response.
-The Web Service sends the SOAP message response back to the client application that invoked the Web Service.

Overview of Web Services

In a typical Web services scenario, a business application sends a request to a service at a given URL using SOAP over HTTP
Web services are accessible from heterogeneous environment. They are technology and vendor independent unlike other service-oriented technologies such as RMI, COM, CORBA….

Properties of Web Services.

•Web Services are accessed over the Web.
•Web Services describe themselves using an XML-based description language.
•Web Services communicate with clients (either end-user applications or other Web Services) through XML messages that are transmitted by standard Internet protocols, such as HTTP.