Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

prasad regula

+ Follow
since Jul 03, 2006
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 prasad regula

I have wsdl url. I need to write a java code to invoke various functionalities offered at that wsdl. Could anyone guide me how to proceed. It is SOAP based. Thanks in advance.
11 years ago
Solution given by Ankit Garg is working fine. I commited a mistake, and it is working fine now. Thanks Ankit.
I added Transaction statement

Transaction transaction = session.beginTransaction();
//code to delete rows

This time I am getting that the rows are being deleted, but they are not getting deleted. I tried to deleted the row using jdbc code. The row is getting deleted.
If I change that to <sql-query> as below I am getting the following error

SEVERE: Update queries only supported through HQL

With <query> I am getting the following error

SEVERE: could not execute update query
I am trying to delete rows from database using hibernate. It is returning the row count of the number of rows deleted, when I go to database the rows are still existing

Here was my query

My code is

I found on google the jtest plugin for eclipse is the url I went to help menu and clicked add new software and entered the above url with the name jtest. It is not getting accepted. Moreover I am finding that the eclipse website has changed. I dont know when this has happened. I even tried this in myeclipse. It didnt work. Could anyone guide me how to proceed and at the sametime how to use the eclipse updated website as it is taking me to so bugzilla etc.
11 years ago
Here is the solution to upgrade the jvm, do the following
Place the JAVA_HOME/bin and <other classpath statements as rt.jat, tools.jar> at the begining of the path statement. As it is placed in the end, as the system reads the path variable, if it comes across 1.3 in between it accepts 1.3 as its jvm version. So it overrides. To avoid this issue, place the java bin path and classpath statements at the begining of the path statement. This will change the jvm to the version you wanted it to be.
I installed java 1.6. As I am trying to open eclipse it ws not opening. Later as i typed java -version, it is displaying as 1.3. I am not sure where this 1.3 has come from. My path and classpath are pointing to 1.6. What should I do to update the jvm to 1.6
11 years ago
How should I upgrade my jvm from 1.3 to 1.6. My path and classpath are being shown tyo 1.6 only. I dont know where it is picking this 1.3 from.
I just found that jvm version 1.3 is running. as I typed java -version. I have hot installed 1.3. I am not sure where it has picked it from.
I downloaded eclipse-SDK-3.5.2-win32, and unzipped using winzip. I clicked on the icon, the eclipse ide got opened. Things were fine. I downloaded Apache studio as a WSDL editor. Later I installed eclipse plugins for the Apache studio. As it didnt work, I decided to delete eclipse and reinstall on a clean slate. Now I unzipped eclipse again and tried to open it. Now eclipse is not opening. It is giving an message box "An error has occured. See the log file in the configuration folder". As I opened the log file, this is what I have found.

!SESSION 2010-05-05 11:38:50.001 -----------------------------------------------
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-05-05 11:38:50.516
!MESSAGE Startup error
at org.osgi.framework.BundleException.<init>(
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(
at org.eclipse.osgi.framework.internal.core.Framework.launch(
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

In a jdbc code, I am mentioning a sample code below for our reference, we come across
Connections, Statements, PreparedStatement, ResultSet. All these are interfaces. In which part of the jdbc code are we coming across a concrete class. We cant execute a code without a concrete class, by just using interfaces. I am not able to identify what class is the real concrete that is executing this jdbc code.

On the server side in the servlet I have the following code

On the client side I need to display this user name on the top of the page. Had that been a jsp I would have written a following statements

Now this has become a html as I need to deal this page with ajax. How should I get that username attribute and display on the html.
One way you are right. It has become a html question from Ajax as ajax needs to be a html at the time of submitting the data to the webserver. My doubt here is as below:
1) has it not been a ajax issue,
I would have placed a jsp
Submitted the jsp to retrive the data from the database and
Redisplay the page with the retrived data from the database.

With JSP I have the facility of sending the HttpServletResponse data etc. Now if a html comes in between, how do we manage with the dynamic data sent by the server.
Thanks for the reply. It was helpful. I also found a good tutorial at Even it speaks the same point you have said(Everything starts with a html).

I have one simple doubt. If this is a case what would be the situation if this page where I am applying the ajax, is not a starting page and comes somewhere in the middle of the page flow, and this page has some text to be displayed on the top say Name of the user. How do you manage the dynamic values with a html.