This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Working with the data sources | ||
---|---|---|---|
Product: | serverplugins | Reporter: | Libor Kotouc <lkotouc> |
Component: | JBoss | Assignee: | Libor Kotouc <lkotouc> |
Status: | STARTED --- | ||
Severity: | blocker | CC: | pbuzek |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Libor Kotouc
2006-01-06 14:42:14 UTC
*** Issue 71092 has been marked as a duplicate of this issue. *** Using JMx when detecting data source existence implies a server to be in the running state. Will the JBoss plug-in support also handle JMS type interactions for MDB or is this RFE only for DataBase type connections. Also, will the support deploy the appropriate drivers to the JBoss server ? This RFE is for working with databases. I cannot say now whether we will do other types. And yes, the support will deploy the data source definition to the target server. JBoss does not bind the data sources to 'java:comp/env', but only to 'java:' namespace. Thus we must map the generated datasource (say jdbc/MyDatabase) through a server-specific deployment descriptor to the real JNDI name like this (jboss-web.xml): <resource-ref> <res-ref-name>jdbc/MyDatabase</res-ref-name> <jndi-name>java:jdbc/MyDatabase</jndi-name> </resource-ref> This works for the servlets where a web project generates lookup for 'java:/comp/env/jdbc/MyDatabase' and even for the JSP pages where the JSTL sql:query tag is used (JSTL 1.1 implementation prefixes the given dataSource attribute with 'java:comp/env'). To adding a data source to a target server: it would be nice to place the appropriate driver into a target server, too. The JBoss server does not listen on the lib directory changes by default, thus a server must be restarted before deploying a data source. Also, we must detect a situation when a user changes a data source in a project (driver class) and then not to copy the driver class. etc. Branch for this issue was created: branch root: issue71093_branch_root branch name: issue71093_branch - tag on the issue71093_branch BEFORE merging it into javaee5 branch: issue71093_branch_before_merge_to_javaee5 - tag on the javaee5 branch BEFORE merging it with issue71093_branch branch: javaee5_before_merge_with_issue71093_branch - tag on the javaee5 branch AFTER merging it with issue71093_branch branch: javaee5_after_merge_with_issue71093_branch Changes between issue71093_branch_root and issue71093_branch_before_merge_to_javaee5 were merged into javaee5 branch => result tag name is javaee5_after_merge_with_issue71093_branch. Obsolete milestone, please reevaluate |