Jean-Louis MONTEIRO wrote: > > > > The location of the service-jar.xml is a little tricky: it must be in a > specific folder in a META-INF directory and accessible from the classpath. > > I've done the same and it worked for me. > Can you try the following changes ? > > in META-INF/com.mydomain.security/service-jar.xml > (Be careful to the location) > > <?xml version="1.0" encoding="UTF-8"?> > <ServiceJar> > <ServiceProvider > id="My Security Service" > service="SecurityService" > types="SecurityService" > class-name="com.mydomain.security.MySecurityServiceImpl" /> > </ServiceJar> > > in the openejb.xml: > > <SecurityService id="Custom Security Service" > provider="com.mydomain.security#My Security Service"/> > > > Regards, > Jean-Louis > >
Thank you Jean-Louis, it is working when I create an extra jar containing my files and copy it into the openejb lib folder before startup. I tried to get it running with deploying my own SecurityService when I deploy my project. But this doesnt work. It would be nice to have a possibility to plugin a custom SecurityService at runtime. Mathis -- View this message in context: http://www.nabble.com/Define-Custom-SecurityService---configure-service-jar.xml-tp22699295p22719925.html Sent from the OpenEJB User mailing list archive at Nabble.com.
