You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Venkat Reddy <vr...@gmail.com> on 2005/03/09 17:39:27 UTC

[Axis2] Some review notes from me

Hello folks :-)

First off, apologies for being a long-time lurker without much active
participation in Axis2 due to some other priorities. Indeed, you folks
made tremondous progress in seeding and shaping out the next
generation SOAP processor.

Now, that one more round of discussions are round the corner, I just
gone through the code and made a list of notes or observations, which
could be  purely a result of my limited knowledge of the code and
please consider these as my humble attemt at ramping up with the
things. If you guys feel any of these notes are useful, i'm willing to
submit any needed changes.

Client-side
---------------
1. ExecutionChain.invoke() might need to skip the current phase while
calling phase.revoke(), because revoking the handlers in the current
phase is already taken care of, inside the Phase.invoke().

2. Similarily, the handler.invoke() may have the code to revert the
actions in a catch block, thus making the handler.revoke() unnecessary
for the *current* handler.

3. o.a.axis.engine.Dispatch: This is seemingly being used as handler
for receiving the message instead of what its name suggests. The
AxisEngine.receive method creates a dispatcher phase with the name
"DispatchPhase". I think this should be named as "ReceivingPhase". the
 Phase class also has two phases named as "DispatchPhase" and
"SendPhase", which tend to mean the same but actually being used as
symmetrically opposite phases.

4. o.a.axis.engine.receive() does not add service-specific phases to
the chain, unlike what  executeOutFlow() does.

5. o.a.axis.engine.receive() doesn't appear to the opposite of
executeOutFlow() both in terms of the name and in its input
parameters. May be we can have consistent naming and signature,
becuase they seem to do the same stuff, but in opposite order.

6. The instance variable registry in AxisEngine classs seems unused,
though we can't construct the engine object without passing registry.
Mostly we are using the registry contained in MsgCtx for message
processing.

7. Looks like our SOAP* classes are not implementations for
javax.xml.soap.* but something specific to Axis OM. May be its better
to move closer to SSAZ as early as possible.

8. We need to have TCK tesing also planned out and in-built into the
milestone releases right from the beginning. I can take this up, with
my experience with the TCK testing for 1.2.

Thats all for now :) And i said at the beginning, all this is strictly
my two cents, and could be way off :)

- venkat

Re: [Axis2] Some review notes from me

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Hi Venkat,

> I'm aware of this philosophy for Axis2 right form beginning, to make
> it agnostic to jax-rpc etc, and make it as abstract as possible. I'm
> fully on page with you in understanding this :-)

OK! Just to be clear- its not to make it abstract but rather for us
to do the best possible without having one hand held behind out
back for API standards compatibility. I guess I've become more
aligned with the MSFT mantra that what really matters is on-the-wire 
compatibility rather than API compatibility.

> The SOAP* classes in Axis1.2 (SOAPBody, SOAPEnvelope etc) implement
> the javax.xml.soap.* stuff directly. Axis2 already has these classes
> similarily named but don't implement javax.xml.soap.*. I agree that
> its easy to add a layer that extends the existing SOAP* classes and
> implements SAAJ API.
> 
> Layering the standards comliance would work fine, but would that be
> efficient? and wouldn't make sense to have it as default feature? What
> percentage users expect Axis to support standards out of the box, than
> not?

If the standard is a perfecf fit, like StAX, of course we should
use it. However, SAAJ in particular (unless SAAJ2 is different) is
a problem because it extends DOM classes. That would force us to
create DOM trees .. in theory that's not impossible but practically
the programming complexity of it is not worth it. Furthermore
going deeper into JAX-RPC, that has a strong synchronous "RPC" flavor
and that's clearly a design point that we explicitly chose to
stay away from.

Yes I've heard from Roberto that JAX-RPC2 is going to be different
(and he's even considering renaming it to make it clear). However, 
that's not there yet and we need to finish this beast. If when JAX-WS
(or whatever it gets called) comes out, if there is indeed a good
model to burn the, perfectly fitting, standard into Axis2, I'll be all
for it. 

Furthermore, the difficulty of getting access to the TCKs and the
delays that has caused for Axis1 has left a bad taste in my mouth
for putting that as a blocker for us.

> We also know that axis could also be used as a tiny pluggable core for
> SOAP processing into any product with standardized interfacing, just
> like Xerces parser is used everywhere for XML parsing. May be we can
> pass on the standards compliance also as a bonus in these cases.

Yes, if it meets our design objectives, of course let's use it. I'm
not convinced that it does; are you?
 
> Hmm ... after saying all this, now i'm afraid to come to Colombo ;-)

Oh come on .. I know India is scared of Sri Lanka (esp. when it comes
to cricket and our superior air & naval powers) but I never realized
it was so bad! ;-)

