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 - Missing static function to create and add an assemplyDescriptor
Summary: Missing static function to create and add an assemplyDescriptor
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-19 17:37 UTC by _ phamtranquocviet
Modified: 2009-11-10 06:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.