SCA 0.92 release?

2007-06-30 Thread ant elder

With the SCA 0.91 release now being voted on how about starting on 0.92?

I've already been adding some things I'm interested in getting done to the
next release wiki page -
http://cwiki.apache.org/confluence/display/TUSCANY/Java+SCA+Next+Release+Contents-
so far thats mainly related to improving web services functionality.

So anyone else interested in helping with an 0.92 release or have any
function they'd like to suggest or add to the wiki page? How does aiming for
getting it done 4 - 6 weeks again sound?

  ...ant


[jira] Created: (TUSCANY-1397) createDataObject() throws NPE if property does not exist

2007-06-30 Thread Andy Grove (JIRA)
createDataObject() throws NPE if property does not exist


 Key: TUSCANY-1397
 URL: https://issues.apache.org/jira/browse/TUSCANY-1397
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Reporter: Andy Grove


Calling createDataObject( foo ) where the data object's type does not define 
a property foo causes a null pointer exception in 
DataObjectUtil.createDataObject(DataObject dataObject, Property property, Type 
type) because it attempts to call property.isContainment without checking if 
the property is null.

Calling createDataObject( foo ) on an open type should create an on-demand 
property. If the type is not open and the property does not exist then an 
exception should be thrown.

Thanks,

Andy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Created: (TUSCANY-1398) Nested Callbacks Fail

2007-06-30 Thread York (He Yuan) HUANG (JIRA)
Nested Callbacks Fail
-

 Key: TUSCANY-1398
 URL: https://issues.apache.org/jira/browse/TUSCANY-1398
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Java Implementation Extension
Affects Versions: Java-SCA-0.90, Java-SCA-Next
Reporter: York (He Yuan) HUANG


I created a simple SCA application, which involves an order process. Below is 
the composite file of the application. Note that, the callback method of 
Supplier will invoke the callback interface of Customer. Thus, there are nested 
callbacks.

?xml version=1.0 encoding=UTF-8?
composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
targetNamespace=http://orderprocess;
xmlns:cb=http://orderprocess;
name=orderprocess

component name=Customer
implementation.java class=orderprocess.CustomerImpl/
reference name=supplier target=Supplier/Order
interface.java interface=orderprocess.Order 
callbackInterface=orderprocess.OrderNotification/
/reference
/component

component name=Supplier
service name=Order
interface.java interface=orderprocess.Order 
callbackInterface=orderprocess.OrderNotification/
/service
implementation.java class=orderprocess.SupplierImpl/
reference name=railway target=RailwayTransport/Shipment
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/reference
reference name=highway target=HighwayTransport
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/reference
/component

component name=HighwayTransport
service name=Shipment
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/service
implementation.java class=orderprocess.HighwayTransport/
property name=period5000/property
/component
 
component name=RailwayTransport
service name=Shipment
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/service
implementation.java class=orderprocess.RaiwayTransport/
property name=period1000/property
/component

/composite

However, the application fails on both SCA Java 0.90 and trunk. Below is the 
error message. When I debugged the application, I found that it might be caused 
by wrong from info in ThreadMessageContext.

java.lang.NullPointerException
at 
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke(JDKCallbackInvocationHandler.java:77)
at $Proxy11.notify(Unknown Source)
at orderprocess.SupplierImpl.notify(SupplierImpl.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
at 
org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
at 
org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
at 
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke(JDKCallbackInvocationHandler.java:85)
at $Proxy13.notify(Unknown Source)
at orderprocess.RaiwayTransport.doShipping(RaiwayTransport.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)RuntimeException
 invoking receiveResult: java.lang.NullPointerException

at 
org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
at 
org.apache.tuscany.sca.core.invocation.NonBlockingInterceptor$1.run(NonBlockingInterceptor.java:68)
at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61)
at 

[jira] Updated: (TUSCANY-1398) Nested Callbacks Fail

