You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Lou Amodeo (JIRA)" <tu...@ws.apache.org> on 2006/12/01 19:43:25 UTC

[jira] Created: (TUSCANY-965) Context Injection is not functioning

Context Injection is not functioning
------------------------------------

                 Key: TUSCANY-965
                 URL: http://issues.apache.org/jira/browse/TUSCANY-965
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core
            Reporter: Lou Amodeo


Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  


a) setter method 


package org.apache.tuscany.sca.test;

import org.osoa.sca.CurrentCompositeContext;
import org.osoa.sca.ServiceReference;
import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Remotable;
import org.osoa.sca.annotations.Scope;
import org.osoa.sca.annotations.Service;
import org.osoa.sca.annotations.Context;
import org.osoa.sca.CompositeContext;
import junit.framework.Assert;

@Service(CallBackSetCallbackClient.class)

public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	

	@Reference
	protected CallBackSetCalbackService aCallBackService;
	@Reference
	protected CallBackSetCallbackCallback callBack;
	
	private CompositeContext context;
	
	@Context
	public void setContext(CompositeContext aContext) 
	{
		
		context = aContext;
	}
  	
	public void run() {	
		
		if (context == null)
			System.out.println("Context is null");
		


[INFO] [tuscany-itest:start {execution: start}]
[INFO] Starting Tuscany...
[INFO] [tuscany-itest:test {execution: test}]
[INFO] Executing tests...
Context is null

b) attribute 

package org.apache.tuscany.sca.test;

import org.osoa.sca.CurrentCompositeContext;
import org.osoa.sca.ServiceReference;
import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Remotable;
import org.osoa.sca.annotations.Scope;
import org.osoa.sca.annotations.Service;
import org.osoa.sca.annotations.Context;
import org.osoa.sca.CompositeContext;
import junit.framework.Assert;

@Service(CallBackSetCallbackClient.class)

public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	

	@Reference
	protected CallBackSetCalbackService aCallBackService;
	@Reference
	protected CallBackSetCallbackCallback callBack;
	@Context
	protected CompositeContext context;
  	
	public void run() {	
		
		if (context == null)
			System.out.println("Context is null");
		

[WARNING] Unable to get resource from repository central (http://repo1.maven.or
/maven2)
[INFO] [tuscany-itest:start {execution: start}]
[INFO] Starting Tuscany...
[INFO] [tuscany-itest:test {execution: test}]
[INFO] Executing tests...
Context is null


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-965) Context Injection is not functioning

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino updated TUSCANY-965:
-------------------------------------------

    Component/s: Java SCA Integration Tests

> Context Injection is not functioning
> ------------------------------------
>
>                 Key: TUSCANY-965
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-965
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core, Java SCA Integration Tests
>            Reporter: Lou Amodeo
>
> Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  
> a) setter method 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	
> 	private CompositeContext context;
> 	
> 	@Context
> 	public void setContext(CompositeContext aContext) 
> 	{
> 		
> 		context = aContext;
> 	}
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null
> b) attribute 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	@Context
> 	protected CompositeContext context;
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [WARNING] Unable to get resource from repository central (http://repo1.maven.or
> /maven2)
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-965) Context Injection is not functioning

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ignacio Silva-Lepe updated TUSCANY-965:
---------------------------------------

        Fix Version/s: Java-M3
    Affects Version/s: Java-M3

> Context Injection is not functioning
> ------------------------------------
>
>                 Key: TUSCANY-965
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-965
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core, Java SCA Integration Tests
>    Affects Versions: Java-M3
>            Reporter: Lou Amodeo
>             Fix For: Java-M3
>
>
> Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  
> a) setter method 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	
> 	private CompositeContext context;
> 	
> 	@Context
> 	public void setContext(CompositeContext aContext) 
> 	{
> 		
> 		context = aContext;
> 	}
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null
> b) attribute 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	@Context
> 	protected CompositeContext context;
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [WARNING] Unable to get resource from repository central (http://repo1.maven.or
> /maven2)
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Closed: (TUSCANY-965) Context Injection is not functioning

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ignacio Silva-Lepe closed TUSCANY-965.
--------------------------------------


