Javax.naming.NameNotFoundException: BAE not bound

1 resposta
jason_bourne

Amigos,

Estou tentando logar numa aplicação que usa ejb remote e esta dando esse erro:

Eu fui ver…e a exception ocorre nesse código:

public ControleAcessoDelegate() throws DelegateException{
		try{
			stub = (ControleAcesso) ServiceLocator.getInstance().getEJBRemoteStatefull(ControleAcessoBean.class.getSimpleName());	
		}catch(ServiceLocatorException e){
			System.out.println("Erro ControleAcessoDelegate: "+e);
			logger.error("BAE:: Erro ao executar ServiceLocator.getInstance().getEJBRemoteStatefull(ControleAcessoBean)");
			throw new DelegateException(e);
		}
	}

E o getEJBRemoteStatefull é:

public Object getEJBRemoteStatefull(String jndiHomeName) throws ServiceLocatorException {
		Object ejb = null;
		try {
			System.out.println("jndiHomeName: "+jndiHomeName);
			ejb = ic.lookup("BAE/" + jndiHomeName + "/remote");
			
		} catch (NamingException ne) {
			throw new ServiceLocatorException(ne);
		} catch (Exception e) {
			throw new ServiceLocatorException(e);
		}
		return ejb;
	}

Alguém pode me ajudar?

1 Resposta

jason_bourne

seria algo relacionado ao ejb remote?

Criado 30 de maio de 2008
Ultima resposta 30 de mai. de 2008
Respostas 1
Participantes 1