Incorrect proxy injected for unwired SCA reference
---------------------------------------------------
Key: TUSCANY-2136
URL: https://issues.apache.org/jira/browse/TUSCANY-2136
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-1.2
Reporter: Jean-Sebastien Delfino
Fix For: Java-SCA-1.2
Discussed on tuscany-dev here: http://marc.info/?l=tuscany-dev&m=120615059020103
The latest code does not seem to handle the injection of unwired SCA
references correctly.
Here's how I set up my code:
class CustomerInfoServiceImpl {
@Reference(required = false)
public CustomerInfo customer;
...
}
In the .composite I don't wire the customer reference.
I still end up with a proxy injected into the customer field. I was
expecting the field to be null.
Calling a business method on that proxy throws an exception
<<<
Service not found for component AtomAggregator reference customer
(bindingURI=null operation=getCustomerInfo). Ensure that the composite
containing the service is loaded and started somewhere in the SCA domain
and that if running in a remote node that the interface of the target
service marked as @Remotable
>>>
and that message is pretty misleading too :)
Any idea of what's going wrong with injection?
--
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]