//simple Stateless Session Bean for creating preferences accounts package cylikon.PreferencesEJB; import javax.ejb.*; import java.rmi.*; import java.util.*; public interface CreateAccount extends EJBObject,Remote { // one simple method to determine if the username already // exists, or if we where able to create the new account successfully Vector DoSignup(String username,String password,String b, String je, String pl) throws RemoteException; /* The values in the constructor are as follows: username= the username the client wants, password= password the client wants, b=information about the user's web browser, je=information about whether the user has a java-enabled browser, pl=any information we can get about the user's plugins loaded on the browser. */ // The vector will always contain exactly three elements, the first will be a simple // int of either 1 or 0 (true or false), to indicate whether the signup succeeded // or failed. the second element will be a String status message, providing more // detailed information about the failure or success of the transaction. The last // element will be a serial number created within the bean, which will be used // later for purposes of authentication and for setting cookies. }