On Feb 19, 2008, at 1:43 AM, Mohammad Nour El-Din wrote:

OpenEJB build fails on the vmbuild machine

http://marc.info/?l=openejb-cvs&m=120339837024436&w=2

And from the surefire reports I think there is a port conflict of the
http/jetty service with the http service's port on the vmbuild machine

http://vmbuild.apache.org/continuum/surefireReport.action?buildId=52637&projectId=358#org.apache.openejb.server.httpd.HttpEjbServerTest

I will try to look at it this night unless someone jumps in before me :)

Fixed it. Looks like the test was hardcoded to use 8080 which is a pretty popular port for obvious reasons (continuum itself was using that port). Reverted the test back to using the randomly available port strategy. If you can figure out how to get the random port strategy to work with jetty then feel free to add a second test case for jetty.

-David

On Tue, Feb 19, 2008 at 11:21 AM, Mohammad Nour El-Din <[EMAIL PROTECTED] >
wrote:

Gr8, thanks dblevins, I will look at your code to learn what you did, and
use it to impl the Jetty detection.


On Tue, Feb 19, 2008 at 2:05 AM, David Blevins <[EMAIL PROTECTED] >
wrote:


On Jan 5, 2008, at 6:00 PM, Mohammad Nour El-Din wrote:

On Jan 5, 2008 12:50 PM, David Blevins <[EMAIL PROTECTED]> wrote:


On Jan 3, 2008, at 12:29 PM, Dain Sundstrom wrote:

I added code to switch from the OpenEJB http server to Jetty when
the Jetty classes are available.  You can also explicitly state
which http server impl will be chosen by setting the 'impl' property
in the HttpEjbServer properties.

Let me know if you have any problems. Also, David if you have time can you review my changes? I'm not sure it is how you wanted this
to work (I just hacked something quickly).

Cool.  Mohammad had mentioned he was going to work on this[1].
Mohammad how does this compare to what you were thinking of doing?

Well Dain read my mind regarding the configuration property but the
new
thing is detecting the Jetty classes. I can play with the new code
and see
how it runs.



On Feb 18, 2008, at 12:38 PM, Mohammad Nour El-Din wrote:

Embedded Jetty is implemented now, needs some more cleaning but the
main
functionality and tests work just fine, please review

Excellent!  I poked at it a little and switched OpenEJB back to the
default.  I also implemented some code that allows ServerServices to
have factories.  This should allow you to write the actual Jetty
detection part; i.e. the part that checks for a jetty class and
decides automatically whether to use OpenEJBHttpEjbServer or the new
JettyHttpEjbServer you wrote.

You should be able to plumb that right into the
HttpServerFactory.createServerService() method.

Once that is done we likely don't need the jetty-httpejbd file
anymore.  If someone adds jetty to their openejb install, it should
just detect it and use it without any need for extra configuration.

-David


-David

[1]

http://www.nabble.com/Re%3A-Webservice-support-in-standalone-OpenEJB-p14478246.html




--
Thanks
- Mohammad Nour




--
Thanks
- Mohammad Nour




--
Thanks
- Mohammad Nour

Reply via email to