Re: [JBoss-user] login-config.xml and ErrorHandlers

2003-10-05 Thread Scott M Stark
Just use the org.jboss.metadata.XmlFileLoader.getDocument(InputStream is, String inPath) which installs an error handler and an entity resolver for the JBoss dtds. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian Wallis wrote: On Th

Re: [JBoss-user] login-config.xml and ErrorHandlers

2003-10-05 Thread Brian Wallis
On Thu, 2 Oct 2003 11:33, Adrian Brock wrote: > CIMF (Code It Mother F*ck*r) and submit the patch :-) Language! I'm so [EMAIL PROTECTED]&^ shocked! ;-) I have just about done so but a question about how I've done it I wanted to set a default error handler for every parser, not just this one.

RE: [JBoss-user] EJB inserts do not show up in subsequent queries:

2003-10-05 Thread Rod Macpherson
Thanks Adrian, To reiterate, the behavior we noticed was that on 3.2 database inserts and updates were not being refreshed. The problem was systemic and it showed up everywhere in the application since we started using release candidates for 3.2 for new development. Given the problem never showed

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 16:53, Ionel GARDAIS wrote: > Great ! > > Did I tell you that I love you ? :) > > for my own knowledge, does a BMP can use a declared > datasource or does it has to go through all the jdbc > connection process ? > Anything in the same VM can use a datasource. Regards, Adr

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Great ! Did I tell you that I love you ? :) for my own knowledge, does a BMP can use a declared datasource or does it has to go through all the jdbc connection process ? > Just create the CMP beans (don't include a > jbosscmp-jdbc.xml) > JBoss will create tables for the beans when they are > fir

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 16:26, Ionel GARDAIS wrote: > I am trying to add an EJB load/store layer to the mail > server developped by A. Oliver. > > It needs to access : > - a table with the usernames and passwords > - 1 or more tables for the emails and attached files > Just create the CMP beans (d

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
I am trying to add an EJB load/store layer to the mail server developped by A. Oliver. It needs to access : - a table with the usernames and passwords - 1 or more tables for the emails and attached files A CMP could allow an automatic table creation and easy finders manipulation. As the tables sh

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Alexey Loubyansky
If the databases (products) and schemas are the same. Then we could add support for it. Scott M Stark wrote: Ok, but the typical usecase people ask about is some failover scenario or dev vs prod database selection where the type mappings are the same.

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Alexey Loubyansky
I don't think it is impossible. Each specific datasource has its own type mappings and SQL functions/templates. At the moment, these are read and assigned to entity and field bridges at deployment time. And there is no way to change them at run time. You could make a hack assigning a new datasou

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Scott M Stark
Ok, but the typical usecase people ask about is some failover scenario or dev vs prod database selection where the type mappings are the same. -- Scott Stark Chief Technology Officer JBoss Group, LLC Adrian Brock wrote: On Sun, 2003-10-05 at 14:52,

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 15:42, Ionel GARDAIS wrote: > Well, here is what I want to do : I would like to > allow a CMP-like mechanism but with a user defined > datasource. > One of the aims of CMP is that your code is independent of the persistence mechansim (which is declared in the deployment). In

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Well, here is what I want to do : I would like to allow a CMP-like mechanism but with a user defined datasource. I could use BMP and read the connection-url, driver-class, username and password from a file but as these informations are available directly through a declared datasource, a CMP could

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 15:20, Ionel GARDAIS wrote: > Let say the datasource-mappings can be specified by > the user at runtime too. They cannot. > If the datasource is specified by the user, will the > CMP use the declared mapping or the "delegated" > mapping ? > The purpose of jbosscmp-jdbc.xml

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Let say the datasource-mappings can be specified by the user at runtime too. If the datasource is specified by the user, will the CMP use the declared mapping or the "delegated" mapping ? > Except there is no such dynamicity for > type-mappings. > You have to know the db mappings when you create t

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
Wouldn't an alias serve your purpose? java:/ApplicationDS java:/OracleDS I assume changing all the jbosscmp-jdbc.xml files is too much work? Regards, Adrian On Sun, 2003-10-05 at 15:07, Ionel GARDAIS wrote: > Huh ? heee, are there any examples of how to do such a > thing ? > > --- Sco

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Alexey Loubyansky
No. The datasource is used at deployment time to initialize mapping types, row locking syntax, autoincrementation, etc. alex Ionel GARDAIS wrote: Hi, is it possible to use a CMP bean but to override the datasource from the xml files but a user defined datasource, known at runtime ? = -

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Adrian Brock
On Sun, 2003-10-05 at 14:52, Scott M Stark wrote: > Write an mbean service that installs a javax.naming.spi.ObjectFactory at > the location you specify as the datasource and the ObjectFactory can > choose at runtime which DataSource to return. Except there is no such dynamicity for type-mappings.

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Huh ? heee, are there any examples of how to do such a thing ? --- Scott M Stark <[EMAIL PROTECTED]> a écrit : > Write an mbean service that installs a > javax.naming.spi.ObjectFactory at > the location you specify as the datasource and the > ObjectFactory can > choose at runtime which DataSource

Re: [JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Scott M Stark
Write an mbean service that installs a javax.naming.spi.ObjectFactory at the location you specify as the datasource and the ObjectFactory can choose at runtime which DataSource to return. -- Scott Stark Chief Technology Officer JBoss Group, LLC Ione

[JBoss-user] using CMP and defining the datasource at runtime

2003-10-05 Thread Ionel GARDAIS
Hi, is it possible to use a CMP bean but to override the datasource from the xml files but a user defined datasource, known at runtime ? = -- Regards, Ionel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! M

[JBoss-user] JBoss-IDE 1.2.1 released

2003-10-05 Thread Laurent Etiemble
Hi, The JBoss-IDE 1.2.1 release is available.It is a maintenance release which addresses many bugs.See release notes for more details : https://sourceforge.net/project/shownotes.php?release_id=187792 Downloads are available through the SourceForge site : http://prdownloads.sourceforge.net/jboss/o

Re: [JBoss-user] RT: JBoss couldn't deploy HelloWorld.jar

2003-10-05 Thread Adrian Brock
Looks ok, can you post the source for the classes that fail. I want to look at the package declaration and imports. Regards, Adrian On Thu, 2003-10-02 at 17:45, Santi Caballe Llobet wrote: > Hi Adrian, > > First of all thank you for answering. The HelloWorld.jar's content > is: > > ==

RE: [JBoss-user] Pre compile jsps on jboss server

2003-10-05 Thread Rod Macpherson
This is one of my pet peeves. It is true that you can precompile your JSPs and configure them as servlets and that is a reasonable approach in most circumstances. Having said that, if you have several hundred that you are dynamically updating during development the preference is to use JSPs as they