ClassName imple = ArjunaNames.Implementation_ObjectStore_defaultStore();
String localOSRoot = "foo";
String objectStoreDir = "/bar";
String shareStatus = "OS_SHARED";
ObjectName objName = new ObjectName("JNS:myname");
try
{
objName.setClassNameAttribute(Environment.OBJECTSTORE_TYPE, imple);
objName.setStringAttribute(Environment.LOCALOSROOT, localOSRoot);
objName.setStringAttribute(Environment.OBJECTSTORE_DIR, objectStoreDir);
objName.setStringAttribute(Environment.OBJECTSTORE_SHARE, shareStatus);
}
catch (Exception e)
{
e.printStackTrace(System.err);
assertFailure();