0

Spring Session Scope with ZK AGAIN

asked 2007-06-18 14:06:35 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4367937

By: sousa1981

ZK Team must integrate SPRING BEAN SCOPE SESSION, because:
1. Spring is one of the most important framework and they said zk integrate with spring very well.
2. All my previous code with JSF was using Spring Beans with Session Scope.
3. It is bring problem work with spring without session scope.

<bean id="workflow" parent="daoTxTemplate">
<property name="proxyInterfaces">
<list>
<value>com.opensymphony.workflow.Workflow</value>
</list>
</property>
<property name="target">
<ref local="myWorkflowFactory" />
</property>
</bean>

<bean id="myWorkflowFactory"
class="com.bci.bcioe.osymph.MyWorkflowFactory">
<property name="configuration">
<ref local="workflowConfiguration" />
</property>
</bean>

I need put myWorkflowFactory as scope="session" and it is bring many problem in real web app in production.

Regards,

Marcos de Sousa

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2007-06-18 14:37:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4367983

By: sousa1981

It had in BUG and REQUEST list since: 2007-01-21 11:54 [ 1640685 ] Spring Integration.
Today it is about 5 months with no help, no answer.

And now is out a book which will show spring integration, I don't now how it will be full done!?

Regards,

Marcos de Sousa

link publish delete flag offensive edit

answered 2007-06-18 14:53:09 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4368015

By: sousa1981

I am having some success with the following configuration:

<!-- a HTTP Session-scoped bean exposed as a proxy -->
<bean id="msg" class="com.nemex.sgc.bean.Msg"
scope="session">
<!-- this next element effects the proxying of the surrounding bean -->
<aop:scoped-proxy />
</bean>

MY SESSION SCOPE IS NOW WORKING VERY WELL.

Regards,

Marcos de Sousa

link publish delete flag offensive edit

answered 2007-06-18 15:45:41 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4368096

By: sousa1981

FINAL NOTE: I tested the code bellow with zk 2.4.0

<!-- a HTTP Session-scoped bean exposed as a proxy --> <bean id="msg" class="com.nemex.sgc.bean.Msg"
scope="session">
<!-- this next element effects the proxying of the surrounding bean --> <aop:scoped-proxy /> </bean>

Must be tested with zk 2.x.x, previous not worked.

After I test it very well I will post result here.

Regards,

Marcos de Sousa

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-06-18 14:06:35 +0800

Seen: 354 times

Last updated: Jun 18 '07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More