> Context Injection is not functioning
> ------------------------------------
>
>                 Key: TUSCANY-965
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-965
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core, Java SCA Integration Tests
>    Affects Versions: Java-SCA-M3
>            Reporter: Lou Amodeo
>             Fix For: Java-SCA-M3
>
>
> Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  
> a) setter method 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	
> 	private CompositeContext context;
> 	
> 	@Context
> 	public void setContext(CompositeContext aContext) 
> 	{
> 		
> 		context = aContext;
> 	}
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null
> b) attribute 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	@Context
> 	protected CompositeContext context;
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [WARNING] Unable to get resource from repository central (http://repo1.maven.or
> /maven2)
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-965) Context Injection is not functioning

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-965?page=comments#action_12458570 ] 
            
Ignacio Silva-Lepe commented on TUSCANY-965:
--------------------------------------------

AFAICT, the implementation to support context injection has not been completed yet. There is a ContextProcessor but it curently throws UnsupportedOperationException and it is not included in implementation.scdl. Also, CompositeContextImpl is for the most part stubbed out.

> Context Injection is not functioning
> ------------------------------------
>
>                 Key: TUSCANY-965
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-965
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>
> Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  
> a) setter method 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	
> 	private CompositeContext context;
> 	
> 	@Context
> 	public void setContext(CompositeContext aContext) 
> 	{
> 		
> 		context = aContext;
> 	}
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null
> b) attribute 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	@Context
> 	protected CompositeContext context;
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [WARNING] Unable to get resource from repository central (http://repo1.maven.or
> /maven2)
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-965) Context Injection is not functioning

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ignacio Silva-Lepe resolved TUSCANY-965.
----------------------------------------

    Resolution: Fixed

Testing with r497459 shows this working, can you verify as well?

> Context Injection is not functioning
> ------------------------------------
>
>                 Key: TUSCANY-965
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-965
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core, Java SCA Integration Tests
>    Affects Versions: Java-SCA-M3
>            Reporter: Lou Amodeo
>             Fix For: Java-SCA-M3
>
>
> Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  
> a) setter method 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	
> 	private CompositeContext context;
> 	
> 	@Context
> 	public void setContext(CompositeContext aContext) 
> 	{
> 		
> 		context = aContext;
> 	}
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null
> b) attribute 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	@Context
> 	protected CompositeContext context;
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [WARNING] Unable to get resource from repository central (http://repo1.maven.or
> /maven2)
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-965) Context Injection is not functioning

Posted by "Lou Amodeo (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465865 ] 

Lou Amodeo commented on TUSCANY-965:
------------------------------------

I agree,  its working  with r497564. 

> Context Injection is not functioning
> ------------------------------------
>
>                 Key: TUSCANY-965
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-965
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core, Java SCA Integration Tests
>    Affects Versions: Java-SCA-M3
>            Reporter: Lou Amodeo
>             Fix For: Java-SCA-M3
>
>
> Appears that Contesxt injection when using setters and attributes is not working.   In each case the context attribute is null.  
> a) setter method 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	
> 	private CompositeContext context;
> 	
> 	@Context
> 	public void setContext(CompositeContext aContext) 
> 	{
> 		
> 		context = aContext;
> 	}
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null
> b) attribute 
> package org.apache.tuscany.sca.test;
> import org.osoa.sca.CurrentCompositeContext;
> import org.osoa.sca.ServiceReference;
> import org.osoa.sca.annotations.Reference;
> import org.osoa.sca.annotations.Remotable;
> import org.osoa.sca.annotations.Scope;
> import org.osoa.sca.annotations.Service;
> import org.osoa.sca.annotations.Context;
> import org.osoa.sca.CompositeContext;
> import junit.framework.Assert;
> @Service(CallBackSetCallbackClient.class)
> public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient {	
> 	@Reference
> 	protected CallBackSetCalbackService aCallBackService;
> 	@Reference
> 	protected CallBackSetCallbackCallback callBack;
> 	@Context
> 	protected CompositeContext context;
>   	
> 	public void run() {	
> 		
> 		if (context == null)
> 			System.out.println("Context is null");
> 		
> [WARNING] Unable to get resource from repository central (http://repo1.maven.or
> /maven2)
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> Context is null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org