You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by recursion <ba...@yahoo.com> on 2009/07/21 09:36:12 UTC
Question about application discovery and EJB 3.0 compliance
Hi dear OpenEJB guys,
I was recalling once again
http://openejb.apache.org/3.0/application-discovery-via-the-classpath.html
and my question is: regarding EJB 3.0 standard, the ejb-jar.xml is now
optional, it is not mandatory. How is then OpenEJB going to discover my EJB
module, if it lacks ejb-jar.xml ? Is it going to miss it ?
Since OpenEJB si EJB 3.0 compliant, then there must be some algorithm, that
you use to detect EJB modules that doesn't have ejb-jar.xml's ?
Best Regards,
recursion.
--
View this message in context: http://www.nabble.com/Question-about-application-discovery-and-EJB-3.0-compliance-tp24582924p24582924.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Question about application discovery and EJB 3.0 compliance
Posted by David Blevins <da...@visi.com>.
On Jul 21, 2009, at 5:13 AM, Jean-Louis MONTEIRO wrote:
> AFAIK, the ejb-jar.xml file is required by OpenEJB to discover ejb
> modules.
> I think for each ejb-jar, OpenEJB looks for ejb-jar.xml in the
> INDEX.LST
> file (jar specification) for performance reasons.
Right, we don't scrape every class on the classpath for performance
reasons. Being able to narrow down the searching scope dramatically
improves performance.
Recursion, check out the section titled "Including/Excluding paths
(advanced)" on the page you mention. It should answer your question.
If not definitely let us know and we can improve that document.
-David
Re: Question about application discovery and EJB 3.0 compliance
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi,
AFAIK, the ejb-jar.xml file is required by OpenEJB to discover ejb modules.
I think for each ejb-jar, OpenEJB looks for ejb-jar.xml in the INDEX.LST
file (jar specification) for performance reasons.
JLouis
recursion wrote:
>
> Yes,
>
> [Probably you're right. I just wanted to make sure of this!]
> What is the purpose of the empty ejb-jar.xml then ?? Just for app
> discovery ? If it is the case, then this contradicts with your post,
> because obviously if you're right, the ejb-jar.xml is not needed.
> I made some experiments with an EJB 3.0 module without ejb-jar.xml and it
> was not found! That's why i am asking.
>
>
> Best Regards,
>
> recursion.
>
--
View this message in context: http://www.nabble.com/Question-about-application-discovery-and-EJB-3.0-compliance-tp24582924p24586538.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Question about application discovery and EJB 3.0 compliance
Posted by recursion <ba...@yahoo.com>.
Yes,
[Probably you're right. I just wanted to make sure of this!]
What is the purpose of the empty ejb-jar.xml then ?? Just for app discovery
? If it is the case, then this contradicts with your post, because obviously
if you're right, the ejb-jar.xml is not needed.
I made some experiments with an EJB 3.0 module without ejb-jar.xml and it
was not found! That's why i am asking.
Best Regards,
recursion.
--
View this message in context: http://www.nabble.com/Question-about-application-discovery-and-EJB-3.0-compliance-tp24582924p24584867.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Question about application discovery and EJB 3.0 compliance
Posted by Nick Mpallas <mp...@upstreamsystems.com>.
Hi,
most likely my friend if u have the appropriate annotation for EJB 3.0
in
ur classes then when scanning the classpath the container will
understand that there
are some ejb's in ur project.No algorithm needed i think.
regards
Nick
On Tue, 2009-07-21 at 00:36 -0700, recursion wrote:
> Hi dear OpenEJB guys,
>
>
> I was recalling once again
> http://openejb.apache.org/3.0/application-discovery-via-the-classpath.html
> and my question is: regarding EJB 3.0 standard, the ejb-jar.xml is now
> optional, it is not mandatory. How is then OpenEJB going to discover my EJB
> module, if it lacks ejb-jar.xml ? Is it going to miss it ?
> Since OpenEJB si EJB 3.0 compliant, then there must be some algorithm, that
> you use to detect EJB modules that doesn't have ejb-jar.xml's ?
>
> Best Regards,
> recursion.
>
>