Calling two backing bean in a JSP

I am populating data in JSP using my backig bean say BackingBeanA in a application. In another application I need to populate same data in my JSP + some other data in different components of the page for which am writing BackingBeanB.

How can i make use of both the beans in my JSP.

Any suggestions?

Thanks in advance.

[343 byte] By [princea] at [2007-10-3 1:22:24]
# 1

Just add it to the faces-config.xml.<managed-bean>

<managed-bean-name>myBean1</managed-bean-name>

<managed-bean-class>mypackage.MyBean1</managed-bean-class>

<managed-bean-scope>session</managed-bean-scope>

</managed-bean>

<managed-bean>

<managed-bean-name>myBean2</managed-bean-name>

<managed-bean-class>mypackage.MyBean2</managed-bean-class>

<managed-bean-scope>session</managed-bean-scope>

</managed-bean>

etc...

BalusCa at 2007-7-14 18:19:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Do U want to use managed bean from application B in application A ?

If so, the way of BalusC won't work. I don't know any better way to share data between two web applications than using crosscontext .

If U will set in your applications crosscontext to true, then U will be able to save in application's A context some data , and then read it with application B.

Martin

mandrzeja at 2007-7-14 18:19:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I am looking for is to call the backing bean of one application into another application .
princea at 2007-7-14 18:19:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Are you talking about two separate webapplications (two different EAR/WAR) ?
BalusCa at 2007-7-14 18:19:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Yes that is true . I will use jar file of one in another.
princea at 2007-7-14 18:19:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...