Re: [mapguide-users] Maintaining MapGuide Session during Restart

2009-01-30 Thread Kenneth Skovhede, GEOGRAF A/S

Perhaps you can create a package from a Session repo?

You will run into two problems if you try to copy from Session to Library,
1) Session repo is not enumerable (a security feature, IMO useless)
2) Runtime Maps cannot be saved into Library.

Both problems can be solved by doing a custom build of MapGuide, and 
removing the checks.
I seem to recal that the Session repo can be enumerated by the 
Administrator.


You can't make a 100% xml copy, because the xml has attached resourcesm 
which are binary files.


Regards, Kenneth Skovhede, GEOGRAF A/S



bruce_weston skrev:

Bruce D,

Are you suggesting that this can be done? Does anyone have a script or a
method of copying the session repository into a library object? Is there
even a way of creating a copy of the session as XML?

thanks,

Bruce W



Bruce Dechant wrote:
  

Bruce,

What you are doing by trying to replace the session repository of a
running server is problematic and could lead to server instability. You
really shouldn't do this.

The session repository is meant for temporary runtime data only and not
for persistent data. If you want any of your session repository data to
survive a restart you need to use the library repository instead.

Thanks,
Bruce

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of bruce_weston
Sent: Wednesday, January 28, 2009 2:34 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Maintaining MapGuide Session during Restart


I'm just wondering if anyone has managed to do this yet? This is my
attempted
MapGuide restart script to keep the contents of the session folder backed
up, but it doesn't work:

echo MapGuide Scheduler Task Starting
taskkill /F /FI SERVICES eq MapGuideServer2.0
net stop MapGuideServer2.0
REM xcopy c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\*
c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\ /E /Y
net start MapGuideServer2.0
REM xcopy c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\*
c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\ /E /Y
echo MapGuide Scheduler Task Completed
pause

Is there session data stored anywhere else? I really want to make the
process seamless for my users.

Bruce


--
View this message in context:
http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2231199.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users





  
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Maintaining MapGuide Session during Restart

2009-01-30 Thread bruce_weston

Hmmm. Creating a package from a session may well the be the way forward. I
will look at doing this programatically and report back to the board on my
progress!

thanks for all your help so far people!

Ross



Kenneth Skovhede, GEOGRAF A/S wrote:
 
 Perhaps you can create a package from a Session repo?
 
 You will run into two problems if you try to copy from Session to Library,
 1) Session repo is not enumerable (a security feature, IMO useless)
 2) Runtime Maps cannot be saved into Library.
 
 Both problems can be solved by doing a custom build of MapGuide, and 
 removing the checks.
 I seem to recal that the Session repo can be enumerated by the 
 Administrator.
 
 You can't make a 100% xml copy, because the xml has attached resourcesm 
 which are binary files.
 
 Regards, Kenneth Skovhede, GEOGRAF A/S
 
 
 
 bruce_weston skrev:
 Bruce D,

 Are you suggesting that this can be done? Does anyone have a script or a
 method of copying the session repository into a library object? Is there
 even a way of creating a copy of the session as XML?

 thanks,

 Bruce W



 Bruce Dechant wrote:
   
 Bruce,

 What you are doing by trying to replace the session repository of a
 running server is problematic and could lead to server instability. You
 really shouldn't do this.

 The session repository is meant for temporary runtime data only and not
 for persistent data. If you want any of your session repository data to
 survive a restart you need to use the library repository instead.

 Thanks,
 Bruce

 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of
 bruce_weston
 Sent: Wednesday, January 28, 2009 2:34 AM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Maintaining MapGuide Session during Restart


 I'm just wondering if anyone has managed to do this yet? This is my
 attempted
 MapGuide restart script to keep the contents of the session folder
 backed
 up, but it doesn't work:

 echo MapGuide Scheduler Task Starting
 taskkill /F /FI SERVICES eq MapGuideServer2.0
 net stop MapGuideServer2.0
 REM xcopy
 c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\*
 c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\ /E /Y
 net start MapGuideServer2.0
 REM xcopy c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\*
 c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\ /E /Y
 echo MapGuide Scheduler Task Completed
 pause

 Is there session data stored anywhere else? I really want to make the
 process seamless for my users.

 Bruce


 --
 View this message in context:
 http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2231199.html
 Sent from the MapGuide Users mailing list archive at Nabble.com.

 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users


 

   
 
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2244520.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Maintaining MapGuide Session during Restart

2009-01-29 Thread bruce_weston

Bruce D,

Are you suggesting that this can be done? Does anyone have a script or a
method of copying the session repository into a library object? Is there
even a way of creating a copy of the session as XML?

thanks,

Bruce W



