I have a bean that is annotated with @Webservice and @SecurityDomain
@Stateless()
@WebService()
@SecurityDomain("MyDomain")
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class DownPartBean implements DownPartLocal, DownPartRemote {
...
}
MyDomain is setup appropriately in the login-config.xml and is proven to be working from other context.
However, if I connect from a ws client even with the user and password set, the authentication always fails.
I've also edit the META-INF/jboss.xml file such that it looks like below but it never works. The documentation relating to how to secure an end point does not work for me and I suspect I probably did something wrong.
Appreciate any help..
-don
jboss.xml
<security-domain>MyDomain</security-domain>
<enterprise-beans>
<ejb-name>DownPartBean</ejb-name>
<port-component>
<port-component-name>
DownPartBean
</port-component-name>
<port-component-uri>
/lsaplEjbServer/DownPartBean
</port-component-uri>
<auth-method>BASIC</auth-method>
</port-component>
</enterprise-beans>
Please start from the working sample from the testsuite. There is one for BASIC authentication