I have continued working on this and have learned some things I
didn't understand when I asked this question.
I have succeeded in deploying a PostgreSQL DataSource using the
file system service provider
(com.sun.jndi.fscontext.RefFSContextFactory,
http://java.sun.com/products/jndi/serviceprovid
I'm trying to create a data source as described in paragraph
5.5.1 of the JDBC 2.0 Standard Extension API
(http://java.sun.com/products/jdbc/jdbc20.stdext.pdf).
(Another example: paragraph 3.7.2 "Deploying a Basic Datasource
Object" in http://developer.java.sun.com/developer/Books/JDBCTutorial/)