|
@@ -92,6 +92,7 @@ public class DescriptorHandler extends org.xml.sax.HandlerBase { |
|
|
* constructing the filenames of various parts of the ejb jar. |
|
|
* constructing the filenames of various parts of the ejb jar. |
|
|
*/ |
|
|
*/ |
|
|
private static final String EJB_REF = "ejb-ref"; |
|
|
private static final String EJB_REF = "ejb-ref"; |
|
|
|
|
|
private static final String EJB_LOCAL_REF = "ejb-local-ref"; |
|
|
private static final String HOME_INTERFACE = "home"; |
|
|
private static final String HOME_INTERFACE = "home"; |
|
|
private static final String REMOTE_INTERFACE = "remote"; |
|
|
private static final String REMOTE_INTERFACE = "remote"; |
|
|
private static final String LOCAL_HOME_INTERFACE = "local-home"; |
|
|
private static final String LOCAL_HOME_INTERFACE = "local-home"; |
|
@@ -273,7 +274,7 @@ public class DescriptorHandler extends org.xml.sax.HandlerBase { |
|
|
throws SAXException { |
|
|
throws SAXException { |
|
|
this.currentElement = name; |
|
|
this.currentElement = name; |
|
|
currentText = ""; |
|
|
currentText = ""; |
|
|
if (name.equals(EJB_REF)) { |
|
|
|
|
|
|
|
|
if (name.equals(EJB_REF) || name.equals(EJB_LOCAL_REF)) { |
|
|
inEJBRef = true; |
|
|
inEJBRef = true; |
|
|
} else if (parseState == STATE_LOOKING_EJBJAR && name.equals(EJB_JAR)) { |
|
|
} else if (parseState == STATE_LOOKING_EJBJAR && name.equals(EJB_JAR)) { |
|
|
parseState = STATE_IN_EJBJAR; |
|
|
parseState = STATE_IN_EJBJAR; |
|
@@ -302,7 +303,7 @@ public class DescriptorHandler extends org.xml.sax.HandlerBase { |
|
|
processElement(); |
|
|
processElement(); |
|
|
currentText = ""; |
|
|
currentText = ""; |
|
|
this.currentElement = ""; |
|
|
this.currentElement = ""; |
|
|
if (name.equals(EJB_REF)) { |
|
|
|
|
|
|
|
|
if (name.equals(EJB_REF) || name.equals(EJB_LOCAL_REF)) { |
|
|
inEJBRef = false; |
|
|
inEJBRef = false; |
|
|
} else if (parseState == STATE_IN_ENTITY && name.equals(ENTITY_BEAN)) { |
|
|
} else if (parseState == STATE_IN_ENTITY && name.equals(ENTITY_BEAN)) { |
|
|
parseState = STATE_IN_BEANS; |
|
|
parseState = STATE_IN_BEANS; |
|
|