anurag priya

Ranch Hand
+ Follow
since Dec 19, 2000
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anurag priya

I like all kind of Pizza . So am i suitable for the job ?
15 years ago
can you please tell where did you change the compilation option .
thanks in advance,
16 years ago
Hi Soni / Kalyani
the explanation for
"(8 << -1)) In this case the -1 binary value is so large so shifting
8 with large value will always be 0
as 8 is represented as 0000 0000 0000 0000 0000 0000 0000 1000
and if you left shift this with number greater than 28 it will always be 0."
is not correct for Shifting the values by negative numbers u need to check the proper explanation in JLS .
if i get time to search i will provide you the exact explanation .
regards , anurag.
Hi everybody ,
I have a sun voucher which is valid till 29th of April 2005 and can be used for SCJP/SCWCD/SCBCD any of them . Due to some time constraint i am unable to take the SCBCD before 29th of april .
I am located in Pune (india ).
if anybody is taking the test before 30th of april 2005 and needs i am ready to sell it for 4500/- rupees only .
so if anybody needs it please mail me on
if you are in pune or mumbai it would be better we can talk also so please mention your phone number too .

By the way i just wanted to know if the voucher's expiration can be extended by any means ? i mean can i request Prometric Testing Center and get the expiration period extended ?

thanks and regards ,
Anurag Priya
Hi all,
I am using BEA weblogic8.1 app server .
i have a Session bean deployed with container managed transaction .
the Transaction Attribute ofthe bean is "REQUIRED" and the Transaction type is Container Managed Transaction .
i am using Oracle9i Database with oracle.jdbc.xa.client.OracleXADataSource driver .

Now the problem is that i have about 2,50,000 records in a flat file which I want to INSERT in an ORACLE9i TABLE , but it roles back when i want to insert the records more than 4,500 , after it reads and finaly wants to commit .
if the flat file contains 4500 records it works fine and commits in the database ,but when i incrase the size of the data in the flatfile it fils to commit and transaction roles back.
Although i have changed the JTA Timeout Seconds: from 300 to 600 seconds but within 2 minutes even it roles back after trying to commit (may be the data size is too big for one commit) .
is there any way that i can control the Commit behaviour of weblogic8.1 using container managed Transaction ?
I tried to commit using UserTransaction every 4000 records but still it throws "javax.transaction.xa.XAException" saying that i cannot use the local transaction with XA driver .
Is there any way that for a perticular bean i can controll the transaction so that after every 1000 or 2000 records it automatically commits the transaction or let me allow to do the same with XADrivers .

thanks in advance ,
17 years ago
Hi Seetesh ,
Just make everything in the class as static (methods , attrubutes ), so it doesn't matter how many instances are created still all will be refereing to only one instance .
thats the simplest way of doing it .
regards .
Hi all ,
I am using weblogic8.1 server. My problem is, that when i am using Autodeployment (i.e. my application is coppied in the Applications directory of the domain ) , i have to restart the server in case any of the web component is changed . I dont want to Restart the server everytime i compile ( build ) my application . Can Hotdeployment help this ?
if yes how can i Hotdeploy the web application which is changing too frequently ( develepement phase ).
Thanks in advance .
17 years ago
hi ! if any one can tell me how to Call isql or osql (MSSQL SERVER) from java and get the exitvalue for loging !
i am trying this code but the code hangs when i run !i got this code from javaworld link :

import java.util.*;

class StreamGobbler extends Thread
InputStream is;
String type;

StreamGobbler(InputStream is, String type)
{ = is;
this.type = type;

public void run()
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line=null;
while ( (line = br.readLine()) != null)
System.out.println(type + ">" + line);
} catch (IOException ioe)

public class WindowsExec
public static void main(String args[])
if (args.length < 1)
System.out.println("USAGE: java GoodWindowsExec <cmd>");

String osName = System.getProperty("" );
String[] cmd = new String[3];

if( osName.equals( "Windows 2000" ) )
cmd[0] = "cmd.exe" ;
cmd[1] = "/C" ;
cmd[2] = args[0];
else if( osName.equals( "Windows 95" ) )
cmd[0] = "" ;
cmd[1] = "/C" ;
cmd[2] = args[0];

Runtime rt = Runtime.getRuntime();
System.out.println("Execing " + cmd[0] + " " + cmd[1]
+ " " + cmd[2]);
Process proc = rt.exec(cmd);
// for error message
StreamGobbler errorGobbler = new
StreamGobbler(proc.getErrorStream(), "ERROR");

// for output
StreamGobbler outputGobbler = new
StreamGobbler(proc.getInputStream(), "OUTPUT");

// kick them off

// exit value
int exitVal = proc.waitFor();
System.out.println("ExitValue: " + exitVal);
} catch (Throwable t)
}//end of class
The code compiles and runs well for other dos commands like this

$ java WindowsExec "dir *.java" ---> this works fine

but when i try to run it for isql or osql like this the code hangs

$ java GoodWindowsExec "isql.exe /Usa /Psa /i test.sql " where /U = username /P =Password and /i = input sql file

can anyone please help !
17 years ago
hi everyone !
is there any sample SCBCD test questions provided by sun microsystem like the way they provide for SCJP ?
if any one knows that please provide me the URL i will be thankful to you very much ! i tried to search but couldn't get it !
thanks in advance !
hi all !
first of all i want to clear one thing that i have no intentions to hurt anyones feelings !
I agree with Ashok ! and want to say just one thing that American techies will be benefited only if the outsourcing is also stopped ! i think number of H1B Visas reduction in a long run is nota good solution for Americans , as it will force the software firms to outsourse more in order to cut the cost in the current economic conditions , and once the jobs are outsourced they are totally out of The US forever .on the other hand If jobs are there in the US along with H1 visas still americans have some chance to compete with those who are availing H1 visas and i am sure the companies will prefer the localites more than the H1 sponsered candidates as visa processing is a time taking process as far as legalities are concerned . tell me whats the use of technical skills in america if the jobs are outsourced . so i think outsourcing is a bigger threat for Americans than that of H1B. Along with that i want to add one more thing that The US is known as a country which provides equal opportunities for all . dont you all think the whole scenario is going against the basic nature of a country ?
dont you all think if there will be no H1 visas no abroad student will be interested in persuing any studies in US ,specially heigher studies ,cause the cost of heigher studies is much more heigher than that of many other countries which can provide the same quality of education ? it will be a total change in the whole education system , economy and the open culture og The Great United States in a long run .
18 years ago
dear Kyle
thanks ,
i think i will go thru J2EE Design patterns first as per your recomendations ! plz dont get me wrong actually i wanted something very specific and clearcut design patterns and Design issues in EJB !
thanks for your reply !
Anurag priya.
hello everyone !
can any one plz tell me what are the most common EJB design patterns (not J2EE design patterns )used in the industry and if possible any links where i can find it out !
Thnakz in advance !
how much is the pay rate ! and are you offering H1B?
thanks in advance if you are !
please clarify !
anurag, bombay,India.
19 years ago
Congrats Neetha ! can you please tell me me mcuh time did it take you to prepare for the Certification and how much did you pay for the voucher ?
CONGRATS again !
and thankx in advance.
can anyone please tell me how much the voucher cost in india in indian rupees for the XML IBM's exam ?
thanx in advance!