sunil oza

Greenhorn
+ Follow
since Jun 16, 2009
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 sunil oza

Hi,

I want to do a vertical clustering in WebSphere.

I have two nodes on same hardware server and the IP address is same. Were as the Unix login is different so has different ports i.e Boot strap and the default host port.

I have some configuration files which are used as shared library.

My doubt is which port number is to be used while deploying the applciation for boot strap in the provider url in the property file as the two servers are the nodes in the vertical cluster.

Please suggest.

12 years ago
Hi,

in my application i am using the combo boxs as various filter componens which are loaded with the data fetched from the tables in hashmap and then the hashmap is used to populate the comboboxes.
The view takes long time to initailze.
Can you help me, how can i tune it.
14 years ago
Hi,

In my application i want to use a JFileChooser to select the file from a particular location. the file can be either a .xls or .csv file.
How can i display the selected file path in a textfield.
Also help me how can i read the excel or csv file and insert the data into the database table.
14 years ago
Hi,

Can some one guide me that, is j2sdk 1.4.2_04 and bea weblogic jrokit 1.4.2_03 are compatible on X series Quad Core 2 CPU Xeon Processor Servers with Red Hat Linux 4.x as O.S.

Also if not then which version is compatible.

Please help..

14 years ago
hi

i am trying to use package and the following is the code and the error i am getting while compiling. Please suggest a way to do it.
both the classes are in same package and are public. one is a bean with getter and setter methods and another is with main were i m trying to create a object of the first class. Please check and guide.
class1:
package practice;

public class TestIO {
String roll_no;
String name =null;
boolean flag ;

public boolean isFlag() {
return flag;
}
public void setFlag(boolean flag) {
this.flag = flag;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRoll_no() {
return roll_no;
}
public void setRoll_no(String roll_no) {
this.roll_no = roll_no;
}



}

Class2
package practice;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import practice.TestIO;
public class TestIOMain {

public static void main(String[] args) {
TestIO tio=new TestIO();
String roll_no=null;
boolean flag;
System.out.println("Enter your details");
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your roll number");
roll_no=br.readLine();
tio.setRoll_no(roll_no);
if(roll_no.equals("")){
tio.setFlag(false);
System.out.println("entered in if ");
}
else{
tio.setFlag(true);
}
flag=tio.isFlag();

if(flag==false){
System.out.println("Flag is false because roll no can't be blank program will terminate ");
System.exit(1);
}
else{
System.out.println("Enter your name");
tio.setName(br.readLine());
System.out.println("****************************");
System.out.println("The details entered are");
System.out.println("****************************");
System.out.println("Roll no:"+tio.getRoll_no());
System.out.println("Name :"+tio.getName());
}
}
catch(IOException ioe){
ioe.printStackTrace();
}

}

}

error while compiling:
for class1
C:\Documents and Settings\Administrator\Desktop>javac -d . TestIO.java

while compiling class 2
C:\Documents and Settings\Administrator\Desktop>javac -d . TestIOMain.java
TestIOMain.java:6: cannot resolve symbol
symbol : class TestIO
location: package practice
import practice.TestIO;
^
TestIOMain.java:10: cannot resolve symbol
symbol : class TestIO
location: class practice.TestIOMain
TestIO tio=new TestIO();
^
TestIOMain.java:10: cannot resolve symbol
symbol : class TestIO
location: class practice.TestIOMain
TestIO tio=new TestIO();
^
3 errors


14 years ago
hi

Please tell me the exact option were i will find the cache sending an attachment of the java tabs in control pannel.
14 years ago
thanks

i am facing this problem when i open particular type of swings view.
Also tell me where can i find the cache from java
i am using VM parameters like -Xms500m -Xmx700m for ram usage by the application. The moment i try to open this view the ram usage increases to 600M+ and the error is popuped, on clicking send or don't send buttons the application gets terminated.

Last month when i faced the same issue on google i found it can be a malware attack so on formating the machine it worked properly for around 1 and half month and i encountered the same issue again.
14 years ago
Hi,

In my application while opening a particular swings view i am getting an error java.exe encountered a problem need to close.

and the application gets terminated.
I have reinstalled the jre1.4.2 on the machine. but it did not help the error still persists.

Please suggest any solution as early as possible.
14 years ago
Hi,

In my code i am using Runtime.getRuntime().exec(boCommand) as the way to invoke the Business Objects from the java swings application. It is invoked on right mouse click on the JTable's row and selecting the type of report.

The current parameters i am able to pass is the keyfile name for Business Objects , the username , password and the path were the report is saved to the BUSOBJ.exe. these values are set to the variable boCommand and the above line is executed.

Can i pass the values like date from the JTable's selected row as an i/p to the report in the same variable boCommand.

14 years ago
hi
I have tried to find out the part of code taking more time in execution using loggers.
But it didn't help. The only thing i noticed is one record is processed 3 times for 3 different calculations.
The calculation is done on the basis of the configuration variables in one of the configuration table.
The value of configuration variables is set by the users in another module. so can't change them.
The table from which it fetches the data for processing has the column index_val and index_code which are important. there are 21 index_codes.
Also suggest, can implemention of multithreading help.
for e.g. create 21 theads one for each index and start all the treads in paralles and invoke the method where the calcualation is done from the run method. and use join().
14 years ago
hi
thanks for the reply
is the data count creating the problem or is there any other problem. because the code is working fine and it is not giving any error or any exception.
Actually it is fetching data from a table and does the calculation depending on the variables in the table.

After processing it inserts in a table in oracle and fires the update query to update a particular column.

Can there be the issue of concurrent access.

Please suggest any way to optimise the code.
14 years ago
hi

in my code i am using hashmap to store data and process it.
previously the processing was done in 30 minutes while now it takes 3 hours. this is degrading the performance.

the details are like

previous data count

x=40000
y=95000 after processing.

Now
x=84000
y=253000 after processing.

It processes the data and inserts in the oracle table. Is it the problem with of concurrent access or the code is not optimum.
How can i increase the performance.
14 years ago