mirror of https://github.com/apache/activemq.git
Fix the test as the recent fixes ensure that for a non-persistent broker config, there is not a persistent DB store.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1357686 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
801e26ac38
commit
5d0182266f
|
@ -31,7 +31,9 @@ import javax.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import javax.jms.Session;
|
||||||
import javax.jms.Topic;
|
import javax.jms.Topic;
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.TransportConnector;
|
import org.apache.activemq.broker.TransportConnector;
|
||||||
|
@ -136,7 +138,7 @@ public class ConfigTest extends TestCase {
|
||||||
*/
|
*/
|
||||||
public void testJdbcConfig() throws Exception {
|
public void testJdbcConfig() throws Exception {
|
||||||
// System.out.print("Checking jdbc persistence adapter configuration...
|
// System.out.print("Checking jdbc persistence adapter configuration...
|
||||||
// ");
|
// ");
|
||||||
File journalFile = new File(JOURNAL_ROOT + "testJDBCConfig/journal");
|
File journalFile = new File(JOURNAL_ROOT + "testJDBCConfig/journal");
|
||||||
recursiveDelete(journalFile);
|
recursiveDelete(journalFile);
|
||||||
|
|
||||||
|
|
|
@ -6,23 +6,23 @@
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
(the "License"); you may not use this file except in compliance with
|
(the "License"); you may not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<beans
|
<beans
|
||||||
xmlns="http://www.springframework.org/schema/beans"
|
xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:amq="http://activemq.apache.org/schema/core"
|
xmlns:amq="http://activemq.apache.org/schema/core"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
||||||
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
|
||||||
|
|
||||||
<amq:broker brokerName="brokerJdbcConfigTest" persistent="false" useShutdownHook="false" deleteAllMessagesOnStartup="true">
|
<amq:broker brokerName="brokerJdbcConfigTest" persistent="true" useShutdownHook="false" deleteAllMessagesOnStartup="true">
|
||||||
|
|
||||||
<amq:persistenceAdapter>
|
<amq:persistenceAdapter>
|
||||||
<amq:jdbcPersistenceAdapter>
|
<amq:jdbcPersistenceAdapter>
|
||||||
|
|
Loading…
Reference in New Issue