Delegate pattern, pseudo code (please fix before use!)
Code:
package com.mydomain.somenew.packagenamespace;
@Stateless
@Remote(EasyInterfaceRemote.class)
public class EasyInterfaceImpl implements EasyInterfaceRemote {
@EJB
private SomeDifficultInterface someDifficultInterface;
public DifficultBean3 getDifficultMethod3(DifficultBean9 difficultBean9,DifficultBean10 difficultBean10) {
return someDifficultInterface.getDifficultMethod3(difficultBean9, difficultBean10);
}
}
Now deploy that as a separate EJB that depends on the other.
Create your "EJB client JARs" by including at least the following types EasyInterfaceRemote , DifficultBean3 , DifficultBean9 , DifficultBean10 (plus any other types contained inside the theoretical object graphic within those types).
1) You are not modifying any existing code.
2) You are creating new EJB inside a new package namespace.
3) I believe this pattern in OOP terms would be a Facade pattern implement by way of a Delegation pattern.