Please remove me from this list -----Original Message----- From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Sent: Wednesday, June 20, 2012 9:15 PM To: users@openejb.apache.org Subject: Re: SessionContext isCallerInRole always returns false
Did you try to put it in server.xml? Le 21 juin 2012 02:42, "Anthony Fryer" <apfr...@hotmail.com> a écrit : > I include a META-INF/context.xml file in my war file, the contents are > below... > > <?xml version="1.0" encoding="UTF-8"?> <Context> > <Realm className="org.apache.catalina.realm.DataSourceRealm" > dataSourceName="pokerDatabase" > localDataSource="true" > digest="MD5" > debug="99" > userTable="USER" > userNameCol="USER_NAME" > userCredCol="PASSWORD" > userRoleTable="USER_ROLES" > roleNameCol="ROLE" > /> > </Context> > > My datasource is configured in tomee.xml but made available in the > java:comp/env namespace by the following in my web.xml... > > <web-app> > ... > <resource-ref> > <res-ref-name>pokerDatabase</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > </web-app> > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/SessionContext-isCallerInRole-alwa > ys-returns-false-tp4655705p4655711.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >