users@jsr311.java.net

Re: RuntimeDelegate.createEndpoint()

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Fri, 30 May 2008 12:46:54 +0100

Sorry, I mixed 'former' word with the 'latter' word : too complex for me :-)
I just wanted to say that if a 2nd parameter is removed then it's a void return otherwise, if null is passed then null is returned
andin both cases a WebApplicationException is thrown in case of a failure...

Cheers, Sergey

----- Original Message -----
From: "Sergey Beryozkin" <sergey.beryozkin_at_iona.com>
To: <users_at_jsr311.dev.java.net>
Sent: Friday, May 30, 2008 12:43 PM
Subject: Re: RuntimeDelegate.createEndpoint()


Hi Stephan

I reckon it'd depend on wehther the existing signature is preserverd or the second parameter is removed.

In the former case it would have a return nothing (void) in the the case of success or throw WebApplicationException in the case of
failure.

In the latter case I'd just update JavaDocs with something like : if 2nd parameter is null then (the same) null is returned, and an
endpoint is created and started as part of this method's execution, instead of the current 2-stage process.

I'd prefer the signature update I think....

Cheers, Sergey

> Hi Sergey,
>
> which type of object should RuntimeDelegate.createEndpoint(appConfig) return?
>
> best regards
> Stephan
>

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

---------------------------------------------------------------------
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