JBoss Community

Re: security in ejb3.1 using jboss 6.0 CR1

created by aravind kopparthi in EJB3 - View the full discussion

just for checking using annotation even though i would like to keep the security-domain name in configuration over convention ( as it is jboss specific)

i did not work

@org.jboss.ejb3.annotation.SecurityDomain("javaee6-app")
@Stateless
public class SLSBProcessBean
{
...
 
@RolesAllowed(Roles.BUSINESS)
public List getMembers(){
and also Jai you mentioned about TRACE in log4j.xml: I could not find the log4j.xml. can i modify something in jboss-logging.xml?

i added below dependency : i had to use provided other wise it did not get deployed properly ( i got class name null)

<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-ext-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>

              <dependency>

<groupId>org.jboss.ejb3</groupId>

<artifactId>jboss-ejb3-ext-api</artifactId>

<version>1.1.1</version>

<scope>provided</scope>

</dependency>

 

 

LOG:

11:00:18,953 INFO  [com.arjuna.ats.arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713

11:00:19,031 INFO  [com.arjuna.ats.arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService

11:01:45,953 INFO  [STDOUT] Caller : admin

 

11:01:45,968 INFO  [STDOUT] Caller is in Role : false

Reply to this message by going to Community

Start a new discussion in EJB3 at Community