Hi Martin, Can you just make sure you use @Resource rather then @Ressource like you mentioned in the subject. Might have just been a typo, I hope. The connection details are specified in a JDBC Datasource configuration file which you need to deploy.
Here is an example of a PostgreSQL one (postgres-ds.xml): anonymous wrote : | <?xml version="1.0" encoding="UTF-8"?> | | <local-tx-datasource> | <jndi-name>PostgresDS</jndi-name> | <connection-url>jdbc:postgresql://localhost:5432/jboss</connection-url> | <driver-class>org.postgresql.Driver</driver-class> | <user-name>userid</user-name> | password | </local-tx-datasource> | | Just make sure the drivers are installed into the lib directory. The xml file shown above goes into the deploy directory. Then all you need to do is to specify the Resource by name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916854#3916854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916854 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
