The same as from any other client, via JNDI.
Well, that's pretty obvious but I was wondering about the naming convention. Here is the code and naming convention:
Properties p = new Properties();
context = new InitialContext(p);
Object object = context.lookup("/applicationNameOfEarWithoutExtension/NameOfSessionBeanInNameAnnotation/local");
So if you work with Seam and deploy a ear called "myapp.ear" and tag a bean with @Name("testSessionBean"), the you need to call:
Object object = context.lookup("/myapp/testSessionBean/local");