5 Replies Latest reply on Dec 16, 2010 2:04 PM by peterj

    taking out in memory database

    mschwery

      I have to take out the hypersonic database in the default profile and move that to a sql server database.

      I've been told jboss can crerate what it needs by having DDLAdmin privleges or you can write a script to get the schema from hypersonic and recreate it in sql server.

       

      Can anyone tell how to do these things.

        • 1. Re: taking out in memory database
          peterj

          Which version of JBoss AS? The specific steps vary with the version, mainly because the messaging provider is different and thus different config files need to be updated.

           

          General steps for 4.0.x and 4.2.x:  http://community.jboss.org/wiki/SetUpMysqlAsDefaultDS

           

          General steps for 4.3 and 5.x: http://community.jboss.org/message/196016#196016

           

          Yes, these are not specific to SQL Server, but the major difference is grabbing the SQL Server files for the *-ds.xml file and the messaging configuration instead of the PostgreSQL or MySQL files.

          • 2. Re: taking out in memory database
            mschwery

            We are using JBoss 5.1 and I've been told that there is a schema for each instance that has to be recreated somewhere else.

            Can you tell me how to get that schema from the hypersonic database before getting rid of it.

            • 3. Re: taking out in memory database
              peterj

              Each service that uses DefaultDS creates its own schema. I think that only the messaging schema is complicated enough that each database needs its own DDL. In your case you would use the docs/examples/jms/mssql-persistence-service.xml. If you look in that file you will see the DDL used. If you follow the instructions from the links above, you replace the server/default/deploy/messaging/hsqldb-persistence-service.xml with mssql-persistence-service.xml and the messaging service loads the schema at first startup.

              • 4. Re: taking out in memory database
                mschwery

                When we took out the internal hypersonic database the instance wouldn't start up because of ejb2-timers.

                How do I set up the database on sql server so that the instance doesn't have problems invoking ejb2-timers.

                • 5. Re: taking out in memory database
                  peterj

                  I recall in 5.0.0 that there was an issue with the EJB3 timer service (see http://community.jboss.org/thread/64688?tstart=0). I don't use EJB 2 so I don't use EJB2 timers and haven't run into this issue. But I came up with the solution for EJB 3 timers by tracking down who was issuing the DDL and determining what to do to correct that.