Need to move my JPA and DeltaSpike repositories to EJB EAR module to allow access from two different WARs in the same EAR
What is recommnded approach to access DeltaSpike repository as EJB ?
For adhoc I created PersonService class annotated with @Stateless
@Stateless
public class PersonService {
@Inject PersonRepository personRepository;
public PersonRepository getRepository(){
return personRepository;
}
}
Do you have some other ideas ?
Paweł
