public static Collection<MessageStore> find(String url) throws JMSException
{
try
{
final JDBCAdapter adapter = StoreUtils.getJDBCAdapter(url);
final Connection connection = DriverManager.getConnection(url);
if (!dbsCreated.contains(url))
{
adapter.createDatabase(connection);
dbsCreated.add(url);
}
final Collection<MessageStore> rval = new ArrayList<MessageStore>();
for (String storeId : adapter.getStores(connection))
{
rval.add(create(url, storeId));
}
connection.close();