Author: thomas.diesler(a)jboss.com
Date: 2007-04-12 04:41:55 -0400 (Thu, 12 Apr 2007)
New Revision: 2824
Modified:
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ApplicationMetaDataAdaptor.java
Log:
Remove support for multiple <port-component>
Modified:
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ApplicationMetaDataAdaptor.java
===================================================================
---
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ApplicationMetaDataAdaptor.java 2007-04-12
08:04:20 UTC (rev 2823)
+++
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ApplicationMetaDataAdaptor.java 2007-04-12
08:41:55 UTC (rev 2824)
@@ -92,13 +92,9 @@
ubmd.setEjbName(container.getEjbName());
ubmd.setEjbClass(container.getBeanClassName());
- EnterpriseBean dd = container.getXml();
-
- // TODO: How do we deal with this?
- if (dd.getPortComponents().size() > 1)
- throw new IllegalArgumentException("TODO: Cannot handle more than one
port-component per bean");
-
- for (Ejb3PortComponent portComp : dd.getPortComponents())
+ EnterpriseBean bean = container.getXml();
+ Ejb3PortComponent portComp = (bean != null ? bean.getPortComponent() : null);
+ if (portComp != null)
{
UnifiedEjbPortComponentMetaData ejbPortComp = new
UnifiedEjbPortComponentMetaData();
ejbPortComp.setPortComponentName(portComp.getPortComponentName());