1 Reply Latest reply on Jul 10, 2008 1:31 AM by jaikiran

    Problem with same package structure and class name

    srivass

      Hi,

      I am new to JBoss. I am facing a strange problem in JBoss 4.0.2.

      I am creating two EJB Projects, say ProductEJB and CustomerEJB. ProductEJB has ProductBean and CustomerEJB has CustomerBean. Each EJB is having a class named "Display" with same package structure. The Class "Display" contains business logic for the respective EJB's.

      Whenever i make a call from either ProductEJB client or CustomerEJB client, the call goes to CustomerEJB only. It does not call ProductEJB even if the call is from ProductEJB Client.

      I think the reason is that the same package structure and same class name ("Display") exists in both EJBs. Why is this happening? My requirement does not allow me to go with different Class name and Package Structure in both EJBs.

      Any solutions for this problem is really helpful.