Business Exception is not in the ClientEJB classpath

3

I have the following situation:

EJB PROJECT

public BussinessException extends Exception {}

public MyInterfaceImplementation implements MyInterface {}

EJB PROJECT CLIENT

public interface MyInterface {
    public void foo() throws BussinessException;    
}

Exception ( BussinessException ) is not in the EJBClient classpath. How to solve this problem ?? I can not put the (physical) EJB project in the client classpath.

    
asked by anonymous 27.02.2014 / 00:00

2 answers

1

Complementing Andre's response (I wanted to put it as a comment). Here is a visual example:

Interestingly,auserfromanotherforumaskedasimilarquestion,andIuploadedamavenprojectingithubwithasimilarstructuretoview click here .

    
27.02.2014 / 03:49
0

How about three projects?

  • API project: Contains your interfaces and business exceptions.
  • EJB project: implements its interfaces and depends on the API Project jar.
  • Client Project: Accesses your EJB project and also depends on the API Project jar.
27.02.2014 / 01:29