2 Replies Latest reply on Aug 25, 2001 12:07 AM by davidjencks

    JBoss and Object Databases

    psalur

      Hi,

      Has JBoss been tested with any ObjectDatabases ?? I am trying to use ObjectStore Database (an OODMS) and Bean Managed Persistence but for some reason it doesn't seem to work. Should I modify any of the configuration files of JBoss to make it work.

      The test cases I have written makes me beleive that JBoss has a problem working with Object Databases .. some thing to do with the way the persistence manager uses reflection to create the Bean. I tested the persistence part seperately ..like creating an instance of the EntityBean like a regular Java Object and calling ejbCreate() method .. and the bean is being saved to the database .. but when I try the EJB way ... like getting the home reference and calling create method on it .. its throwing the following exception

      javax.ejb.CreateException: java.lang.ExceptionInInitializerError
       at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemot
      eCall.java:245)
       at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
       at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unk
      nown Source)
       at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
      
       at $Proxy0.create(Unknown Source)


      Can anyone suggest me something ????

      Thanks
      Prashanth

        • 1. Re: JBoss and Object Databases
          psalur

          Got JBoss working with Object Store too .. The problem was to do with the classpath settings of JBoss .. All the ejb-jar files from deploy directory needed to be copied to lib/ext ..The same with Poet Object Database too .. Also because of this, the hot deploy feature of JBoss doesn't work !!!

          Thanks
          Prashanth

          • 2. Re: JBoss and Object Databases
            davidjencks

            I'd like to know how you get an object db working with jboss. Do they come with resource adapters or some other kind of driver? Do you know why the classes need to be in lib/ext? This would be good to add to the documentation.


            thanks