User development,
A new message was posted in the thread "[6.0.0M2] SessionContext "mapped-name is
required"":
http://community.jboss.org/message/528113#528113
Author : jaikiran pai
Profile :
http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
Works fine for me:
@Stateless
@Remote (Echo.class)
public class EchoBean extends CommonEcho implements Echo
{
public String echo(String msg)
{
System.out.println("Session context is " + this.sessionContext);
return msg;
}
}
public class CommonEcho
{
@Resource
protected SessionContext sessionContext;
}
Upon calling the echo method, i see the injected session context:
13:17:57,936 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS
[6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)]
...
13:20:05,100 INFO [STDOUT] Session context is
org.jboss.ejb3.stateless.StatelessSessionContextImpl@1edd91b
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/528113#528113