Hi.  I've been trying to track down whether EJB supports a certain
expressiveness or not, but so far have been unable to find the answer.

Does anyone know if it's possible to add new class-level methods to the EJB
Home Interface for a specifiec EJB type?

I understand you can add instance-level (Remote interface) methods, but how
can you add class-level (Home interface) methods?  (like static methods)

I'd like to add a new method to the Home Interface which returns another
Type.   I understand you can overload the Find and Create methods, but I'd
like to add a totally new method.  I'd like to call this method even before
I have a instance of the type.   That makes it difficult to put it in the
Remote interface.

For example, I'd like to do this:


public interface PHome extends EJBHome
{
  public P create( ... ) throws ...;
  public P findByPrimaryKey( PPK pk ) throws ...;
  public Enumeration findByName( ... ) throws ...;

  // new method-- can you do this?
  public Q getARelatedType( ) throws ...;
}


Thanks
-Steve Roth, [EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to