[jboss-user] [EJB 3.0] - Re: Parameters by context
Andre1001
do-not-reply at jboss.com
Wed Aug 15 13:09:54 EDT 2007
I've tried with...
Client:
| Properties properties = new Properties();
| properties.put("lingua","portugues");
| Context c1 = new InitialContext(properties);
|
EJB (Session Stateless):
@Resource SessionContext ctx;
| String x = ctx.getEnvironment().getProperty("lingua");
|
but getEnvironment() is deprecated...
org.jboss.soa.esb.actions.ActionProcessingException: Unexpected invocation target exception from processor
| at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:127)
| at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
| at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:262)
| at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:297)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
| Caused by: javax.ejb.EJBException: Deprecated
| at org.jboss.ejb3.BaseSessionContext.getEnvironment(BaseSessionContext.java:265)
| at com.buscape.cep.facade.CepFACADEBean.persiste(CepFACADEBean.java:64)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
|
Any tip?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074527#4074527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074527
More information about the jboss-user
mailing list