users@jsr311.java.net

RE: RuntimeDelegate.createEndpoint()

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Sun, 1 Jun 2008 22:01:38 +0100

Agreed that a JAX-WS Endpoint interface does not fit well here.

Apart from methods like getBinding() it also conflicts a bit with the
approach taken by ApplicationConfig (which I like), where instead of getting
the map of properties and then checking for either address or providers I
just call getAddress(), getProviders(), etc...These are well known and
obvious properties and it's easier to get them that way...

RuntimeDelegate.createEndpoint is for SE cases only...But I'd consider using
this method even in other cases (not sure how though :-)), provided it's
updated a bit, such that I could use product-specific configuration approach
but still be able to change JAX-RS impls under the hood...


Cheers, Sergey

-----Original Message-----
From: Bill Burke [mailto:bburke_at_redhat.com]
Sent: 30 May 2008 18:38
To: users_at_jsr311.dev.java.net
Subject: Re: RuntimeDelegate.createEndpoint()

Just want to add that a createEndpoint() method may be useful in a
standalone, SE-like environment, but it is not needed (and actually
hurts) in a well-integrated environment like an application server where
packaging is much more simpler and lifecycle and dependency management
is handled by the app-server's kernel.

Its the same reason in JPA why the javax.persistence.Persistence class
is discouraged in EE and the injection annotations encouraged. Because
in EE we can provide a simpler integration point.

As far as JAX-WS goes, I don't think it should even be mentioned in the
specification. The Endpoint interface brings in a lot of baggage that we
  don't want/need in REST, or concepts (like Handlers) that we may want
a JAX-RS style/flavor for.

Bill

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
For additional commands, e-mail: users-help_at_jsr311.dev.java.net
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland