You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Monteiro Jean-Louis <je...@atosorigin.com> on 2009/03/18 14:50:48 UTC
TR: [jira] Created: (OPENEJB-1010) Production mode
FYI
Related to topic http://www.nabble.com/Flushing-out-validation-td21715750.html
Regards,
Jean-Louis
-----Message d'origine-----
De : Jean-Louis MONTEIRO (JIRA) [mailto:jira@apache.org]
Envoyé : mercredi 18 mars 2009 14:50
À : Monteiro Jean-Louis
Objet : [jira] Created: (OPENEJB-1010) Production mode
Production mode
---------------
Key: OPENEJB-1010
URL: https://issues.apache.org/jira/browse/OPENEJB-1010
Project: OpenEJB
Issue Type: New Feature
Environment: All
Reporter: Jean-Louis MONTEIRO
It would be nice to provide a production mode intended to avoid automatic resources creation, adaptation, ....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Re: [jira] Created: (OPENEJB-1010) Production mode
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
David Blevins wrote:
>
> We have something which will do all the above except for preventing
> the persistence.xml datasource adapting. See the ConfigurationFactory
> 'offline' boolean. It does stop the part of the persistence.xml
> adjusting where datasources are created, but doesn't stop the
> adjusting where they were one or both were left blank and various
> things like that. We can certainly add it.
>
> We don't have a flag to set it, mostly used by Geronimo right now. We
> can easily add one in the no-arg constructor of the
> ConfigurationFactory so it doesn't always default to offline false.
>
>
Yep, I think it's a very nice feature.
David Blevins wrote:
>
> Not sure "production" is a good name as I think it's ultimately too
> subjective to be so prescriptive. Better just to name the flags after
> what they do in the most literal sense and let people decide which
> they want enabled.
>
> Maybe something like openejb.configuration.strict ?
>
You're right David.
openejb.configuration.strict sounds good for me!
--
View this message in context: http://www.nabble.com/TR%3A--jira--Created%3A-%28OPENEJB-1010%29-Production-mode-tp22579655p22595074.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: [jira] Created: (OPENEJB-1010) Production mode
Posted by David Blevins <da...@visi.com>.
On Mar 18, 2009, at 1:55 AM, Jean-Louis MONTEIRO wrote:
> Something came to my mind.
> As a useful feature, OpenEJB performs a lot of automatic actions
> (creating
> queues, datasources, adapting datasources, ....) which is fine for
> development and testing.
>
> But it can be very dramatic when putting OpenEJB in production (the
> real
> life ;-)).
>> From my point of view, it would be nice to add a property to
>> disable such a
> feature. In production, we must be sure the datasource used in the
> persistence.xml file exists. If not, deployment must fail !
>
> Do you agree ?
We have something which will do all the above except for preventing
the persistence.xml datasource adapting. See the ConfigurationFactory
'offline' boolean. It does stop the part of the persistence.xml
adjusting where datasources are created, but doesn't stop the
adjusting where they were one or both were left blank and various
things like that. We can certainly add it.
We don't have a flag to set it, mostly used by Geronimo right now. We
can easily add one in the no-arg constructor of the
ConfigurationFactory so it doesn't always default to offline false.
Not sure "production" is a good name as I think it's ultimately too
subjective to be so prescriptive. Better just to name the flags after
what they do in the most literal sense and let people decide which
they want enabled.
Maybe something like openejb.configuration.strict ?
-David