Hi Da-Ming...

Well, I never said that can't be done, just that I was not sure exactly how 
to do it. It may be simple, but I don;t have the manual commited to memory 
<Grin>.  MVC PM gives you all the source code it generates, so worst case 
might be you have to go in and change the data source.

I saw that you reposted on the MVC list, so prehaps the author will make a 
suggestion. He is very responsive.

Jim

--On Friday, June 22, 2001 10:21 AM -0600 Da-Ming Duan 
<[EMAIL PROTECTED]> wrote:

> Thanks Jim. It realy helps. I think there should be someway to specify
> different datasources with MVC PM, otherwise it is useless for any
> enterprise application that has its own database.
>
> Da-Ming
>
> Message: 9
>
>> Date: Thu, 21 Jun 2001 20:22:46 -0400
>> From: Jim Archer <[EMAIL PROTECTED]>
>> To: Da-Ming Duan <[EMAIL PROTECTED]>
>> cc: [EMAIL PROTECTED]
>> Subject: [JBoss-user] Re: MVCSoft Persistence Manager and JBoss
>> Reply-To: [EMAIL PROTECTED]
>>
>> Hello...
>>
>> Let me take a shot at these...
>>
>> --On Thursday, June 21, 2001 4:43 PM -0600 Da-Ming Duan
>> <[EMAIL PROTECTED]> wrote:
>>
>> > How and where to specify a datasource in a EJB2.0 jar with MVCSoft
>> > Persistence Manager? Can I incude jaws.xml in an EJB2.0 jar to specify
>> > a datasource with <jaws><datasource>MyOracleDBPool</datasource></jwas>?
>>
>> The code generated by the MVC PM uses DefaultDS. I'm noit sure if this
>> can be easily changed, as I have never tried. You won;t need Jaws with
>> the MVC PM, as it generates BMP code for you.
>>
>> > 2. There are 4 elements for MVCSoft Code Generator: EJB2.0 input jar,
>> > EJB1.1 output jar, a temperory directory and the file with the DDL
>> > output for the tables. What is this file and what are these tables?
>> > Where to put this file when archiving the beans?
>>
>> The "DDL" file is actually just a bunch of SQL create statements you can
>> use to create your tables in your database. You don't put this file
>> anywhere. Since your now using BMP, jBoss won;t create the tables for
>> you, so you'll have to use this file to do that yourself.
>>
>> Using a mapping.xml file, you can control the names and schemas of each
>> table you'll need.
>>
>> > 3. Can jboss.xml still be put in the directory META-INF for an EJB2.0
>> > jar?
>>
>> Yes, and depending upon what your doing you may still need it.
>>
>> > 4. Are mapping.xml and default_mapping.xml used to replace JBoss'
>> > jaws.xml and standardjaws.xml? If yeas, the mapping.xml-->jaws.mxl is
>> > OK
>>
>> No, not at all. These files tell the code generator what table an field
>> names and field types and sizes to use for the database tables. Nothing
>> more.
>>
>> > By the way, is there any user email list for MVCSoft Persistence
>> > Manager?
>>
>> Yes, they have a mail list on Yahoo Groups called ejb20-persistence. Its
>> a very low volume and helpfull list.
>>
>> Good luck!
>>
>> Jim
>>
>> ********************************************
>> I shall be telling this with a sigh
>> Somewhere ages and ages hence:
>> Two roads diverged in a wood, and I -
>> I took the one less traveled by,
>> And that has made all the difference.
>>
>> - Robert Frost, 1916
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



********************************************
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to