kapil Gupta

Greenhorn
+ Follow
since Jan 31, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kapil Gupta

As per J2EE guidelines:
If the state of an entity bean is being updated by a transaction at the time of server crash, the entity bean's state is automatically reset to the state of the last committed transaction.
So in any case (Appserver or DBServer crashes), the transaction is rollbacked but bean itself is not destroyed and a client can later connect to the same Entity Bean using its object reference.
Thanks Ernest,
Your answer solved my problem. I was lost in creating and managing separate thread for repainting.
Thanks once again,
Kapil
21 years ago
Hi,
I am showing a value in a JPanel. When I click on a button, a new value should be displayed just for half of second on the panel and after that the original value is displayed. I can't use mouse pressed and released event since the value should return to original even if mouse is kept pressed. If I use sleep method, it doesn't repaint the values and main thread is blocked. Please help.
Thanks,
Kapil
21 years ago
Thanx Kyle,
Its working now!!
21 years ago
Hi,
How can I open a pdf file on the click of a button in a Swing Panel. Is it possible to open a pdf file inside a Swing Panel?
Thanks,
Kapil
21 years ago
I am still facing same problem even after changing the xmi file. But I was able to view images and load .js, .css files by using port 9080 instead of default 80. What is the reason behind this?? Is there any way I can enable FileServing through the Console Window?
Thanks,
Kapil
21 years ago
Hi,
I am using Websphere advance edition Ver 4.0.1 to deploy my application. I am able to install and start the web module but I am not able to view any image or able to load javascript, .css files, though the jsp content is displayed on the browser. If I install and run the same application on Websphere Single Server edition, its running fine. Please help...
Thanks in advance,
Kapil
21 years ago
Hi,
I am also trying to use Connection Pooling using a simple java class in VAJ 3.5.
When I try to run the program, debugger opens with NoClassDefFoundError exception.
I am using the following code:-
javax.naming.InitialContext ctx =null;
javax.sql.DataSource ds =null;
Properties parms = new Properties();
try {
parms.put(Context.PROVIDER_URL,"iiop://localhost:900");
parms.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
ctx=new InitialContext(parms);
}
catch (Exception e) {
System.out.println("Exception= "+e);
}
try{
ds = (DataSource)ctx.lookup("jdbc/dbname");
Connection conn =ds.getConnection("scot","tiger");
}
catch (Exception e) {
System.out.println("Exception= "+e);
}
When I use the same code in a servlet, it runs fine. Can I use Connection pooling in simple class?
Regards,
kapil
22 years ago
Hi,
I have installed WAS 3.5 on Win NT server with Oracle 8.1.7 on separate M/C. When I try to open websphere console, some error is coming. Log file shows following message:
Error - sysmgmt_is_servlet_uri : failure in sysmgmt_queue_for_uri rc=9
What could be the reason for that??
Thanx in advance,
Kapil
22 years ago