>>Secured web service with file properties for login work well. With database authentication I forget to define the DataSource on JBoss AS, in which xml should I define it ?
Yes, you need a *-ds.xml file to define the database. It should use the same JNDI name (TestWSSecurityDS) that you used in login-config.xml.