Sanjiva.


Re: [Axis2] Some review notes from me

Posted by Venkat Reddy <vr...@gmail.com>.
hi Sanjiva,

I'm aware of this philosophy for Axis2 right form beginning, to make
it agnostic to jax-rpc etc, and make it as abstract as possible. I'm
fully on page with you in understanding this :-)

I didn't explain it properly in last mail, but what i'm trying to see
is how easy and efficient it is to build those "layers" that can make
the abstract Axis to comply with various standards. Think i need to
probe this a bit and try it out.

The SOAP* classes in Axis1.2 (SOAPBody, SOAPEnvelope etc) implement
the javax.xml.soap.* stuff directly. Axis2 already has these classes
similarily named but don't implement javax.xml.soap.*. I agree that
its easy to add a layer that extends the existing SOAP* classes and
implements SAAJ API.

Layering the standards comliance would work fine, but would that be
efficient? and wouldn't make sense to have it as default feature? What
percentage users expect Axis to support standards out of the box, than
not?

We also know that axis could also be used as a tiny pluggable core for
SOAP processing into any product with standardized interfacing, just
like Xerces parser is used everywhere for XML parsing. May be we can
pass on the standards compliance also as a bonus in these cases.

Hmm ... after saying all this, now i'm afraid to come to Colombo ;-)
- venkat


On Thu, 10 Mar 2005 21:51:28 +0600, Sanjiva Weerawarana
<sa...@opensource.lk> wrote:
> "Venkat Reddy" <vr...@gmail.com> writes:
> >
> > 8. We need to have TCK tesing also planned out and in-built into the
> > milestone releases right from the beginning. I can take this up, with
> > my experience with the TCK testing for 1.2.
> 
> I didn't read the other stuff yet but this one is a burning topic
> for me .. so:
> 
> I'm dead set against making Axis2's core framework a JAX-RPC(1.1 or 2)
> compliant framework. Axis2 should be the best possible WS-* SOAP
> base we can design and implement, *without* the constraints of JAX-RPC
> thrown in.
> 
> At some point we may want JAX-RPC compliance. At that time let's
> design a layer that supports it so that we can say "Oh JAX-RPC? Yeah
> we do that too, but look at all this cool stuff we do first!".
> 
> Even in the Java platform, the Java language is not the only beast.
> Other interesting worlds include Javascript/E4X, JACL and Jython.
> Ain't no JAX-RPC nonsense in those worlds!
> 
> Sanjiva.
> 
>

Re: [Axis2] Some review notes from me

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
"Venkat Reddy" <vr...@gmail.com> writes:
> 
> 8. We need to have TCK tesing also planned out and in-built into the
> milestone releases right from the beginning. I can take this up, with
> my experience with the TCK testing for 1.2.

I didn't read the other stuff yet but this one is a burning topic
for me .. so:

I'm dead set against making Axis2's core framework a JAX-RPC(1.1 or 2)
compliant framework. Axis2 should be the best possible WS-* SOAP 
base we can design and implement, *without* the constraints of JAX-RPC
thrown in. 

At some point we may want JAX-RPC compliance. At that time let's 
design a layer that supports it so that we can say "Oh JAX-RPC? Yeah
we do that too, but look at all this cool stuff we do first!".

Even in the Java platform, the Java language is not the only beast.
Other interesting worlds include Javascript/E4X, JACL and Jython.
Ain't no JAX-RPC nonsense in those worlds!

Sanjiva.


Re: [Axis2] Some review notes from me

