I have created an mbean by using the @Service and @Management annotations and has been deployed and started to run.
In my start method, I try and lookup a bean, but am getting an error saying "ejb/local-HelloBean not bound". The HelloBean was deployed correctly. Any insight would be appreciated.
start throws exception
{
InitialContextcontext = new InitialContext();
Hello hello= (Hello)context.lookup("java:comp/env/ejb/local-HelloBean");
}
Thanks
abronson