Bruce Dechant wrote:
 
 Bruce,
 
 What you are doing by trying to replace the session repository of a
 running server is problematic and could lead to server instability. You
 really shouldn't do this.
 
 The session repository is meant for temporary runtime data only and not
 for persistent data. If you want any of your session repository data to
 survive a restart you need to use the library repository instead.
 
 Thanks,
 Bruce
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of bruce_weston
 Sent: Wednesday, January 28, 2009 2:34 AM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Maintaining MapGuide Session during Restart
 
 
 I'm just wondering if anyone has managed to do this yet? This is my
 attempted
 MapGuide restart script to keep the contents of the session folder backed
 up, but it doesn't work:
 
 echo MapGuide Scheduler Task Starting
 taskkill /F /FI SERVICES eq MapGuideServer2.0
 net stop MapGuideServer2.0
 REM xcopy c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\*
 c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\ /E /Y
 net start MapGuideServer2.0
 REM xcopy c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\*
 c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\ /E /Y
 echo MapGuide Scheduler Task Completed
 pause
 
 Is there session data stored anywhere else? I really want to make the
 process seamless for my users.
 
 Bruce
 
 
 --
 View this message in context:
 http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2231199.html
 Sent from the MapGuide Users mailing list archive at Nabble.com.
 
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2239668.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Maintaining MapGuide Session during Restart

2009-01-29 Thread Bruce Dechant
Bruce,

You can keep move some of the session data to the library - ie: resources that 
you have created in the session.
What you are asking is for the session state information to be maintained - 
that information cannot be replicated in the library.

I'm not a web developer, but what about using cookies with your custom web 
application to reestablish the MapGuide session how it was last left. Perhaps 
someone with experience with this could chime in.

Thanks,
Bruce

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of bruce_weston
Sent: Thursday, January 29, 2009 8:54 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Maintaining MapGuide Session during Restart


Bruce D,

Are you suggesting that this can be done? Does anyone have a script or a
method of copying the session repository into a library object? Is there
even a way of creating a copy of the session as XML?

thanks,

Bruce W



Bruce Dechant wrote:

 Bruce,

 What you are doing by trying to replace the session repository of a
 running server is problematic and could lead to server instability. You
 really shouldn't do this.

 The session repository is meant for temporary runtime data only and not
 for persistent data. If you want any of your session repository data to
 survive a restart you need to use the library repository instead.

 Thanks,
 Bruce

 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of bruce_weston
 Sent: Wednesday, January 28, 2009 2:34 AM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Maintaining MapGuide Session during Restart


 I'm just wondering if anyone has managed to do this yet? This is my
 attempted
 MapGuide restart script to keep the contents of the session folder backed
 up, but it doesn't work:

 echo MapGuide Scheduler Task Starting
 taskkill /F /FI SERVICES eq MapGuideServer2.0
 net stop MapGuideServer2.0
 REM xcopy c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\*
 c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\ /E /Y
 net start MapGuideServer2.0
 REM xcopy c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\*
 c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\ /E /Y
 echo MapGuide Scheduler Task Completed
 pause

 Is there session data stored anywhere else? I really want to make the
 process seamless for my users.

 Bruce


 --
 View this message in context:
 http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2231199.html
 Sent from the MapGuide Users mailing list archive at Nabble.com.

 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users



--
View this message in context: 
http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2239668.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Maintaining MapGuide Session during Restart

2009-01-28 Thread Bruce Dechant
Bruce,

What you are doing by trying to replace the session repository of a running 
server is problematic and could lead to server instability. You really 
shouldn't do this.

The session repository is meant for temporary runtime data only and not for 
persistent data. If you want any of your session repository data to survive a 
restart you need to use the library repository instead.

Thanks,
Bruce

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of bruce_weston
Sent: Wednesday, January 28, 2009 2:34 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Maintaining MapGuide Session during Restart


I'm just wondering if anyone has managed to do this yet? This is my attempted
MapGuide restart script to keep the contents of the session folder backed
up, but it doesn't work:

echo MapGuide Scheduler Task Starting
taskkill /F /FI SERVICES eq MapGuideServer2.0
net stop MapGuideServer2.0
REM xcopy c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\*
c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\ /E /Y
net start MapGuideServer2.0
REM xcopy c:\Progra~1\MapGuideOpenSource2.0\SessionBackup\*
c:\Progra~1\MapGuideOpenSource2.0\Server\Repositories\Session\ /E /Y
echo MapGuide Scheduler Task Completed
pause

Is there session data stored anywhere else? I really want to make the
process seamless for my users.

Bruce


--
View this message in context: 
http://n2.nabble.com/Maintaining-MapGuide-Session-during-Restart-tp2231199p2231199.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users