Posted by Srinath Perera <he...@gmail.com>.
On Wed, 9 Mar 2005 22:09:27 +0530, Venkat Reddy <vr...@gmail.com> wrote:
> Hello folks :-)
> 
> First off, apologies for being a long-time lurker without much active
> participation in Axis2 due to some other priorities. Indeed, you folks
> made tremondous progress in seeding and shaping out the next
> generation SOAP processor.
> 
> Now, that one more round of discussions are round the corner, I just
> gone through the code and made a list of notes or observations, which
> could be  purely a result of my limited knowledge of the code and
> please consider these as my humble attemt at ramping up with the
> things. If you guys feel any of these notes are useful, i'm willing to
> submit any needed changes.
> 
> Client-side
> ---------------
> 1. ExecutionChain.invoke() might need to skip the current phase while
> calling phase.revoke(), because revoking the handlers in the current
> phase is already taken care of, inside the Phase.invoke().
> 
> 2. Similarily, the handler.invoke() may have the code to revert the
> actions in a catch block, thus making the handler.revoke() unnecessary
> for the *current* handler.
1 and 2 yap , Thanks and Fixed :)

> 3. o.a.axis.engine.Dispatch: This is seemingly being used as handler
> for receiving the message instead of what its name suggests. The
> AxisEngine.receive method creates a dispatcher phase with the name
> "DispatchPhase". I think this should be named as "ReceivingPhase". the
>  Phase class also has two phases named as "DispatchPhase" and
> "SendPhase", which tend to mean the same but actually being used as
> symmetrically opposite phases.
Dispatcher dispatch the Service , it just locate the service and do nothing else

> 4. o.a.axis.engine.receive() does not add service-specific phases to
> the chain, unlike what  executeOutFlow() does.
actually it does ..indirectly .... but till you come to the diaptacher
phase the services specific handlers are not known .. so Diaptacher
does it

> 5. o.a.axis.engine.receive() doesn't appear to the opposite of
> executeOutFlow() both in terms of the name and in its input
> parameters. May be we can have consistent naming and signature,
> becuase they seem to do the same stuff, but in opposite order.
send(MC) should be compared with the recive(MC), execute out flow is
seperated as asame method can be use to send the faults as well. May
be we can use send(MC) to send the errors as well .. let me check

> 
> 6. The instance variable registry in AxisEngine classs seems unused,
> though we can't construct the engine object without passing registry.
> Mostly we are using the registry contained in MsgCtx for message
> processing.
My mistake, will fix it

> 
> 7. Looks like our SOAP* classes are not implementations for
> javax.xml.soap.* but something specific to Axis OM. May be its better
> to move closer to SSAZ as early as possible.
think we discused this eariler .. the SAAJ is layrerd on top
> 
> 8. We need to have TCK tesing also planned out and in-built into the
> milestone releases right from the beginning. I can take this up, with
> my experience with the TCK testing for 1.2.
sure and welcome .. u r refering to jaxpec tck right? we might need to
start tck module and jaxrpc module and start it right away ..

Thanks Venket for the great comments :), please let us know anyhting
you find if you happen to look at the code
Srinath

[Axis2] Infoset layering? [Re: [Axis2] Some review notes from me

Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Eran Chinthaka wrote:

>Hi Venkat,
>
>C my comments below.
>
>  
>
>>Hello folks :-)
>>
>>First off, apologies for being a long-time lurker without much active
>>participation in Axis2 due to some other priorities. Indeed, you folks
>>made tremondous progress in seeding and shaping out the next
>>generation SOAP processor.
>>
>>Now, that one more round of discussions are round the corner, I just
>>gone through the code and made a list of notes or observations, which
>>could be  purely a result of my limited knowledge of the code and
>>please consider these as my humble attemt at ramping up with the
>>things. If you guys feel any of these notes are useful, i'm willing to
>>submit any needed changes.
>>
>>Client-side
>>---------------
>>1. ExecutionChain.invoke() might need to skip the current phase while
>>calling phase.revoke(), because revoking the handlers in the current
>>phase is already taken care of, inside the Phase.invoke().
>>
>>2. Similarily, the handler.invoke() may have the code to revert the
>>actions in a catch block, thus making the handler.revoke() unnecessary
>>for the *current* handler.
>>
>>3. o.a.axis.engine.Dispatch: This is seemingly being used as handler
>>for receiving the message instead of what its name suggests. The
>>AxisEngine.receive method creates a dispatcher phase with the name
>>"DispatchPhase". I think this should be named as "ReceivingPhase". the
>> Phase class also has two phases named as "DispatchPhase" and
>>"SendPhase", which tend to mean the same but actually being used as
>>symmetrically opposite phases.
>>
>>4. o.a.axis.engine.receive() does not add service-specific phases to
>>the chain, unlike what  executeOutFlow() does.
>>
>>5. o.a.axis.engine.receive() doesn't appear to the opposite of
>>executeOutFlow() both in terms of the name and in its input
>>parameters. May be we can have consistent naming and signature,
>>becuase they seem to do the same stuff, but in opposite order.
>>
>>6. The instance variable registry in AxisEngine classs seems unused,
>>though we can't construct the engine object without passing registry.
>>Mostly we are using the registry contained in MsgCtx for message
>>processing.
>>
>>7. Looks like our SOAP* classes are not implementations for
>>javax.xml.soap.* but something specific to Axis OM. May be its better
>>to move closer to SSAZ as early as possible.
>>    
>>
>
>I can't understand what you meant by specific to OM. SOAP specific OM
>classes will implement only the required stuff. And I will try my level best
>to make all the SOAP specific OM classes, SOAP 1.2 compliant soon.
>  
>
so if there is SOAP 1.1 then it may fail?

