[jboss-user] [JBoss Seam] - Re: remoting error in 2.0.0.B1 (No application context activ

zdaler do-not-reply at jboss.com
Tue Jul 3 09:15:21 EDT 2007


The problem seems to occur only when an argument of a "remote" procedure call is an instance of an entity created on the client side by : var customer = Seam.Component.newInstance("customer");

eg : 

the entity object :
anonymous wrote : @Entity
  | @Name("testObject")
  | @Scope(CONVERSATION)
  | public class TestObject {
  | 	@Id
  | 	private String stringId;
  | 
  | 	public String getStringId() {
  | 		return stringId;
  | 	}
  | 
  | 	public void setStringId(String stringId) {
  | 		this.stringId = stringId;
  | 	}	
  | }

in a seam component :
anonymous wrote : @Stateful
  | @Name("testManager")
  | @Scope(ScopeType.CONVERSATION)
  | public class TestManager implements Manager {
  | 	public void testOnly(TestObject test) {
  | 		System.out.println("!!!!!!!!!!!!!!!!!!");
  | 		System.out.println(test);
  | 	}
  | }

in js code :
anonymous wrote : function sayHelloCallback(result) { }
  | testManager = Seam.Component.getInstance("testManager") ;
  | testObject = Seam.Component.newInstance("testObject") ;
  | testManager.testAttachTest(testObject,sayHelloCallback) <-- error
  | 

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

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



More information about the jboss-user mailing list