[jboss-user] [EJB/JBoss] - jboss scheduler

veeseekay do-not-reply at jboss.com
Tue Jul 31 10:05:47 EDT 2007


chaps,

am using jboss scheduler to schedule an mbean.
the method am trying to schedule uses another mbean method(@depends)
but when this method is sceduled, the second mbean method throws a null pointer.

here s the scenario

@LocalBinding(jndiBinding = "xx/yy/local")
@RemoteBinding(jndiBinding = "xx/yy/remote")
@Service(objectName = "xx:service=yy")
@Management(...)
@Depends( { "aa:service=Environment" })
public class MyClass implements Schedulable {

	@Depends("a:service=Environment")
	private Environment e;
	
	public mySchedulableMethod() {
		//calls method on Environment
		e.something(); //this throws null pointer
	}

}


any ideas??

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

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



More information about the jboss-user mailing list