try
{
conn = cf.createConnection();
assertNotNull(conn);
ConnectionMetaData meta = conn.getMetaData();
// Compare the value from ConnectionMetaData and MANIFEST.MF
Attributes attrs = manifest.getMainAttributes();
log.info("META--> " + meta.getJMSMajorVersion());
log.info("META--> " + meta.getJMSMinorVersion());
log.info("META--> " + meta.getJMSProviderName());
log.info("META--> " + meta.getJMSVersion());
log.info("META--> " + meta.getProviderMajorVersion());
log.info("META--> " + meta.getProviderMinorVersion());
log.info("META--> " + meta.getProviderVersion());
Iterator itr = attrs.entrySet().iterator();
while (itr.hasNext()) {
Object item = itr.next();
log.trace("MANIFEST--> " + item + " : " + attrs.get(item));
}
assertEquals(attrs.getValue("Implementation-Title"), meta.getJMSProviderName());
String ver = attrs.getValue("Implementation-Version");
assertTrue(-1 != ver.indexOf(meta.getProviderVersion()));
}
finally
{
if (conn != null)
{