At 13:48 15.11.00 , you wrote:
>Hi!
> >Yap, Robert got the idea ("... generic table access beans, picking up the
>database at
> >runtime ...") and I've understood that is currently not possible. It will
>be nice to
> >have such features in the future releases of the JBoss, I think (since
>there are a
> >lot of users/developer which already have one or more databases with
>different
> >contents) ?! What do you think ??
>
>Are you really really saying that for each bean, say FooBean, that you
>deploy you are going to have content to it coming from several
>datasources???
he most certainly is ;-).
> >If any of you still have some ideas or this feature shall be added to the
>"To do"
> >list for future releases, please let me know.
this is not a jboss restriction, it's simply not how entity beans were
meant to be used. I checke the spec and i couldn't find anything that
doesn't allow you to do that if you take care of the uniquness of your PKs
but still it is a VERY sick design that I would recommend against VERY
strongly. put some energy into a tool that extracts the jdbc metadata from
the existing database that generates the deployment files for your beans
and deploy them once per datasource and table. that's the cleanest way
IMHO. what do you save with the other approach? is your environment really
that dynamic? your trading that for a LOT of potential trouble and
housekeeping that the ejb server should do for you.
do yourself a favour and please reconsider your design.
>Well, first I want to find out what you really are trying to do, and why. I
>think that if you have several datasources with content for one bean, then
>you are asking for trouble.
+1 see above
>So, for example, you're saying that you can have a FooBean that can get data
>from both an Oracle database and a Sybase database *at the same time*!???
regards,
robert
>/Rickard
>
>
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Problems?: [EMAIL PROTECTED]
(-) Robert Kr�ger
(-) SIGNAL 7 Gesellschaft f�r Informationstechnologie mbH
(-) Br�der-Knau�-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]