[MOBY-guts] biomoby commit

Eddie Kawas kawas at pub.open-bio.org
Wed Mar 15 16:22:38 UTC 2006


kawas
Wed Mar 15 11:22:38 EST 2006
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jTypes
In directory pub.open-bio.org:/tmp/cvs-serv32102/org/biomoby/client/ui/graphical/servlet/jTypes

Modified Files:
	Types.java 
Log Message:
updated RDF generators and clients so that LSIDs with versioining information is used. This is only preliminary. More updates to come

moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jTypes Types.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jTypes/Types.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jTypes/Types.java	2006/01/03 19:24:15	1.4
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jTypes/Types.java	2006/03/15 16:22:38	1.5
@@ -32,24 +32,43 @@
         // super.init();
     	// try to load environment variables set in context.xml
     	try {
-    		Context c = new InitialContext();
-    		String MOBY_CENTRAL_CONFIG = (String) c.lookup("java:comp/env/MOBY_CENTRAL_CONFIG");
-    		String MOBY_SERVER = (String) c.lookup("java:comp/env/MOBY_SERVER");
-    		String MOBY_URI = (String) c.lookup("java:comp/env/MOBY_URI");
-    		if (MOBY_CENTRAL_CONFIG != null && !MOBY_CENTRAL_CONFIG.equals("")) {
-    			// set MOBY_CENTRAL_CONFIG
-    			System.setProperty("MOBY_CENTRAL_CONFIG",MOBY_CENTRAL_CONFIG);
-    		}
-    		if (MOBY_SERVER != null && !MOBY_SERVER.equals("")) {
-    			// set MOBY_SERVER
-    			System.setProperty("MOBY_SERVER",MOBY_SERVER);
-    		}
-    		if (MOBY_URI != null && !MOBY_URI.equals("")) {
-    			// set MOBY_URI
-    			System.setProperty("MOBY_URI",MOBY_URI);
-    		}
-    		
-    	} catch (Exception e) {}
+			Context c = new InitialContext();
+
+			try {
+				String MOBY_CENTRAL_CONFIG = null;
+				MOBY_CENTRAL_CONFIG = (String) c.lookup("java:comp/env/MOBY_CENTRAL_CONFIG");
+				if (MOBY_CENTRAL_CONFIG != null && !MOBY_CENTRAL_CONFIG.equals("")) {
+					// set MOBY_CENTRAL_CONFIG
+					System.out.println("init(setting MOBY_CENTRAL_CONFIG)");
+					System.setProperty("MOBY_CENTRAL_CONFIG", MOBY_CENTRAL_CONFIG);
+				}
+
+			} catch (Exception ex) {
+			}
+			try {
+				String MOBY_SERVER = null;
+				MOBY_SERVER = (String) c.lookup("java:comp/env/MOBY_SERVER");
+				if (MOBY_SERVER != null && !MOBY_SERVER.equals("")) {
+					// set MOBY_SERVER
+					System.out.println("init(setting MOBY_SERVER)");
+					System.setProperty("MOBY_SERVER", MOBY_SERVER);
+				}
+			} catch (Exception ex) {
+			}
+
+			try {
+				String MOBY_URI = null;
+				MOBY_URI = (String) c.lookup("java:comp/env/MOBY_URI");
+				if (MOBY_URI != null && !MOBY_URI.equals("")) {
+					// set MOBY_URI
+					System.out.println("init(setting MOBY_URI)");
+					System.setProperty("MOBY_URI", MOBY_URI);
+				}
+			} catch (Exception ex) {
+			}
+
+		} catch (Exception e) {
+		}
     }
 
     /* (non-Javadoc)




More information about the MOBY-guts mailing list