-
1. Re: Messaging Tests: How to deploy your own DS?
timfox May 25, 2006 10:16 AM (in response to mskonda)I am unsure what you are trying to do.
Are you trying to run the test suite against a sybase database, or use a sybase datasource in a deployed jboss messaging installation? -
2. Re: Messaging Tests: How to deploy your own DS?
mskonda May 25, 2006 10:39 AM (in response to mskonda)trying to run testsuite against sybase database
-
3. Re: Messaging Tests: How to deploy your own DS?
timfox May 25, 2006 10:44 AM (in response to mskonda)Madhu-
Can you follow the instructions on http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUnitTests
Thanks -
4. Re: Messaging Tests: How to deploy your own DS?
mskonda May 25, 2006 11:19 AM (in response to mskonda)Tim, there is one thing that's not clear to me -
in *-persistence-service.xml file, there's a reference to Datasource attribute as shown below(example from sybase-persistence):<server> <mbean code="org.jboss.messaging.core.plugin.JDBCPersistenceManager" name="jboss.messaging:service=PersistenceManager" xmbean-dd="xmdesc/JDBCPersistenceManager-xmbean.xml"> <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends> <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends> <depends optional-attribute-name="ChannelMapper">jboss.messaging:service=ChannelMapper</depends> <attribute name="DataSource">java:/DefaultDS</attribute>
and<mbean code="org.jboss.jms.server.plugin.JDBCChannelMapper" name="jboss.messaging:service=ChannelMapper" xmbean-dd="xmdesc/JDBCChannelMapper-xmbean.xml"> <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends> <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends> <attribute name="DataSource">java:/DefaultDS</attribute>
First thing, there's no (or I couldn't find) *ds.xml that deploys DefaultDS so not sure where is it picking it from
In my case, I have deployed a sybase-ds.xml which deploys a DS with SybaseDS jndi name. Hence I changed the above datasource names to SybaseDS instead of DefaultDS to reflect the change.
However, when I run the tests, it complains the NameNotFoundException (for SybaseDS). -
5. Re: Messaging Tests: How to deploy your own DS?
ovidiu.feodorov May 25, 2006 11:29 AM (in response to mskonda)The minimalistic ServiceContainer we use for testing deploys only one data source under java:/DefaultDS, and that datasource corresponds to the database configuration you specify in tests/etc/container.xml. So, if you add your sybase configuration in tests/etc/container.xml and configure the database to use as follows
<database>sybase</database>
in the same container.xml, you should be fine.
By the way, if you think that http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUnitTests needs to be improved in this respect, please feel free to do so.