ejb3 keeps backward compatibility with ejb2, this link might help on that subject http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/EJB_2.1_Client_Adaptors.html
but if you are building the ejb component from scratch you could use a @postconstruct or @postactivate method to setup the sb before is used