Hi aroua rourou,
There is a dedicated forum for EJB where you could get better and quicker help.
By the way, I would suggest to make your question more verbose. I'm not EJB expert, but I didn't get anything from what you meant by
aroua rourou wrote:for now I use a client in which I put the main, then I run the application as java application
I hope this helps.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)