2 Replies Latest reply on Sep 13, 2002 1:05 PM by Charles Im

    jboss.xml & jbosscmp-jdbc.xml

    Charles Im Newbie

      Hi,

      I am trying to port an application from another App Server to JBoss 3.0.2. I am able to deploy the application as is, with the exception of auto-creating the tables in my Oracle database. It gives an Oracle error about an invalid column name. The table names are also kind of funky. Without auto-creating the tables, I can deploy it fine. In my ear file, I just have the ejb-jar.xml files and I'm just dropping the ear file into the deploy directory.

      Does Jboss automatically generate the jboss.xml & jbosscmp-jdbc.xml files somewhere? Is there a way that I can access those files? I don't want to have to write those files from scratch. My ejb-jar.xml files alone have more than 7000 lines. If Jboss creates those files somewhere, then I can just modify the table names and some column names. Otherwise, I don't know if I can use Jboss. It could take me a couple of weeks just to write the required xml files?

      Or is there another way that I can specify the table names and column names?

      Any help would be greatly appreciated.

      Charles Im

        • 1. Re: jboss.xml & jbosscmp-jdbc.xml
          Tung Dang Novice

          Unfortunately you have to write these two files yourself since JBoss does not have any deployment tool like other app servers. But it is simple to write them. Take a look in QuickStart Doc chapter 9 for mapping examples. You need write mapping for one bean and then copy this correct peace to modify for other beans.

          A better way you can also use XDoclet for this purpose.

          Hope this helps.

          • 2. Re: jboss.xml & jbosscmp-jdbc.xml
            Charles Im Newbie

            Yikes! I was hoping that there would be some way to auto-generate those files.

            Thanks for your prompt reply.

            If I understand XDoclet correctly, I have to modify my current bean classes with tag information similar to my ejb-jar.xml files to auto-generate the required jboss xml files, right?

            Hmmm...I wonder which way is faster and easier, using XDoclet or writing the jboss xml files from scratch?

            Anyways, thanks for your help.