i thin kkeeping XML Infoset and SOAP layers is good idea.

what about supporting "new and cool" POX (Plain Old Xml) and more 
RESTful interactions (including those that can be desribed in WSLD with 
HTTP GET/POST bindings)?

alek

>  
>
>>8. We need to have TCK tesing also planned out and in-built into the
>>milestone releases right from the beginning. I can take this up, with
>>my experience with the TCK testing for 1.2.
>>
>>Thats all for now :) And i said at the beginning, all this is strictly
>>my two cents, and could be way off :)
>>
>>- venkat
>>    
>>
>
>
>
>  
>


-- 
The best way to predict the future is to invent it - Alan Kay


RE: [Axis2] Some review notes from me

Posted by Eran Chinthaka <ch...@opensource.lk>.
Hi Venkat,

C my comments below.

> 
> Hello folks :-)
> 
> First off, apologies for being a long-time lurker without much active
> participation in Axis2 due to some other priorities. Indeed, you folks
> made tremondous progress in seeding and shaping out the next
> generation SOAP processor.
> 
> Now, that one more round of discussions are round the corner, I just
> gone through the code and made a list of notes or observations, which
> could be  purely a result of my limited knowledge of the code and
> please consider these as my humble attemt at ramping up with the
> things. If you guys feel any of these notes are useful, i'm willing to
> submit any needed changes.
> 
> Client-side
> ---------------
> 1. ExecutionChain.invoke() might need to skip the current phase while
> calling phase.revoke(), because revoking the handlers in the current
> phase is already taken care of, inside the Phase.invoke().
> 
> 2. Similarily, the handler.invoke() may have the code to revert the
> actions in a catch block, thus making the handler.revoke() unnecessary
> for the *current* handler.
> 
> 3. o.a.axis.engine.Dispatch: This is seemingly being used as handler
> for receiving the message instead of what its name suggests. The
> AxisEngine.receive method creates a dispatcher phase with the name
> "DispatchPhase". I think this should be named as "ReceivingPhase". the
>  Phase class also has two phases named as "DispatchPhase" and
> "SendPhase", which tend to mean the same but actually being used as
> symmetrically opposite phases.
> 
> 4. o.a.axis.engine.receive() does not add service-specific phases to
> the chain, unlike what  executeOutFlow() does.
> 
> 5. o.a.axis.engine.receive() doesn't appear to the opposite of
> executeOutFlow() both in terms of the name and in its input
> parameters. May be we can have consistent naming and signature,
> becuase they seem to do the same stuff, but in opposite order.
> 
> 6. The instance variable registry in AxisEngine classs seems unused,
> though we can't construct the engine object without passing registry.
> Mostly we are using the registry contained in MsgCtx for message
> processing.
> 
> 7. Looks like our SOAP* classes are not implementations for
> javax.xml.soap.* but something specific to Axis OM. May be its better
> to move closer to SSAZ as early as possible.

I can't understand what you meant by specific to OM. SOAP specific OM
classes will implement only the required stuff. And I will try my level best
to make all the SOAP specific OM classes, SOAP 1.2 compliant soon.

Thank you very much for your comments.

Regards,
Chinthaka

> 
> 8. We need to have TCK tesing also planned out and in-built into the
> milestone releases right from the beginning. I can take this up, with
> my experience with the TCK testing for 1.2.
> 
> Thats all for now :) And i said at the beginning, all this is strictly
> my two cents, and could be way off :)
> 
> - venkat