Storing massive sized field into Entity Bean


EJB programming & troubleshooting: Storing massive sized field into Entity Bean

  1. Storing massive sized field into Entity Bean (1 messages)


    I am trying to store a field into a EMP 2.0 Entity Bean, whose size is in the order of a MB's(20-50 MB).

    When i do that i get the following error

    2003-03-03 14:00:19,671 ERROR [org.jboss.ejb.GlobalTxEntityMap] Store failed on entity: xyz/units
    javax.ejb.EJBException: Store failed; CausedByException is:
    Connection is broken
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(
    at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEntity(
    at org.jboss.ejb.EntityContainer.storeEntity(
    at org.jboss.ejb.GlobalTxEntityMap.syncEntities(
    at org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanup.beforeCompletion(
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(
    at org.jboss.ejb.plugins.LogInterceptor.invoke(
    at org.jboss.ejb.StatelessSessionContainer.invoke(
    at org.jboss.ejb.Container.invoke(
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(
    at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at sun.rmi.server.UnicastServerRef.dispatch(
    at sun.rmi.transport.Transport$
    at Method)
    at sun.rmi.transport.Transport.serviceCall(
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(
    at sun.rmi.transport.tcp.TCPTransport$
    java.sql.SQLException: Connection is broken

    I am using JBoss 3.0.6, CMP 2.0

    Can somebody let me know what am i doing wrong ? I am pretty sure it is to do with the xml settings in one of the xml files.

    I have ejb-jar.xml in my .EAR and i am using that only, I dont have a specific jboss.xml or jbossjdbc.xml .. do i have to do any specific changes in those files ? If yes can you guys please point me to a document.


    Meka Toka
  2. which DBMS are you using ?

    Have you tried Oracle and Pointbase ?