There is nothing special about invoking methods on a session without a bean state. You use the same syntax as for any other type of bean.
As Bojo pointed out, the only thing that is especially important in EJB is that you cannot create an instance using the new operator. You need to enter an instance or, alternatively, search in JNDI. After that, the usual Java rules apply.
This really doesnβt need to be explained, but, of course, calling the method on a session without a bean state called a 'bean':
bean.someMethod(someArgument);
source share