Hi, from what I could understand from your solution you are assuming both apps have access to the same session object. Perhaps I wasn't very clear... let me explain in greater detail.
I created the two web apps in jsf. Each of them has a backing bean with a session scope, which basically means that each user who accesses each app will have their own backing bean object. One of these web apps is a shopping cart app in which the user will see the items he added to the shopping cart and will be able to change the quantities and remove the items. The information as to what is in the shopping cart is not stored on the web app's backing bean. It's kept in a stateful ejb running in a jboss container. When the user first accesses the shopping cart, the newly created backing bean will check if it already has a reference to remote stateful ejb. If it doesn't it looks it up in JNDI to obtain one and, afterwards the same reference obtained is used in subsequent requests from that application. The other application needs to access the same information as the shopping cart app, that is, the information that is stored in the stateful ejb, present in the jboss container. Since this app is not the shopping cart (and may well be running on a different machine), it doensn't have access to any info present in the shopping cart app's backing beans, which means it doensn't have access to the reference of the stateful ejb that the shopping cart app is using. If this other app, which also has it's own backing beans, looks up the stateful ejb in JNDI, it receives an unused instance of the bean. What I need is to have access to the same instance as the shopping cart app has. Any ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864667#3864667 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864667 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
