Maybe it's a quite strange question and actually I don't believe it's possible. But maybe someone met the situation when you need to run different threads under JBoss with different OS credentials? :-) Sci-fi? :-)