Issue Type: Feature Request Feature Request
Affects Versions: 0.5
Assignee: Unassigned
Components: component-bean
Created: 03/Jul/12 12:50 PM
Description:

Using @Inject for Context and querying a context property produces the following exception:

Caused by: java.lang.UnsupportedOperationException: Illegal call to get the SwitchYard Exchange Context.  Must be called within the scope of an Exchange Handler Chain.
	at org.switchyard.component.bean.internal.context.ContextProxy.getContext(ContextProxy.java:115)
	at org.switchyard.component.bean.internal.context.ContextProxy.getProperty(ContextProxy.java:42)
	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:597)
	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
	at org.jboss.weld.proxies.org$jboss$weld$serialization$ContextualStoreImpl1_$$_WeldClientProxy.getProperty(org$jboss$weld$serialization$ContextualStoreImpl1_$$_WeldClientProxy.java)
	at com.example.switchyard.fileproperty.HelloBean.hello(HelloBean.java:18)
	... 55 more
Fix Versions: 0.5
Project: SwitchYard
Priority: Major Major
Reporter: Keith Babo
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira