Exemplo n.º 1
0
 private ContentManager getContentManager() throws Exception {
   ContentManagerHome home =
       (ContentManagerHome)
           EJBHomeFactory.getFactory()
               .lookup(ContentManagerHome.class, ContentManagerHome.JNDI_NAME);
   return home.create();
 }
 private FixPatientAttributes newFixPatientAttributes() {
   try {
     FixPatientAttributesHome home =
         (FixPatientAttributesHome)
             EJBHomeFactory.getFactory()
                 .lookup(FixPatientAttributesHome.class, FixPatientAttributesHome.JNDI_NAME);
     return home.create();
   } catch (Exception e) {
     throw new RuntimeException("Failed to access FixPatientAttributes EJB:", e);
   }
 }
Exemplo n.º 3
0
 protected FileSystemMgt2 newFileSystemMgt() throws Exception {
   return ((FileSystemMgt2Home)
           EJBHomeFactory.getFactory()
               .lookup(FileSystemMgt2Home.class, FileSystemMgt2Home.JNDI_NAME))
       .create();
 }
Exemplo n.º 4
0
 private GPWLManager getGPWLManager()
     throws CreateException, RemoteException, HomeFactoryException {
   return ((GPWLManagerHome)
           EJBHomeFactory.getFactory().lookup(GPWLManagerHome.class, GPWLManagerHome.JNDI_NAME))
       .create();
 }
Exemplo n.º 5
0
 private StudyMgtHome getStudyMgtHome() throws HomeFactoryException {
   return (StudyMgtHome)
       EJBHomeFactory.getFactory().lookup(StudyMgtHome.class, StudyMgtHome.JNDI_NAME);
 }
 Storage getStorage() throws RemoteException, CreateException, HomeFactoryException {
   return ((StorageHome)
           EJBHomeFactory.getFactory().lookup(StorageHome.class, StorageHome.JNDI_NAME))
       .create();
 }