Problem setting an object from a remote ejb

Asked

Viewed 23 times

-2

I’m having trouble using a Set of a remote EJB object, this object will be sent to the same EJB and there will make a connection to the bank or a webservice(As it is a company application I can not put the code here, so I will put an example).

Ex:

 ClasseDTODoEJB.setAtributo1("StringAleatoria");//Recebe o valor normalmente
 ClasseDTODoEJB.setAtributo2("StringAleatoria");//Causa um erro apesar de receber string e não possuir uma regra de negócio

 ClasseWebServiceDoEJB.ChamaWebService(ClasseDTODoEJB);//Classe que recebe o DTO pra fazer alguma tarefa ao qual não possuo acesso

I tried to create an equal DTO in the local application and use Beanutils.Copyproperties() to copy the value from one to the other but the attributes are not passed correctly even though the two classes are equal and the location is receiving all attributes. Could this be a build path error? The jar is declared there and on Tomcat in Shared.Oader.

1 answer

0


The problem was in Tomcat’s Transfer, I forgot to add the path of this EJB.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.