sunil mirani

Ranch Hand
+ Follow
since Jan 24, 2001
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 mirani

hi guys , thanx i got it . a friend of mine helped me .. following is a sample code for u guys ..

bye,
sunil
22 years ago
Hi All,
Say i have a class A with 10 methods in a class.
and one of the methods being
public void doWork(){
System.out.println("test"};
}
i have another class B in which i have created an object of the A class .
now in the main method of class B i take an argument "doWork" which is a string (obvioulsy)
is it possible for me to call the methods on the class A based on the string variable which is going to be exactly the name of the method .??
how do i do this ..
hey i dont want to use any if or any other conditional blocks ..
something like
//String s = "doWork"
//s"();"
Thanks Guys ..
Sunil
22 years ago
Hi Guys,
I am new to EJB and i learnt ejb 1.0 .. then i learnt how to deploy apps on weblogic ...
now i need to learn EJB 2.0 ... and the more i read the more i get confused ..
can help me with this ...
i think i would need some kind of link or a step by step guide to deploy a CMP ... and how to code the CMP ......i have gone through the sun's tutorial ...
plz help me guys ...
Sunil
Hi All,
can any one help me in deploying EJB on
weblogic 6.x..is there a step by step guide for doing so ?if yes can i have the link ??
i have gone through the docs on bea .. but i found them rather confusing ..
plz help ..
Thanks
Sunil
22 years ago
Hi Guys .. I am new LINUX ..
i got linux installed on my system .. and now i want to work on java .. i downloded the .bin file and i installed it it created a prm file which i further installed .. i moved the jdk dir to /local.. but nothing seems to work ..
when i go the the jdk1.3/bin and try executing the java command it does not .. and when it type sh java it executes .. but only within the bin ..
how do i make this thing work can any one help .. plz ..
can i uninstall the jdk and re install it .. i dont know how to do it .. if any one could send me a link where i could find step by step installation guide that would be great ..one more thing i am using redhat ..
Thanks guys ..
SUNIL
22 years ago
Hi Guys .. I am new LINUX ..
i got linux installed on my system .. and now i want to work on java .. i downloded the .bin file and i installed it it created a prm file which i further installed .. i moved the jdk dir to /local.. but nothing seems to work ..
when i go the the jdk1.3/bin and try executing the java command it does not .. and when it type sh java it executes .. but only within the bin ..
how do i make this thing work can any one help .. plz ..
can i uninstall the jdk and re install it .. i dont know how to do it .. if any one could send me a link where i could find step by step installation guide that would be great ..one more thing i am using redhat ..
Thanks guys ..
SUNIL
22 years ago
Hi Guys,
I am new to java beans .. can any one tell me what are the steps involved in creating java beans .. ??
where can i get some info on how to create java beans..
i want the beans to be non visual components..
can any one send me some code or links to where i can get some info on this stuff ..
thanx
Sunil
22 years ago
Hi guys,
Can any one plz tell me where i can find dome tutorials on Java Beans , apart from the ones from Sun
Thanks,
Sunil
22 years ago
Hi Matt ,
i need some help on deploying with weblogic ..
have u got some stuff .. something like step ny step instructions on how to deploy on WLS ?
plz help
Thanks
Sunil
Hello Mahesh ,
Thanks for the reply .. its not an oracle error .. i checked the code and i realised the connection was not closed properly .. i had made a silly error .
Thanks,
Sunil
Hello Tim ,
Thanks man .. that helped .. i'll try the connection pooling today .. but i have a doubt but its back to fundamentals ..
in a class say we have a constructor which has a static variable .. now i use the ++ operator to keep track ofhow many instances of the class are being created .. right ..
now i tried this same thing with ejb to see how many instances are being created of the bean .. and the count increases even if i am instanciating the bean with the same PK ...so how do i know if the instance is same or diffrent ..
Thanks,
Sunil
ps .. thanks for your reply
Hi everyone ,
i have a problem with entity bean .. i am using BMP ...
when a client invokes the entity bean the instance is created ..
it establishes connection with database (i have utility method that establishes connection .. getConnection()).. for the method calls .. but these connection are not getting closed (when i write conn.close().. it does not throw an error too ..!!)i am closing the connection in the finally block of each method....
once the program has made around 150 calls .. oracle throws an error "excceding 150 process " (so i asumed that connection is not being closed)
how do i do connection pooling .. i thought this was handled by the container ..i am using J2ee refence server ..
another doubt ..
say i have 150 records(rows) in the table ... diffrent clients need to access these rows ... now when one client invokes a findByPrimarykey(DataPK dpk) on the entity bean ..
and if another client needs to access the same data ... so can i have the client to access the same instance created by the first time rather than the client creating a new instance ..
because in the kind of application i am working on many clients need to access the same data ...
and this data gets refreshed / updated by another client altogether ..
some thing like the Stock Quotes .. where many clients access the stock quote .. but at a time stamp the data is getting updated in the database ..
can any one help what approch i should take towards this ...
Thanks,
Sunil
hi again ,
i am not able to find the deploy tool on weblogic 6.1
can any one plz help ....
thanks
Sunil
22 years ago
Hello Guys ,
I am using weblogic6.0 and i need the j2ee builder tool as it is not a part of my server .. i am not able to find it on the bea web site ... can any one plz help me and tell me where i could find it ..
Thanks,
Sunil
22 years ago