users@glassfish.java.net

Re: jdbc realm with web service security not working

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Mar 2008 06:15:17 PST

Hi. Thanks for the reply. I have attached the WSDL and schema.
I don't know if I configured two types of authentification, I only fallowed the instructions at http://java.sun.com/developer/technicalArticles/J2EE/security_annotation/. It say there:

[i]For EJB web service endpoints with @RolesAllowed, you need to specify the type of authentication to use by specifying the <login-config> and <auth-method> elements in sun-ejb-jar.xml. For username-password authentication, set the <auth-method> element to BASIC, as shown in the following example. This step is required only for EJB web service endpoints, and is not required for EJBs.[/i]

At the moment, I don't have an EAR, i have only deployed it as a EJB module, but I will put it inside an EAR.

P.S. I wanted to build a stateful web service, do you know if it only works in a web app and not in a EJB module? This is the reason i wanted to make an EAR, to contain both my EJB module and the web app part.
Thanks!
[Message sent by forum member 'powerhouse_b' (powerhouse_b)]

http://forums.java.net/jive/thread.jspa?messageID=265477