When I see the example about Stateful Session Bean Java EE 6, I never see the create method, here is the interface:
public interface Cart {
public void initialize(String person) throws BookException;
public void initialize(String person, String id)
throws BookException;
public void addBook(String title);
public void removeBook(String title) throws BookException;
public List<String> getContents();
public void remove();
}
But in the client's application, I see it invokes the create method, like that:
cart.create("Duke DeEarl", "123");
I cannot understand, can you help me?
Source example: http://docs.oracle.com/javaee/6/tutorial/doc/bnbod.html