Sunday, June 18, 2006

JDBC questions

-How would U insert a binary file contents into the database?
- What are batch statements in JDBC? Can U add a select sql in batch processing?
- How will U check that the JDBC driver supports batch processing/scrollable resultset etc?
- What are the different types of Rowsets? What is the advantage of a rowset?

Wednesday, May 03, 2006

On Logging

What is the difference btw Log4J and java.util.logging?
Explain the concept of receivers and appenders in Log4J.
What is NDC, MDC in Log4J terminology?
I have 2 components - one written in C# and one in Java. How can I store the log of both of them in a single database table?
Can I make changes to the Log4J config file at runtime? (not requiring a server restart)

Thursday, January 26, 2006

Messaging Questions

How do I gaurantee once and only once delivery of a message in JMS ?
Can a message producer and message consumer be part of the same transaction?
How are message acknowledgements handled in JMS?

Scenario:
An application makes a remoting call and then puts a message on a queue and then makes one more database call. I want all of these 3 operations to be executed in a single transaction. How can U accomplish this ?

Tuesday, January 03, 2006

How would U debug a multi-threaded application?. Say U have a Swing Application that creates 3 threads. Have U tried multi-threading debugging in Eclipse, Sun Studio ?

In a Swing Application, if the main thread dies, then what happens?