Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2007
joshmoore joshmoore is offline
Registered User
 
Name: Josh Moore
Organization: Glencoe Software, Inc.
Project: OMERO, http://trac.openmicroscopy.org.uk/omero
 
Join Date: Feb 2007
Location: Germany
Posts: 59
Possible late "binding" of Glacier2 to PermissionsVerifier?

Calling glacier2router before the server application has started causes a ConnectionRefusedException:
Code:
glacier2router --Ice.Config=resources/glacier2.config 
06/23/07 13:20:02.913 error: unable to contact permissions verifier `Verifier:tcp -h 127.0.0.1 -p 9999'
Network.cpp:662: Ice::ConnectionRefusedException:
connection refused: Connection refused
Is it possible (or could it be possible in future versions) to have glacier2 contact the permissions verifier as late as possible, such that glacier2 could always be started via init.d or similar?

glacier2 seems to be tolerant of restarting the server app, it's just the initial connection which seems problematic. Perhaps a configuration option that bypasses this sanity check (if it is one).
Reply With Quote
  #2 (permalink)  
Old 06-25-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
I agree that it seems a bit restrictive. We'll look into changing this for a future Ice release. If you cannot arrange to start the verifier first for whatever reason you could ensure your verifier is always running first when Glacier2 is started is to load the permissions verifier into the Glacier2 router as a shared library plug-in.
Reply With Quote
  #3 (permalink)  
Old 06-25-2007
joshmoore joshmoore is offline
Registered User
 
Name: Josh Moore
Organization: Glencoe Software, Inc.
Project: OMERO, http://trac.openmicroscopy.org.uk/omero
 
Join Date: Feb 2007
Location: Germany
Posts: 59
Thanks for looking into the startup, Matthew. As far as the plugin is concerned, our permissions verifier is in Java, so a glacier2 plugin won't work. That is, unless there were a Java-based router. Has there been any thought of one? Would it be feasible/sensible? For our purposes a collocated router could make sense and reduce the deployment complexity, which at the moment will most likely involve two separate init.d scripts.
Reply With Quote
  #4 (permalink)  
Old 06-25-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
I don't think a Java based router makes sense... it would be quite a bit slower than the C++ version. Seems to me it would be easier to rewrite the permissions verifier in C++ than rewrite the entire router in Java An alternative would be to use IceGrid and launch the verifier on demand as an IceGrid service. You can also manage Glacier2 from IceGrid -- except you cannot launch on demand. Instead you would have IceGrid start it up all the time.
Reply With Quote
  #5 (permalink)  
Old 06-27-2007
joshmoore joshmoore is offline
Registered User
 
Name: Josh Moore
Organization: Glencoe Software, Inc.
Project: OMERO, http://trac.openmicroscopy.org.uk/omero
 
Join Date: Feb 2007
Location: Germany
Posts: 59
I'll look into starting Glacier2 from IceGrid. Thanks, Matthew.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? Jason Gao Help Center 4 10-26-2006 12:23 PM
Icepack registry "TimeOut" exception with heavy load eaglecn Help Center 1 05-26-2006 01:02 AM
"make test" failure on Ice 3.0.1 installation. SUSE 10.1. pchapin Help Center 4 05-22-2006 11:20 PM
glacier2 and icepack for sessionmanager,permissionsverifier seth.piezas Help Center 7 02-11-2005 03:11 PM
Going from "in" to "out" param, using a class as a union catalin Help Center 1 04-05-2004 09:55 AM


All times are GMT -4. The time now is 01:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.