Skip to content

Unmarshal EJB 2.1 ejb-jar.xml deployment descriptor #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fabapp2 opened this issue Mar 29, 2022 · 0 comments · Fixed by #64
Closed

Unmarshal EJB 2.1 ejb-jar.xml deployment descriptor #62

fabapp2 opened this issue Mar 29, 2022 · 0 comments · Fixed by #64
Labels

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented Mar 29, 2022

What needs to be done

EjbJarXml specialized resource should unmarshal ejb-jar.xml deployment descriptor for EJB 2.1.

Why it needs to be done

Acceptance Criteria

Given The scanned application contains this ejb-jar.xml deployment descriptor

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar id="ejb-jar_1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
   http://xmlns.jcp.org/xml/ns/javaee/ejb-jar_2_1.xsd" version="2.1">
   <description>Example of a session bean</description>
   <display-name>MyTimeBeanEJBName</display-name>
   <enterprise-beans>
      <session id="Session_MyTime">
         <description>An EJB named MyTimeBean</description>
         <display-name>MyTimeBeanName</display-name>
         <ejb-name>MyTimeBean</ejb-name>
         <local-home>mytimepak.MyTimeLocalHome</local-home>
         <local>mytimepak.MyTimeLocal</local>
         <ejb-class>mytimepak.MyTimeBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
      </session>
   </enterprise-beans>
</ejb-jar>

When projectContext.search(new EjbJarXmlResourceFilter()).get().getEjbJarXml() is called
Then The XML data (e.g. ejb-name) shozdl be accessible through the EjbJarXml API

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment