Hello Alis,

the Wicket programming model is based on the typical web application request scenario - one thread typically processes one HTTP request using the org.apache.wicket.protocol.http.WicketFilter. This filter sets the application context using a thread-local, many wicket internals and also analogous many wicket applications use this thread-local over a static method by Application.get().

For the case that code for different application instances or even outside of the WicketFilter contexts request must be executed, you can use the following template. It works similar to the WicketFilter.

    public ApplicationContextTemplate(Application application) {
        final ThreadContext previousThreadContext = ThreadContext.detach();
        try {
        } finally {

    protected abstract void execute();

Best regards,


On 05/16/2013 04:04 PM, Richard W. Adams wrote:
What do you mean by "unify"? Do you want to merge them into a single
application with only one code base? Or do you mean something else?

If you intend to keep them as two separate applications, there are number
of techniques for inter-process communication.

From:   Alis <ajcalve...@yahoo.es>
To:     users@wicket.apache.org
Date:   05/16/2013 08:55 AM
Subject:        Wicket in other application

Hello! Currently, I have two applications: one wicket and one in struts

Both need to interact. I keep the same HttpServletRequest and HttpSession
both apliacaiones.

The solution I thought is to unify the wicket application in another

How do I?

View this message in context:

Sent from the Users forum mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to