Folks at jBoss

I updated by jboss.xml to use option B or C (see jboss.xml below)

I then get -

Container factory] Deploying Person
Container factory] Deploying UniteItDotCom
Container factory] Deploying Customer
Container factory] Deployed application:
file:/C:/java/jBoss/bin/../tmp/deploy/
yaccount.jar/ejb1010.jar
J2EE Deployer] J2EE application: file:/C:/java/jBoss/deploy/myaccount.jar is
de
loyed.
Customer] New PersonBean
Customer] CustomerBean setSessionContext()
Customer] CustomerBean ejbCreate()
Customer] Exception: java.io.NotSerializableException:
org.jboss.ejb.StatefulSe
sionEnterpriseContext$StatefulSessionContextImpl

If you look at the jboss.xml file you will see I have 3 types of accounts.
InternalAccount and ExternalAccount extend Account ( the bean and the remote
interface). I only get the above error if I set 

<configuration-name>Isolation</configuration-name> for InternalAccount.
Looking at the error output the error is generated in the CustomerBean when
looking up InternalAccount.

Any ideas?

<?xml version="1.0" encoding="Cp1252"?>

<jboss>
     <secure>true</secure>
     <container-configurations>
       <container-configuration
configuration-class="org.jboss.ejb.deployment.EntityContainerConfiguration">
         <container-name>Isolation</container-name>
         <call-logging>false</call-logging>
        
<container-invoker>org.jboss.ejb.plugins.jrmp12.server.JRMPContainerInvoker<
/container-invoker>
        
<instance-pool>org.jboss.ejb.plugins.EntityInstancePool</instance-pool>
        
<instance-cache>org.jboss.ejb.plugins.EntityInstanceCache</instance-cache>
        
<persistence-manager>org.jboss.ejb.plugins.BMPPersistenceManager</persistenc
e-manager>
         <transaction-manager></transaction-manager>
         <authentication-module></authentication-module>
         <role-mapping-manager></role-mapping-manager>
         <container-invoker-conf>
           <Optimized>false</Optimized>
         </container-invoker-conf>
         <container-cache-conf>
        
<cache-policy>org.jboss.ejb.plugins.NoPassivationCachePolicy</cache-policy>
         </container-cache-conf>
         <container-pool-conf>
           <MaximumSize>100</MaximumSize>
           <MinimumSize>10</MinimumSize>
         </container-pool-conf>
         <commit-option>B</commit-option>
       </container-configuration>
     </container-configurations>
     <resource-managers>
       <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
         <res-name>jdbc/UniteItDB</res-name>
         <res-jndi-name>UniteItDataSource</res-jndi-name>
       </resource-manager>
     </resource-managers>
     <enterprise-beans>
       <session>
         <ejb-name>Customer</ejb-name>
         <jndi-name>trader/Customer</jndi-name>
         <configuration-name></configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </session>
       <session>
         <ejb-name>UniteItDotCom</ejb-name>
         <jndi-name>trader/UniteItDotCom</jndi-name>
         <configuration-name></configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </session>
       <session>
         <ejb-name>Person</ejb-name>
         <jndi-name>entity/Person</jndi-name>
         <configuration-name></configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </session>
       
       <entity>
         <ejb-name>ReferingMember</ejb-name>
         <jndi-name>entity/ReferingMember</jndi-name>
         <configuration-name></configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </entity>
       <entity>
         <ejb-name>FinancialInstitution</ejb-name>
         <jndi-name>bank/FinancialInstitution</jndi-name>
         <configuration-name></configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </entity>
       <entity>
         <ejb-name>Member</ejb-name>
         <jndi-name>entity/Member</jndi-name>
         <configuration-name></configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </entity>
       
       <entity>
         <ejb-name>InternalAccount</ejb-name>
         <jndi-name>account/InternalAccount</jndi-name>
         <configuration-name>Isolation</configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </entity>
       <entity>
         <ejb-name>ExternalAccount</ejb-name>
         <jndi-name>account/ExternalAccount</jndi-name>
         <configuration-name>Isolation</configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </entity>
       <entity>
         <ejb-name>Account</ejb-name>
         <jndi-name>account/Account</jndi-name>
         <configuration-name>Isolation</configuration-name>
         <resource-ref>
           <res-ref-name>jdbc/UniteItDB</res-ref-name>
           <resource-name>jdbc/UniteItDB</resource-name>
         </resource-ref>
       </entity>
       
     </enterprise-beans>
   </jboss>




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to