Issue with resolving Session scoped components within Web service Implementation class

View: New views
3 Messages — Rating Filter:   Alert me  

Issue with resolving Session scoped components within Web service Implementation class

by thewall_me :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We have a web service deployed in ATG 2006.3 which is running on WebSphere application server. When a client invokes the web service, the call reaches the service implementation class and in the service method, we are trying to resolve a Session scoped Dynamo component using JNDI. It throws the following exception when it is trying to resolve the component.

Invalid attempt to resolve component in scope global.  It is defined in scope session

Has someone came across this problem, how to resolve Session scoped component with in Service implementation class.

Re: Issue with resolving Session scoped components within Web service Implementation class

by mhvenkat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, did you get any answers on this topic? I am also looking for a resolution on this topic. Thanks --Mahesh

Re: Issue with resolving Session scoped components within Web service Implementation class

by tingumr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try using some thing like, ServletUtil.getCurrentRequest().resolveName("/your/component");

ServletUtil.getCurrentRequest() will return the DynamoHTTPRequest object associated with the current thread.