[jboss-user] [JBoss Seam] - Re: Third-party EJBs as seam components

patrickr do-not-reply at jboss.com
Mon Aug 6 13:51:20 EDT 2007


Doing it programmatically works:

@Name("shoppingCart")
  | @Scope(ScopeType.SESSION)
  | public class ShoppingCartManager 
  | {
  | 	private ShoppingCart shoppingCart;
  | 
  | 	@Create
  | 	public void create() throws NamingException 
  | 	{
  | 		InitialContext ic = new InitialContext();
  | 		//shoppingCart = (ShoppingCart) ic.lookup(ShoppingCart.class.getName());
  | 		shoppingCart = (ShoppingCart) ic.lookup("wct-example/ShoppingCartBean/local");
  | 	}
  | 	
  | 	@Unwrap
  | 	public ShoppingCart getShoppingCart() {
  | 		return shoppingCart;
  | 	}
  | }

But why not with the components.xml? Is this a bug?

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

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



More information about the jboss-user mailing list