Hello all!
is something like this (which comes from BEA Weblogic) possible with JBoss???
I need this for porting an application from Bea to JBoss
Environment env = new Environment( );
env.setProviderUrl( url );
env.setSecurityPrincipal( username );
env.setSecurityCredentials( password );
try
{
// Authenticate user credentials, populating Subject
Authenticate.authenticate(env, subject);
}
catch( RemoteException re )
{
System.err.println( "Error: Remote Exception on authenticate, " + re.getMessage( ) );
throw new LoginException( re.toString( ) );
}
catch( IOException ioe )
{
System.err.println( "Error: IO Exception on authenticate, " + ioe.getMessage( ) );
throw new LoginException(ioe.toString());
}
catch( LoginException le )
{
System.err.println( "Error: Login Exception on authenticate, " + le.getMessage( ) );
throw new LoginException( le.toString( ) );
}