B.5.4. "Invalid object name 'JMS_SUBSCRIPTIONS' Exception

If you receive an exception like the one in Example B.20, “JMS_SUBSCRIPTIONS Exception” during startup, specify a SelectMethod in the connection URL, as shown in Example B.21, “Specifying a SelectMethod”.

Example B.20. JMS_SUBSCRIPTIONS Exception

	  17:17:57,167 WARN  [ServiceController] Problem starting service jboss.mq.destination:name=testTopic,service=Topic
	  org.jboss.mq.SpyJMSException: Error getting durable subscriptions for topic TOPIC.testTopic; - nested throwable: (java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'JMS_SUBSCRIPTIONS'.)
	  at org.jboss.mq.sm.jdbc.JDBCStateManager.getDurableSubscriptionIdsForTopic(JDBCStateManager.java:290)
	  at org.jboss.mq.server.JMSDestinationManager.addDestination(JMSDestinationManager.java:656)

Example B.21. Specifying a SelectMethod

	  <connection-url>jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=jboss</connection-url>