diff --git a/jpos/src/main/java/org/jpos/q2/security/SMAdaptor.java b/jpos/src/main/java/org/jpos/q2/security/SMAdaptor.java index b14c445735..dfa93cb5fe 100644 --- a/jpos/src/main/java/org/jpos/q2/security/SMAdaptor.java +++ b/jpos/src/main/java/org/jpos/q2/security/SMAdaptor.java @@ -56,6 +56,7 @@ protected void initService () throws Exception { sm = (SMAdapter) factory.newInstance (getImpl ()); factory.setLogger (sm, e); factory.setConfiguration (sm, e); + NameRegistrar.register (getName (), sm); } public void setImpl (String clazz) { @@ -65,10 +66,6 @@ public void setImpl (String clazz) { public String getImpl() { return clazz; } - - protected void startService () throws Exception { - NameRegistrar.register (getName (), sm); - } protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); }