You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by sap2000 <sa...@indiatimes.com> on 2011/01/10 07:51:26 UTC
inter application communication in wicket
Hi,
Can anybody please throw some light on how two wicket applications, deployed
into the same container can interact with each other?
Basic requirement is, parameters should be passed from component in
Application1 to component in Application2, when Application2 is called from
Application1 via click of a link or button.
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: inter application communication in wicket
Posted by Igor Vaynberg <ig...@gmail.com>.
i think http sessions are also isolated. ive never tried hacking the
jsessionid cookie to be on / if i have more than one app running on
different contexts...
-igor
On Mon, Jan 10, 2011 at 10:20 AM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> Sorry, should have been more clear - the servlet session (not wicket
> session) - if it is the same across all apps (i.e. session cookie is on /)
>
> On Mon, Jan 10, 2011 at 11:05 AM, Igor Vaynberg <ig...@gmail.com>wrote:
>
>> no, sessions are isolated between web applications.
>>
>> -igor
>>
>> On Mon, Jan 10, 2011 at 9:02 AM, Jeremy Thomerson
>> <je...@wickettraining.com> wrote:
>> > Additionally, since you said they were in the same container, you could
>> do
>> > it through the session.
>> >
>> > On Mon, Jan 10, 2011 at 12:53 AM, Nick Heudecker <nheudecker@gmail.com
>> >wrote:
>> >
>> >> We use ActiveMQ and Camel for those types of operations. It's been very
>> >> successful.
>> >>
>> >> On Sun, Jan 9, 2011 at 10:51 PM, sap2000 <sa...@indiatimes.com>
>> wrote:
>> >>
>> >> >
>> >> > Hi,
>> >> >
>> >> > Can anybody please throw some light on how two wicket applications,
>> >> > deployed
>> >> > into the same container can interact with each other?
>> >> >
>> >> > Basic requirement is, parameters should be passed from component in
>> >> > Application1 to component in Application2, when Application2 is called
>> >> from
>> >> > Application1 via click of a link or button.
>> >> >
>> >> > Thanks.
>> >> > --
>> >> > View this message in context:
>> >> >
>> >>
>> http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html
>> >> > Sent from the Users forum mailing list archive at Nabble.com.
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> > For additional commands, e-mail: users-help@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > Jeremy Thomerson
>> > http://wickettraining.com
>> > *Need a CMS for Wicket? Use Brix! http://brixcms.org*
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket? Use Brix! http://brixcms.org*
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: inter application communication in wicket
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Sorry, should have been more clear - the servlet session (not wicket
session) - if it is the same across all apps (i.e. session cookie is on /)
On Mon, Jan 10, 2011 at 11:05 AM, Igor Vaynberg <ig...@gmail.com>wrote:
> no, sessions are isolated between web applications.
>
> -igor
>
> On Mon, Jan 10, 2011 at 9:02 AM, Jeremy Thomerson
> <je...@wickettraining.com> wrote:
> > Additionally, since you said they were in the same container, you could
> do
> > it through the session.
> >
> > On Mon, Jan 10, 2011 at 12:53 AM, Nick Heudecker <nheudecker@gmail.com
> >wrote:
> >
> >> We use ActiveMQ and Camel for those types of operations. It's been very
> >> successful.
> >>
> >> On Sun, Jan 9, 2011 at 10:51 PM, sap2000 <sa...@indiatimes.com>
> wrote:
> >>
> >> >
> >> > Hi,
> >> >
> >> > Can anybody please throw some light on how two wicket applications,
> >> > deployed
> >> > into the same container can interact with each other?
> >> >
> >> > Basic requirement is, parameters should be passed from component in
> >> > Application1 to component in Application2, when Application2 is called
> >> from
> >> > Application1 via click of a link or button.
> >> >
> >> > Thanks.
> >> > --
> >> > View this message in context:
> >> >
> >>
> http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html
> >> > Sent from the Users forum mailing list archive at Nabble.com.
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >>
> >
> >
> >
> > --
> > Jeremy Thomerson
> > http://wickettraining.com
> > *Need a CMS for Wicket? Use Brix! http://brixcms.org*
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: inter application communication in wicket
Posted by Igor Vaynberg <ig...@gmail.com>.
no, sessions are isolated between web applications.
-igor
On Mon, Jan 10, 2011 at 9:02 AM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> Additionally, since you said they were in the same container, you could do
> it through the session.
>
> On Mon, Jan 10, 2011 at 12:53 AM, Nick Heudecker <nh...@gmail.com>wrote:
>
>> We use ActiveMQ and Camel for those types of operations. It's been very
>> successful.
>>
>> On Sun, Jan 9, 2011 at 10:51 PM, sap2000 <sa...@indiatimes.com> wrote:
>>
>> >
>> > Hi,
>> >
>> > Can anybody please throw some light on how two wicket applications,
>> > deployed
>> > into the same container can interact with each other?
>> >
>> > Basic requirement is, parameters should be passed from component in
>> > Application1 to component in Application2, when Application2 is called
>> from
>> > Application1 via click of a link or button.
>> >
>> > Thanks.
>> > --
>> > View this message in context:
>> >
>> http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>
>
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket? Use Brix! http://brixcms.org*
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: inter application communication in wicket
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Additionally, since you said they were in the same container, you could do
it through the session.
On Mon, Jan 10, 2011 at 12:53 AM, Nick Heudecker <nh...@gmail.com>wrote:
> We use ActiveMQ and Camel for those types of operations. It's been very
> successful.
>
> On Sun, Jan 9, 2011 at 10:51 PM, sap2000 <sa...@indiatimes.com> wrote:
>
> >
> > Hi,
> >
> > Can anybody please throw some light on how two wicket applications,
> > deployed
> > into the same container can interact with each other?
> >
> > Basic requirement is, parameters should be passed from component in
> > Application1 to component in Application2, when Application2 is called
> from
> > Application1 via click of a link or button.
> >
> > Thanks.
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
--
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: inter application communication in wicket
Posted by Nick Heudecker <nh...@gmail.com>.
We use ActiveMQ and Camel for those types of operations. It's been very
successful.
On Sun, Jan 9, 2011 at 10:51 PM, sap2000 <sa...@indiatimes.com> wrote:
>
> Hi,
>
> Can anybody please throw some light on how two wicket applications,
> deployed
> into the same container can interact with each other?
>
> Basic requirement is, parameters should be passed from component in
> Application1 to component in Application2, when Application2 is called from
> Application1 via click of a link or button.
>
> Thanks.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
SV: inter application communication in wicket
Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> Can anybody please throw some light on how two wicket applications, deployed
> into the same container can interact with each other?
The easiest is to just pass the parameters as normal path- or query parameters (strings) in the link. For more complex cases you can either try passing a JSON representation of an object, or use "cross-context" features in the container (e.g. in Tomcat you put a property in the context.xml file for the app to enable it) by getting the other application's ServletContext by path.
If they are just going to share information in a manner not limited to the request, try putting it into JNDI from application A then picking it up in application B.
Both the JNDI and cross-context approaches require the classes involved to be on a shared classpath, e.g. the container classpath.
- Tor Iver
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org