Win a copy of Terraform in Action this week in the Cloud forum!

Divya Janyavula

Greenhorn
+ Follow
since May 24, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Divya Janyavula

Check if you have jars required for using this interface.
9 years ago
We should write try/catch blocks only if we expect to handle exceptions. This is a link for tutorial on Exceptions http://docs.oracle.com/javase/tutorial/essential/exceptions/. This will help you in understanding when to write try/catch blocks and how you can use catch and finally blocks efficiently.

As far as indentation is concerned if you are using an editor like NetBeans or Eclipse you will have built-in support for formatting the contents.
9 years ago
Post the exact location of your exception in the code or post the complete stack trace. Also check if your strYes variable has null value.

Also you have not called the program1 method and intMoney variable value will be null. This also might be the problem
9 years ago
After enabling query caching you can print the sql statements and observe how many queries go to DB when caching is enabled.
Consider if you want to use one hibernate session through one user request(using same session across multiple DAOs). As far as I know it is not a wise decision to open and close session for every DB transaction.

Is it a web application? Then you might want to use same hibernate session in a single user session. If so where do you want to place your session?
I think you should check if your Apache CXF version supports JAX-WS. Somewhere the JAX-RPC and JAX-WS are getting mixed.
9 years ago
Can you modify it like this and try

9 years ago
I am not sure if we can see the VM behavior while debugging. If you want to understand when instances are created etc. then you can use constructors, static blocks, instance blocks.

Start with a simple latest JAX-WS tutorial like a web-service which will return you sum of two numbers. Once you are familiar with it open the WSDL and see the various elements it has and their purpose.

After a simple example in JAX-WS you can start working on little bit complex ones like passing XMLs and marshalling/unmarshalling them, sending attachments, securing web services etc.

Are you asking about JAX-RPC or JAX-RS?

If JAX-RPC then as far as I know JAX-RPC is old. Refer to this link http://www.ibm.com/developerworks/webservices/library/ws-tip-jaxwsrpc/index.html for more understanding.

You can use IDE like NetBeans or eclipse which has support for WebService development.

I do not have names of specific books but you can find lots of examples in internet.
9 years ago
I would prefer to search for a simple servlet tutorial and understand the details. Then you can implement one on your own.
9 years ago
JSP
I got confused as the doGet, doPost implementations were folded by NetBeans. I realized that doGet/doPost will call this processRequest method.

Thanks for the replies.
9 years ago
Hi,
I have created a Servlet using NetBeans IDE. The generated code contains processRequest method. I checked this method and did not find it in Servlet API. Is it fine to use this method to handle GET and POST requests.

How this actually works. Any link to the same is appreciated.
9 years ago
In the code we were using static variables to read from the InputStream. This static variable was being shared between threads. Once we made this variable non-static the issue got resolved.
9 years ago
I want to know a scenario where a parent tag can be used in component tag.

Also are components used in real time scenarios?
Hi,
We are facing below issue in multi-threading environment where code is deployed in WAS7.0. The code reads XML from a URLConnection. Below is sample log from the websphere logs
[Webcontainer :1] XML Read : <book id
[Webcontainer :2] XML Read : ="book1" ><name>Book1</name></book>

The actual output should be - <book id="book1"><name>Book1</name></book>

The code that reads the XML from the connection is not synchronized. Is it possible that first webcontainer thread reads part of it and the rest of it is picked by next webcontainer thread?
9 years ago