CDI Activate manufacturer packaged in a jar

I have a producer, I want to put it in a jar so that my diff war files can reference the same implementation

public class LogFactory { @Produces public Logger createLogger(InjectionPoint injectionPoint) { return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName()); } } 

but now it rotates, glassfish (3.0.1) cannot automatically detect the producer method

How to fix it?

+4
source share
1 answer

I'm not 100% sure, but CDI JAR is enabled (i.e. does it have beans.xml )?

+4
source

All Articles