[jboss-user] [JBoss Microcontainer Development POJO Server] - Implementing a non-flat deployment for Weld Integration

Flavia Rainone do-not-reply at jboss.com
Fri Jul 30 07:11:16 EDT 2010


Flavia Rainone [http://community.jboss.org/people/flavia.rainone%40jboss.com] replied to the discussion

"Implementing a non-flat deployment for Weld Integration"

To view the discussion, visit: http://community.jboss.org/message/555168#555168

--------------------------------------------------------------
I'm having problems with this piece of code, located in org.jboss.weld.resources.ManagerObjectFactory:


public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception
   {
      for (Entry<BeanDeploymentArchive, BeanManagerImpl> entry : Container.instance().beanDeploymentArchives().entrySet())
      {
         if (entry.getKey().getId().equals("flat"))
         {
            return entry.getValue().getCurrent();
         }
      }
      throw new NamingException(messageConveyer.getMessage(CANNOT_LOCATE_BEAN_MANAGER));
   }


Pete, what would be the correct implementation for this?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/555168#555168]

Start a new discussion in JBoss Microcontainer Development POJO Server at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2116]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100730/0b09d0fd/attachment.html 


More information about the jboss-user mailing list