2007-06-30 Thread York (He Yuan) HUANG (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

York (He Yuan) HUANG updated TUSCANY-1398:
--

Attachment: non-block-orderprocess.zip

 Nested Callbacks Fail
 -

 Key: TUSCANY-1398
 URL: https://issues.apache.org/jira/browse/TUSCANY-1398
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Java Implementation Extension
Affects Versions: Java-SCA-0.90, Java-SCA-Next
Reporter: York (He Yuan) HUANG
 Attachments: non-block-orderprocess.zip


 I created a simple SCA application, which involves an order process. Below is 
 the composite file of the application. Note that, the callback method of 
 Supplier will invoke the callback interface of Customer. Thus, there are 
 nested callbacks.
 ?xml version=1.0 encoding=UTF-8?
 composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
   targetNamespace=http://orderprocess;
   xmlns:cb=http://orderprocess;
   name=orderprocess
   component name=Customer
   implementation.java class=orderprocess.CustomerImpl/
   reference name=supplier target=Supplier/Order
   interface.java interface=orderprocess.Order 
 callbackInterface=orderprocess.OrderNotification/
   /reference
   /component
 component name=Supplier
   service name=Order
   interface.java interface=orderprocess.Order 
 callbackInterface=orderprocess.OrderNotification/
   /service
 implementation.java class=orderprocess.SupplierImpl/
 reference name=railway target=RailwayTransport/Shipment
   interface.java interface=orderprocess.Shipment 
 callbackInterface=orderprocess.ShipmentNotification/
 /reference
 reference name=highway target=HighwayTransport
   interface.java interface=orderprocess.Shipment 
 callbackInterface=orderprocess.ShipmentNotification/
 /reference
 /component
 
 component name=HighwayTransport
 service name=Shipment
   interface.java interface=orderprocess.Shipment 
 callbackInterface=orderprocess.ShipmentNotification/
   /service
 implementation.java class=orderprocess.HighwayTransport/
 property name=period5000/property
 /component
  
 component name=RailwayTransport
 service name=Shipment
   interface.java interface=orderprocess.Shipment 
 callbackInterface=orderprocess.ShipmentNotification/
   /service
 implementation.java class=orderprocess.RaiwayTransport/
 property name=period1000/property
 /component
 
 /composite
 However, the application fails on both SCA Java 0.90 and trunk. Below is the 
 error message. When I debugged the application, I found that it might be 
 caused by wrong from info in ThreadMessageContext.
 java.lang.NullPointerException
   at 
 org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke(JDKCallbackInvocationHandler.java:77)
   at $Proxy11.notify(Unknown Source)
   at orderprocess.SupplierImpl.notify(SupplierImpl.java:70)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
 org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
   at 
 org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
   at 
 org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
   at 
 org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
   at 
 org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke(JDKCallbackInvocationHandler.java:85)
   at $Proxy13.notify(Unknown Source)
   at orderprocess.RaiwayTransport.doShipping(RaiwayTransport.java:56)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
 org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
   at 
 org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)RuntimeException
  invoking receiveResult: java.lang.NullPointerException
   at 
 

[jira] Updated: (TUSCANY-1398) Nested Callbacks Fail

2007-06-30 Thread York (He Yuan) HUANG (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

York (He Yuan) HUANG updated TUSCANY-1398:
--

Description: 
I created a simple SCA application, which involves an order process.  The 
application was attached. Below is the composite file of the application. Note 
that, the callback method of Supplier will invoke the callback interface of 
Customer. Thus, there are nested callbacks.

?xml version=1.0 encoding=UTF-8?
composite xmlns=http://www.osoa.org/xmlns/sca/1.0;
targetNamespace=http://orderprocess;
xmlns:cb=http://orderprocess;
name=orderprocess

component name=Customer
implementation.java class=orderprocess.CustomerImpl/
reference name=supplier target=Supplier/Order
interface.java interface=orderprocess.Order 
callbackInterface=orderprocess.OrderNotification/
/reference
/component

component name=Supplier
service name=Order
interface.java interface=orderprocess.Order 
callbackInterface=orderprocess.OrderNotification/
/service
implementation.java class=orderprocess.SupplierImpl/
reference name=railway target=RailwayTransport/Shipment
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/reference
reference name=highway target=HighwayTransport
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/reference
/component

component name=HighwayTransport
service name=Shipment
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/service
implementation.java class=orderprocess.HighwayTransport/
property name=period5000/property
/component
 
component name=RailwayTransport
service name=Shipment
interface.java interface=orderprocess.Shipment 
callbackInterface=orderprocess.ShipmentNotification/
/service
implementation.java class=orderprocess.RaiwayTransport/
property name=period1000/property
/component

/composite

However, the application fails on both SCA Java 0.90 and trunk. Below is the 
error message. When I debugged the application, I found that it might be caused 
by wrong from info in ThreadMessageContext.

java.lang.NullPointerException
at 
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke(JDKCallbackInvocationHandler.java:77)
at $Proxy11.notify(Unknown Source)
at orderprocess.SupplierImpl.notify(SupplierImpl.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
at 
org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
at 
org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
at 
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke(JDKCallbackInvocationHandler.java:85)
at $Proxy13.notify(Unknown Source)
at orderprocess.RaiwayTransport.doShipping(RaiwayTransport.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)RuntimeException
 invoking receiveResult: java.lang.NullPointerException

at 
org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
at 
org.apache.tuscany.sca.core.invocation.NonBlockingInterceptor$1.run(NonBlockingInterceptor.java:68)
at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61)
at 
org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
   

Re: Nested Callbacks Fail

2007-06-30 Thread He Yuan Huang

Ant, I just created a JIRA and attached my application. If possible, I will
try to figure out a patch:-)
https://issues.apache.org/jira/browse/TUSCANY-1398

