Thanks for reply.

Without creating a converstaion, how can I pass the objects between 
invocations? Here is what I've tried for my second approach by having 2 
seperate beans:

  | @Stateless
  | @Name("shopAction")
  | public class ShopAction ...
  | {
  |      @RequestParameter
  |      String id;
  | 
  |      @Out(scope=Conversation)
  |      List items;
  | 
  |      public void showShop(){
  |             items=getShopItems(id);
  |      }
  | 
  | }
  | 
  | @Stateful
  | @Name("bookAction")
  | public class ShopAction ...
  | {
  |     
  |      @In(scope=Conversation)
  |      List items;
  | 
  |     @Begin 
  |     public String buyNow(){
  |           List selectedItem=getSelected(items);
  |          ....
  |     }
  | }
  | 

The shopAction is unable to outject items because it's a stateless bean. When 
bookAction.buyNow() is invoked, it needs to inject items from previous 
operation. 

In summary, I need a way to pass objects from stateless bean to a 
conversational stateful bean. 

Any idea?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945415#3945415

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945415


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to