Sureshkumar Chinnappan

Greenhorn
+ Follow
since Feb 15, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sureshkumar Chinnappan

Hello Ranchers,
In our project we are planning to use RAD 7.5 as a IDE to develop the application. I heard the RAD 7.5 is not stable and it brings lot of issues while using it in development. I am new to RAD.
We will be using EJB 3.0 in our development. Can you please share your experience and suggestion on RAD 7.5? Also please suggest me any alternative for RAD 7.5.
The following technologies will be used in the project JEE 5.0, EJB 3.0, Spring, Hibernate 3.3 , Websphere 7.
Thanks in advance.
-Suresh
13 years ago
Hi Mark,
Thanks for your reply.
We are not creating XML from object. We are setting object values based on the XML. Our product is a legacy one, so cant implement hibernate stuffs. Our database also not a relationdb. So creating our own mapping techniques.
Can you please suggest how to form a method from xml propery. here xml property is nothing but a variable name.
Dear All,
We are developing our own XML to object mapping frame work.
In this I want to call my object setter and getter method based on the xml property value.
For ex, My XML looks like,
<class name"Employee">
<property name="employeeId" function="set" value="1000" />
<property name="employeeName" function="set" value="Suresh" />
</class>
My Employee bean class looks like,
class Employee{
String employeeId;
String employeeName;
public void setEmployeeId(String employeeId){this.employeeId=employeeId;}
public void setEmployeeName(String mployeeName){this.employeeName=mployeeName;}
public String getEmployeeId(){return employeeId;}
public String getEmployeeName(){return employeeId;}
}
In this, while parsing the Employee part of XML code if the property function is set and the name is employeeId then my frame work java logic should call setEmployeeId(String employeeId) method. I dont know which Java API i should ude for this? ANy help is highly appreciated.
Thanks in advance.
Dear all,
I am working to improve my application performance. While looking the code I have seen the following implementation.
---------------------
Class TestClass{

Obejct param=null;

private TestClass(Object param){
this.param = param;
}

public static synchronized TestClass getInstance (Object param)
{
return new TestClass (param);
}

}
--------------------
The applicaiton is running on multiple threads. Should the above getInstance method require synchronization? I am thinking its not required hence we are creating a new object here. Please advice me.
thanks in advance.
[ February 14, 2008: Message edited by: Sureshkumar Chinnappan ]
Hi Floks,

I am using server push methodology to send a data from server to client. We are using JBOSS as a application server and Apache as a clustering server for load balancing purpose.
Here my problem is, the application is working fine when we try to access it directly from JBOSS. But it�s not pushing the data to client (but its shows the pages) when we are accessing the application via Apache server.

Any help greatly appreciated.
Thanks in advance.
16 years ago
Thanks for your valuable updates. I got the point now.
Dear Rangers,
As per my knowledge serialization not application for static variables.
For ex:

import java.io.Serializable;

public class Test1 implements Serializable
{
static int i ;
public Test1(){}
public void setInt(int x){
i = x;
}
public void printing(){
System.out.println("i::::"+i);
}
}

and

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class Test2{
static Test1 q = new Test1();
public static void main( String[] args ) throws IOException, ClassNotFoundException {
FileOutputStream os = new FileOutputStream("file.txt");
ObjectOutputStream out = new ObjectOutputStream( os );
q.setInt(30);
q.printing();
out.writeObject( q );
out.close();
}
}

and


import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class Test3{

public static void main( String[] args ) throws IOException, ClassNotFoundException {

FileInputStream is = new FileInputStream( "file.txt");
ObjectInputStream in = new ObjectInputStream( is );
Test1 q2 = (Test1)in.readObject();
System.out.println("q2"+q2);
q2.printing();
q2.setInt(56);
q2.printing();
}
}

if we run the above program at the time of serialization:
i::::30
is printing and at the time of deerialization
q2Test1@35ce36
i::::0
i::::56
is printing.

So we can confirm static variables are not serialized. Because i is priented as 0 at the time of deserialization.

But my question here is, I have marked the serialized object Test as a static. Then how the object itself serialized.
Expecting depth explaination please.
Hi Priya,
Congrats and its a great score. Keep up!
What next?.
All the very best!
17 years ago
Hi Ranchers,
I have cleared the SCWCD with 88%. Thanks for all your support.
17 years ago
If any exception is raised on b.jsp then it will show the a.jsp only.
But in a.jsp if you specify isErrorPage="fasle" then you can't access the JSP implicit exception object.
Hi kishore/All,

Please find the correct program below:

class Animal{
int a=10;
public String printValue(){
return "Printing this from Animal";
}
}

public class Dog extends Animal{
int a=20;


public String printValue(){
return "Printing this from Dog";
}

public static void main(String args[]){
Animal animal = new Dog();
System.out.println(animal.a);
System.out.println(animal.printValue());

}
}
And the output is
10
Printing this from Dog


How the memory allocated in this program?
Could any one please explain how the memory allocated for insatnce variables in the below ex?(in depth)

Class Animal{
int a=10;
}

Class Dog extends Animal{
int a=20;
int b=20;
public static void main(String args[]){
Animal animal = new Dog();
System.out.println(animal.a);
System.out.println(animal.b);

}
}
In the above example how the memory location pointing to the refernce type in animal.a but object type for animal.b
Sorry gowher,
I dont have the environment to do the same. Thats y I raised a query.