public ConnectionMetaData()
{
Assembly self = Assembly.GetExecutingAssembly();
AssemblyName asmName = self.GetName();
this.nmsProviderName = asmName.Name;
this.providerMajorVersion = asmName.Version.Major;
this.providerMinorVersion = asmName.Version.Minor;
this.providerVersion = asmName.Version.ToString();
this.nmsxProperties =
new String[]{ "NMSXGroupID", "NMSXGroupSeq", "NMSXDeliveryCount", "NMSXProducerTXID" };
foreach(AssemblyName name in self.GetReferencedAssemblies())
{
if(0 == string.Compare(name.Name, "Apache.NMS", true))
{
this.nmsMajorVersion = name.Version.Major;
this.nmsMinorVersion = name.Version.Minor;
this.nmsVersion = name.Version.ToString();
return;
}
}
throw new NMSException("Could not find a reference to the Apache.NMS Assembly.");
}