It is possible to inject another repository like this:

Repository MediaRepository {
  > MediaCharacterRepository
  List<@Media> findMediaByCharacter(Long libraryId, String characterName);
  ...
}

See:
http://fornax-platform.org/cp/display/fornax/3.+Advanced+Tutorial+%28CSC%29#3.AdvancedTutorial%28CSC%29-HowtoGenerateRepositories

/Patrik

R. Heydenreich wrote:
> 
> Hi all,
> is there a possibility for accessing a repository from within another?
> e.g.,
> 
> <code>
> public class RepoNo1 {
> public void oneMethod() {
>    RepoNo2 r2 = getRepoNo2();
>    r2.doSomeThing();
> }
> </code>
> 
> If I take the way via JNDI lookup I always get a new session, what I don't
> want. Any ideas?
> 
> TIA,
> Ralf.
> 

-- 
View this message in context: 
http://www.nabble.com/-sculptor--Access-one-repository-from-another-tp21052251s17564p21052490.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to