This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107280

Summary: Missing static function to create and add an assemplyDescriptor
Product: javaee Reporter: _ phamtranquocviet <phamtranquocviet>
Component: EJBAssignee: issues@javaee <issues>
Status: NEW ---    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ phamtranquocviet 2007-06-19 17:37:47 UTC
I want to add the following lines into ejb-jar.xml:
<assembly-descriptor>      
  <interceptor-binding>         
    <ejb-name>*</ejb-name>         
    <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
  </interceptor-binding>   
</assembly-descriptor>

I am looking for something like this, and they are not available:
AssemblyDescriptor.newAssemblyDescriptor()//MISSING A WAY TO CREATE ASSEMBLYDESCRIPTOR
InterceptorBinding in = (InterceptorBinding)ejbJarProxy.createBean("InterceptorBinding");//MISSING A WAY TO CREATE 
INTERCEPTORBINDING
in.setEjbName("*");
String[] intClass = new String[1];
intClass[0] = "org.jboss.seam.ejb.SeamInterceptor";
in.setInterceptorClass(intClass);//MISSING METHOD
AssemblyDescriptor.addInterceptorBinding(in);//MISSING METHOD

Thanks.