Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I have multiple EJB declarations for the same Home and Remote classes?
    text
    copied!<p>Can one declare multiple beans in the <code>ejb-jar.xml</code> (<strong>in EJB 1.1</strong>) deployment descriptor with different names but the same classes behind?</p> <p>For example:</p> <pre><code>&lt;session&gt; &lt;ejb-name&gt;AccountFacade&lt;/ejb-name&gt; &lt;home&gt;com.something.ejb.AccountFacadeHome&lt;/home&gt; &lt;remote&gt;com.something.ejb.AccountFacadeRemote&lt;/remote&gt; &lt;ejb-class&gt;com.something.ejb.AccountFacadeBean&lt;/ejb-class&gt; &lt;session-type&gt;Stateless&lt;/session-type&gt; &lt;transaction-type&gt;Bean&lt;/transaction-type&gt; &lt;/session&gt; &lt;session&gt; &lt;ejb-name&gt;RestrictiveAccountFacade&lt;/ejb-name&gt; &lt;home&gt;com.something.ejb.AccountFacadeHome&lt;/home&gt; &lt;remote&gt;com.something.ejb.AccountFacadeRemote&lt;/remote&gt; &lt;ejb-class&gt;com.something.ejb.AccountFacadeBean&lt;/ejb-class&gt; &lt;session-type&gt;Stateless&lt;/session-type&gt; &lt;transaction-type&gt;Bean&lt;/transaction-type&gt; &lt;/session&gt; </code></pre> <p>For <code>RestrictiveAccountFacade</code> I want to set a higher isolation level in the <code>orion-ejb-jar.xml</code> file, something like:</p> <pre><code>&lt;entity-deployment name="AccountFacade" location="AccountFacade"&gt; &lt;resource-ref-mapping location="..." name="jdbc/..."/&gt; &lt;/entity-deployment&gt; &lt;entity-deployment name="RestrictiveAccountFacade" location="RestrictiveAccountFacade" isolation="serializable"&gt; &lt;resource-ref-mapping location="..." name="jdbc/..."/&gt; &lt;/entity-deployment&gt; </code></pre> <p>Is there a risk involved in doing this, any side effects or unspecified behavior? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload