Hi Romain!

Org.apache.catalina.util.ServerInfo includes a hint that TomEE is included but 
no TomEE version number.
Therefore we need to know - Tomcat 7.0.40 means TomEE 1.6.0.
Checking the pom.properties might be an alternative.

Thanks a lot,
                Thomas


Von: Romain Manni-Bucau [via OpenEJB] 
[mailto:[email protected]]
Gesendet: Mittwoch, 10. Juli 2013 14:34
An: Thomas Schuler
Betreff: Re: Programmatically determination of tomee version

as said before you can with
read META-INF/maven/org.apache.openejb/tomee-catalina/pom.properties or
ServerInfo to get it directly.


Another thing is we only have a version of tomcat by tomee so you can check
it too (when released).

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/10 tschuler <[hidden 
email]</user/SendEmail.jtp?type=node&node=4664197&i=0>>

> Hi Romain!
>
> Thanks.
> So there is no way to get the TomEE version itself?
> If we want to ensure that, e.g. TomEE 1.6.0 is installed, we have to check
> the OpenEJB version to be 4.6.0.
>
> Best regards,
>                 Thomas
>
>
> Von: Romain Manni-Bucau [via OpenEJB] [mailto:
> [hidden email]</user/SendEmail.jtp?type=node&node=4664197&i=1>]
> Gesendet: Dienstag, 9. Juli 2013 09:58
> An: Thomas Schuler
> Betreff: Re: Programmatically determination of tomee version
>
> Hi
>
> ServerInfo from tomcat or OpenEjbVersion from openejb (replace first digit
> by its value - 3)....or simply use mven properties file in tomee-catalina
> Le 9 juil. 2013 09:45, "tschuler" <[hidden
> email]</user/SendEmail.jtp?type=node&node=4664151&i=0>> a écrit :
>
> > Hi!
> >
> > We want to programmatically get the TomEE version.
> > Is there a class that can be asked for it?
> >
> > Best regards,
> > Thomas
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/Programmatically-determination-of-tomee-version-tp4664150.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://openejb.979440.n4.nabble.com/Programmatically-determination-of-tomee-version-tp4664150p4664151.html
> To unsubscribe from Programmatically determination of tomee version, click
> here<
> >.
> NAML<
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Programmatically-determination-of-tomee-version-tp4664150p4664196.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Programmatically-determination-of-tomee-version-tp4664150p4664197.html
To unsubscribe from Programmatically determination of tomee version, click 
here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4664150&code=dGhvbWFzLnNjaHVsZXJAb3BlbnRleHQuY29tfDQ2NjQxNTB8LTE4NTIyNTQ0OTI=>.
NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: 
http://openejb.979440.n4.nabble.com/Programmatically-determination-of-tomee-version-tp4664150p4664200.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to