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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to