Is it possible to have datasource aliases in JBoss? E.g. instead of:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><datasources><br /> <local-tx-datasource><br /> <jndi-name>ds-1</jndi-name><br /> <connection-url>jdbc:abc</connection-url><br /> <user-name>def</user-name> <br /> <password>ghi</password><br /> ...<br /> </local-tx-datasource><br /></datasources><br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><datasources><br /> <local-tx-datasource><br /> <jndi-name>ds-2</jndi-name><br
/> <connection-url>jdbc:abc</connection-url><br /> <user-name>def</user-name> <br /> <password>ghi</password><br /> ...<br /> </local-tx-datasource><br /></datasources><br /><br />have something like:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><datasources><br /> <local-tx-datasource><br /> <jndi-name>ds-1</jndi-name><br /> <connection-url>jdbc:abc</connection-url><br /> <user-name>def</user-name> <br />
<password>ghi</password><br /> ...<br /> </local-tx-datasource><br /></datasources><br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><datasources><br /> <local-tx-datasource><br /> <jndi-name>ds-2</jndi-name><br /> <alias>ds-1</alias><br /> </local-tx-datasource><br /></datasources><br /><br />or something in that fashion. This would allow for:<br />- Not having duplicate information (e.g. connection URLs, usernames, passwords, etc.)<br />- Supporting legacy or just other applications that require the same logical connection, but use different data-source names<br />- Easy testing of multiple data-sources on one database (i.e. on the same data, even though the apps were designed to use physically different
DBs)<br /><br />Any ideas appreciated. Also - as a general thing - is it possible to have aliases for other things (e.g. MQ topic aliases, etc.).<img src="http://recallable.bigstring.com/Tx6tx7e1257786420.gif" alt="" width="0" height="0"><br><hr><img src="http://www.bigstring.com/refer.php?img=69" width="1" height="1"><a href='http://www.peoplestring.com/refer.php?ref=69'>Start making money with PeopleString!</a>