diff options
author | vamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-03 20:19:06 +0000 |
---|---|---|
committer | vamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-03 20:19:06 +0000 |
commit | de9bc569bc59080f65e69f37119320eeacae3cff (patch) | |
tree | 5bc636d73918b2cbdc0e22d6bcae497c9fab55bd /branches/sca-java-1.x/modules | |
parent | 67215d97b5a431c4101f42b049041553fa00fbd7 (diff) |
TUSCANY-2956 Java EE Archive introspection
o when mapped name is null, use bean name as mapped name.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@761778 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules')
-rw-r--r-- | branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java b/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java index ff4a10bff8..7857eea08e 100644 --- a/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java +++ b/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java @@ -306,6 +306,10 @@ public class JavaEEIntrospectorImpl implements JavaEEIntrospector { ejbInfo.ejbType = bean.getSessionType().equals(SessionType.STATEFUL) ? org.apache.tuscany.sca.contribution.jee.EjbInfo.EjbType.SESSION_STATEFUL : bean.getSessionType().equals(SessionType.STATELESS) ? org.apache.tuscany.sca.contribution.jee.EjbInfo.EjbType.SESSION_STATELESS : org.apache.tuscany.sca.contribution.jee.EjbInfo.EjbType.SESSION_UNKNOWN; ejbInfo.mappedName = bean.getMappedName(); + //FIXME: Is it ok to use beanName when mapped name is null? + if(ejbInfo.mappedName == null) { + ejbInfo.mappedName = ejbInfo.beanName; + } // Process Remote Business interfaces of the SessionBean for (String intfName : bean.getBusinessRemote()) { |