Hi guys i am facing a problem where when i try to read the message at my server i am getting this error.
java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[application_loginid, Administrators]
i am setting the context security principal value as "jndiuser" but in the receiver end i am getting the above error with principal value as application_loginid instead of "jndiuser".
I cant understand how that principal value is getting updated can anyone explain?
public static Hashtable<String, String> WLEnv = new Hashtable<String, String>();
WLEnv.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
WLEnv.put(Context.PROVIDER_URL, "<value>");
WLEnv.put(Context.SECURITY_PRINCIPAL, "jndiuser");
WLEnv.put(Context.SECURITY_CREDENTIALS, "password");
InitialContext ctx = InitialContext(WLEnv);
connFactory = (ConnectionFactory) ctx.lookup("<CF lookup name>");