Best Regards,
York

~~~

Fri, 29 Jun 2007 22:09:08 -0700 ant elder wrote:

On 6/30/07, He Yuan Huang [EMAIL PROTECTED] wrote:




Hi,

I created a simple SCA application, which involves an order process. Below
is the composite file of the application. Note that, the callback method
of
Supplier will invoke the callback interface of Customer. Thus, there are
nested callbacks.

?xml version=1.0 encoding=UTF-8?
composite xmlns=http://www.osoa.org/xmlns/sca/1.0;;
  targetNamespace=http://orderprocess;;
  xmlns:cb=http://orderprocess;;
  name=orderprocess

  component name=Customer
implementation.java class=orderprocess.CustomerImpl/
reference name=supplier target=Supplier/Order
  interface.java interface=orderprocess.Order
callbackInterface=orderprocess.OrderNotification/
/reference
  /component

component name=Supplier
  service name=Order
  interface.java interface=orderprocess.Order
callbackInterface=orderprocess.OrderNotification/
  /service
implementation.java class=orderprocess.SupplierImpl/
reference name=railway target=RailwayTransport/Shipment
  interface.java interface=orderprocess.Shipment
callbackInterface=orderprocess.ShipmentNotification/
/reference
reference name=highway target=HighwayTransport
  interface.java interface=orderprocess.Shipment
callbackInterface=orderprocess.ShipmentNotification/
/reference
/component

component name=HighwayTransport
service name=Shipment
  interface.java interface=orderprocess.Shipment
callbackInterface=orderprocess.ShipmentNotification/
  /service
implementation.java class=orderprocess.HighwayTransport/
property name=period5000/property
/component

component name=RailwayTransport
service name=Shipment
  interface.java interface=orderprocess.Shipment
callbackInterface=orderprocess.ShipmentNotification/
  /service
implementation.java class=orderprocess.RaiwayTransport/
property name=period1000/property
/component

/composite

However, the application fails on both SCA Java 0.90 and trunk. Below is
the error message. When I debugged the application, I found that it might
be caused by wrong from info in ThreadMessageContext.

java.lang.NullPointerException
  at
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke
(
JDKCallbackInvocationHandler.java:77)
  at $Proxy11.notify(Unknown Source)
  at orderprocess.SupplierImpl.notify(SupplierImpl.java:70)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at

org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget

(
JavaTargetInvoker.java:112)
  at

org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke

(
JavaTargetInvoker.java:134)
  at

org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke

(
TargetInvokerInvoker.java:46)
  at
org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(
AbstractInvocationHandler.java:84)
  at
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler.invoke
(
JDKCallbackInvocationHandler.java:85)
  at $Proxy13.notify(Unknown Source)
  at orderprocess.RaiwayTransport.doShipping(RaiwayTransport.java:56)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at

org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget

(
JavaTargetInvoker.java:112)
  at

org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke

(
JavaTargetInvoker.java:134)RuntimeException invoking receiveResult:
java.lang.NullPointerException

  at

org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke

(
TargetInvokerInvoker.java:46)
  at
org.apache.tuscany.sca.core.invocation.NonBlockingInterceptor$1.run(
NonBlockingInterceptor.java:68)
  at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java
:61
)
  at
org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(
ThreadPoolWorkManager.java:206)
  at 

Re: How are we going to use the Tuscany Wiki space?

2007-06-30 Thread Simon Laws

On 6/15/07, Simon Nash [EMAIL PROTECTED] wrote:


I'd like to retain the copied pages from the Tuscany web site.  As Venkat
said, this makes it easy for non-committers to develop and preview
proposed
updates to the Web site.  I agree that it would be good to create a new
front page for the Wiki, with the copied Web site home page
   http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Home
linked from the TUSCANYWIKI front page.

   Simon

Simon Laws wrote:

 I agree. Looking at it now it is confusing with the complete copy of the
 web
 site material presented on the front page. It's not clear where the
 definitive source of this material is.

 +1 to the proposal for changing the front page of TUSCANYWIKI. I would
have
 thought we can just start with a subpage of TUSCANYWIKI for main site
 pages
 in preparation. Everthing else is wiki content with an organization of
our
 choosing.

 Regards

 Simon




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I've had a go at reorganizing the front page of the wiki. But it's a wiki so
if you don't like it

Simon


Please apply stage 1 of patch for TUSCANY-1341

2007-06-30 Thread Simon Nash

Because my patch for supporting callbacks across the Web Service binding
is quite large, I am splitting it into a series of smaller patches to
make it easier to apply.

