Server-Side Development Section Index
What features are in Servlet 3.0?
Servlet 3.0 makes key changes from Servlet 2.5 to deliver greater simplicity and ease of development.
What are the new features in Java EE 6?
Java EE 6 introduces a number of key new features.
What is the Java EE 6 Web Profile?
The Java EE 6 Web Profile reduces the download and runtime sizes for applications that don't need the full Java EE 6 version.
How can I get a pooled connection?
If the DataSource supports pooling connections, calling getConnetion() on the source will return a PooledConnection, instead of a plain Connection. The DataSource will implement ConnectionPoolData...more
How can I get a pooled connection?
If the DataSource supports pooling connections, calling getConnetion() on the source will return a PooledConnection, instead of a plain Connection. The DataSource will implement ConnectionPoolData...more
How can you find the cause of a SQL exception?
There are three areas where exception handling your JDBC code has improved with the changes in JDBC 4.0. First off, you can use the Java 5 for-each loop to easily iterate through the cause of an e...more
How do I check if a Connection is still valid / has been closed?
With JDBC 4.0, you can call the isValid(int timeout) method. The timeout represents the number of seconds to wait for a reply. If no reply is acquired during the time, false is returned and the ca...more
How do I setup my JDBC driver to be automatically loaded in Java 6?
Place the name of your java.sql.Driver implementation in the file META-INF/services/java.sql.Driver.
What's the difference between a transient and non-transient JDBC exception?
When making a JDBC call, an exception may happen. If performing the same task could succeed without changing anything, that exception is transient. For instance, a timeout is a type of transient e...more
When was national character set support added to JDBC?
National character set support is part of the JDBC 4.0 specification. It didn't quite make it into Java SE 6.0, though was available in early betas.
When was national character set support added to SQL?
This is part of the SQL 2003 specification.
Where can I read up more on JDBC 4.0?
JDBC 4.0 is defined by JSR 221. Information is available through its JCP home at http://www.jcp.org/en/jsr/detail?id=221.
What is Derby?
Derby is an open source relational database from Apache that is implemented entirely in Java and available under the Apache License. You can get it from http://db.apache.org/derby/.more
When I fetch messages from a UIDFolder via the getMessagesByUID() method, are they returned in any particular order?
The getMessagesByUID(long[] uids) version will return the messages in the order of the UIDs in the array. If one particular UID is invalid, null will be in the returned array. For the getMessagesB...more
When using getMessagesByUID(long start, long end) to fetch a range of messages by UID, how to I specify the last available UID?
The UIDFolder class has a LASTUID constant for just such a purpose.