ejb 3.0 - Can you package an ejb interceptor in a library? -


and if how do it?

i have got ejb @javax.interceptor.aroundinvoke interceptor move library reuse. moved code library fixed dependencies in maven , compiles now. on deploy following error message:

09.02.2011 14:19:48 com.sun.logging.logdomains$1 log schwerwiegend: exception while invoking class org.glassfish.ejb.startup.ejbapplication start method java.lang.runtimeexception: java.lang.classnotfoundexception:  

from jsr 318: enterprise javabeans, version 3.1 - ejb core contract , requirements:

20.3 packaging requirements

the ejb-jar file or .war file must contain, either inclusion or by reference, class files of each enterprise bean follows:

  • the enterprise bean class.
  • the enterprise bean business interfaces, web service endpoint interfaces, , home , com-ponent interfaces.
  • interceptor classes.
  • the primary key class if bean entity bean.

we .jar file contains second file “by reference” if second file named in class-path attribute in manifest file of referencing .jar file or contained (either inclusion or reference) in .jar file named in class-path attribute in manifest file of referencing .jar file.

so i'd yes, can package interceptor class in library .jar file.

check that: 1) library got packaged in , deployed ejb-jar file; , 2) library .jar referenced in manifest file described above.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -