[jboss-user] [EJB 3.0] - Accessing EJB metadata for Web Beans

pete.muir@jboss.org do-not-reply at jboss.com
Thu Nov 20 04:53:30 EST 2008


http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189390#4189390

Web Beans requires the container to provide information about the EJBs inside an application. My proposed SPI for discovering this info from from WB is

/**
  |     * @return A Map of EJB descriptors, keyed by the EJB name
  |     */
  |    public Map<String, EjbDescriptor<?>> discoverEjbs();
   
ublic interface EjbDescriptor<T>
  | {
  |    /**
  |     * @return The EJB Bean class
  |     */
  |    public Class<T> getType();
  | 
  |    /**
  |     * @return The JNDI name under which the EJB is registered
  |     */
  |    public String getJndiName();
  | 
  |    /**
  |     * @return The local interfaces of the EJB 
  |     */
  |    public Iterator<Class<?>> getLocalInterfaces();
  | 
  |    /**
  |     * @return The remove methods of the EJB
  |     */
  |    public Iterator<Method> getRemoveMethods();
  |    
  | }

I'm quite happy to alter the SPI to make implementation easier, but you can at least see the intent of the SPI :-)

How do we go about implementing such an SPI for JBoss 5? Inside the webbeans-ri-int project in the jbossas source tree we have access to the full range of MC connectors.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190794#4190794

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190794



More information about the jboss-user mailing list