The first of these patches adds some methods to ReferenceBindingProvider
and ServiceBinding Provider.  At present I have have placed default
implementations of the new methods in all the affected places.  These
will be replaced by fully implemented versions later.  The code to call
these new methods will be added in the next stages of this multi-part
patch.

I have rebuilt the trunk with this patch and everything seems OK.  Since
the new code isn't being called yet, there should be no effect (either
good or bad) at this stage.  I have attached the patch to TUSCANY-1341.

Here is a brief description of the new methods:

ReferenceBindingProvider.createInvoker(Operation) is a replacement for
the current method of the same name that also has a boolean isCallback
parameter.  This second parameter is no longer needed because binding
callback invokers will be created using the new method
ServiceBindingProvider.createCallbackInvoker(Operation) instead.

The supportsAsyncOneWayInvocation() method on ReferenceBindingProvider
indicates whether the provider supports non-blocking semantics for
one-way forward invocations.

The supportsAsyncOneWayInvocation() method on ServiceBindingProvider
indicates whether the provider supports non-blocking semantics for
one-way callback invocations.

The ServiceBindingProvider.createCallbackInvoker(Operation) method
creates a callback invoker for the binding.

  Simon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Updated: (TUSCANY-1341) Callback over WS Binding is not functioning various issues

2007-06-30 Thread Simon Nash (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Nash updated TUSCANY-1341:


Attachment: jira1341-patch1

Because my patch for supporting callbacks across the Web Service binding is 
quite large, I am splitting it into a series of smaller patches to make it 
easier to apply.

The first of these patches adds some methods to ReferenceBindingProvider and 
ServiceBinding Provider.  At present I have have placed default implementations 
of the new methods in all the affected places.  These will be replaced by fully 
implemented versions later.  The code to call these new methods will be added 
in the next stages of this multi-part patch.

I have rebuilt the trunk with this patch and everything seems OK.  Since the 
new code isn't being called yet, there should be no effect (either good or bad) 
at this stage.

Here is a brief description of the new methods:

ReferenceBindingProvider.createInvoker(Operation) is a replacement for the 
current method of the same name that also has a boolean isCallback parameter.  
This second parameter is no longer needed because binding callback invokers 
will be created using the new method 
ServiceBindingProvider.createCallbackInvoker(Operation) instead.

The supportsAsyncOneWayInvocation() method on ReferenceBindingProvider 
indicates whether the provider supports non-blocking semantics for one-way 
forward invocations.

The supportsAsyncOneWayInvocation() method on ServiceBindingProvider indicates 
whether the provider supports non-blocking semantics for one-way callback 
invocations.

The ServiceBindingProvider.createCallbackInvoker(Operation) method creates a 
callback invoker for the binding.

 Callback over WS Binding is not functioning various issues
 --

 Key: TUSCANY-1341
 URL: https://issues.apache.org/jira/browse/TUSCANY-1341
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Misc Binding Extensions
Affects Versions: Java-SCA-0.90
Reporter: Lou Amodeo
 Attachments: jira1341-patch1


 The callback function using WS bindings doesnt appear to be operation.  So 
 far I have :
 1) WebServiceBindingProcessor.java 
 -  The resolve() method does not setup the callbackInterface on its 
 InterfaceContract resulting in NPE.
 (i.e. interfaceContract.setCallbackInterface(wsdlCallbackInterface); )
 [6/11/07 13:33:02:220 EDT] 0025 SystemOut O   ... 87 more
 [6/11/07 13:33:02:220 EDT] 0025 SystemOut O Caused by: 
 java.lang.NullPointerException
   at 
 org.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl.map(InterfaceContractMapperImpl.java:246)
   at 
 org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createWires(CompositeActivatorImpl.java:337)
   at 
 org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createRuntimeWires(CompositeActivatorImpl.java:269)
   at 
 org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:580)
   at 
 org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain$DomainCompositeHelper.addComposite(EmbeddedSCADomain.java:124)
   at 
 com.ibm.ws.sca2.tuscany.util.TuscanyInterfaceImpl.startModule(TuscanyInterfaceImpl.java:223)
   at 
 com.ibm.ws.soa.sca.admin.runtime.tuscany.SCATuscanyRuntimeHandlerImpl.startModule(SCATuscanyRuntimeHandlerImpl.java:82)
   at 
 com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARuntimeImpl.java:366)
   at 
 com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.stateChanged(SCARuntimeImpl.java:286)
   at 
 com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1264)
   at 
 com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1112)
   at 
 com.ibm.ws.runtime.component.DeployedModuleImpl.setState(DeployedModuleImpl.java:206)
   at 
 com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:566)
   at 
 com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
   at 
 com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965)
   at 
 com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1495)
   at 
 com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3924)
   at 
 com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4001)
   at 
 com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
   at 
 com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1500)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at