I use the following code to flush the role, but I use the
request.isUserInRole('Anonymous'), the result is still true:
| private void logout() throws Exception {
|
| String domainName = "EatOutDomain";
|
| MBeanServer server = (MBeanServer) MBeanServerFactory
|
This issue was solved:
I add the following statement into the persistence.xml in order.jar:
../EatOutEJB3auth.jar
The content like following:
java:/EatOutDS
../EatOutEJB3auth.jar
I have two EJB3 subsystem:
Auth system: was packed in auth.jar file
and
Order system: was packed in order.jar file
Now, I have a entity bean that's name is EOlocation, and it was packed in
auth.jar:
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class EOlocation implem