sumit S ahuja

Greenhorn
+ Follow
since Sep 08, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sumit S ahuja

Hello,

We are using Websphere MQ and there is JAAS in place. It was all working fine but suddenly one day i started getting exception as below :



Though i cleared it by providing SocketPermission to machine_name in policy file.
I had to add some more permission in policy file to get it worked, as below :



But the thing i really dont know is why it was working earlier and why it needed those changes, when the code is not changed. Does it have anything to do with machine configuration, machine is running on AIX. Please help me here, I am new to MQ and JAAS.

We are applying policy file for JAAS using "-Djava.security.auth.policy=filename" and "-Djava.security.policy=filename".
11 years ago
according to one question at javaranch round up game, following will return false :
Integer a = new Integer(5);
Integer b = new Integer(5);
if (a==b);

this if statement will return false according to java ranch but the correct answer is true as JVM keeps single object for Integer and Short within the range -128 to 127.

hence the result of this if should be true
12 years ago