Hi,

I get an java.rmi.AccessException exception because the EJBs that the
WebService implementation class is trying to use are username/password
protected. We were using weblogic and with that, the client was able to
authenticate by making call:

call.setProperty("javax.xml.rpc.security.auth.username", "username");
call.setProperty("javax.xml.rpc.security.auth.password", "password");

I tried using both the 
call.setProperty(Call.USERNAME_PROPERTY,
"username")/call.setProperty(Call.PASSWORD_PROPERTY, "password) 
and also 
call.setUsername("username")/call.setPassword("password")
but both don't seem to work as I still keep getting the AccessException:
Security Violation User '<anonymous>' has insufficient permission to access
EJB

Does anyone know how to get around this problem?

Thanks,

Ramesh.

Reply via email to