RE: {Spam?} RE: {Spam?} RuntimeApplicationToolAgent: Aplication not vislible

"Hannes Biribauer" <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <49131F069C24E34AB497B1803F732AFB10B855@hicoetsrv000006.hico.local>
hi,
 
thx for your support - i tried both: setting finish mode to manual and creating a process with 2 steps, where the 2nd step must be executed by the admin role.
result is the same: notepad.exe is displayed in the task manager, but no window displayed.
 
but i finally found the reason, why this is (must be) so.
a service in windows is startet in its own "workstation".
this workstation ist created, after the OS has started - than a "workstation" for the user is created, to which he can log on.
 
per default a service cannot interact with the desktop - it has ists own desktop in its "workstation", but this never gets visible to the loged on user.
this means: a user can see the process, but cannot see any output from a service.
 
in Windows - Settings - Services - Logon - a chechbox can be set to "allow service to interact with desktop".
i activated this option for the shark corba service and after instanciating my sample process, "notepad" is displayed !
 
BUT: i think, this is not "good practice" - a service should not have an UI.
if more users are loged on, the service doesn't know, on which desktop to display a window.
 
so i am interested: how did the developers of enhydra shark think about this?
what is the good practice for letting the shark engine display an UI (by using executable, java class, ... tool agent) when the engine is deployed as corba service?
 
exapmle: the workflow should display a file-open dialog to let the user select a file to be processed
 
a possible solution would be to create a "wrapper", that comunicates with the service but runs in the context of a loged on user's desktop an can display an UI.
 
fg
-hannes
 
 
  _____  

From: [email protected] [mailto:[email protected]] 
Sent: Montag, 08. August 2005 16:17
To: [email protected]
Subject: Re: {Spam?} RE: {Spam?} [shark] RuntimeApplicationToolAgent: Aplication not vislible



This is a good point (I think!!). See "Executing ToolAgent on the client Is there a way to execute a ToolAgent in the Client-VM? " here: http://shark.objectweb.org/doc/1.1/Shark/faq.html#d0e323 

Also, there is a note about what combinations are allowed with tool agents for start and finish modes. So you may want to revise what i said in my earlier note..:) 




João Nelas <[email protected]> 

08/08/2005 10:03 AM 
Please respond to
[email protected]


To
<[email protected]> 
cc
Subject
{Spam?} RE: {Spam?} [shark] RuntimeApplicationToolAgent: Aplication not vislible

	




Hi! 
  
I'm not really sure of what i'm going to say, but can't it be that, by accessing the engine by corba, windows doesn't realize that notepad should be started in your user session? 
  
João 


  _____  

From: Hannes Biribauer [mailto:[email protected]] 
Sent: segunda-feira, 8 de Agosto de 2005 14:57
To: [email protected]
Subject: RE: {Spam?} [shark] RuntimeApplicationToolAgent: Aplication not vislible

o.k, will try this next. 
  
meanwhile a colleague helped me to reproduce the problem. 
  
his result: 
when the admin application is started directly (runSA.bat, not accessing the engine via corba) it works => notepad-window is displayed. 
if the engine is accessed via corba (runA.bat), the notepad application window is not displayed. 
  
regards 
-hannes 
  


  _____  

From: [email protected] [mailto:[email protected]] 
Sent: Montag, 08. August 2005 15:18
To: [email protected]
Subject: Re: {Spam?} [shark] RuntimeApplicationToolAgent: Aplication not vislible


P.S. Another thing, Hannes. Put another activity right after your notepad activity, get that to have manual mode and maybe in the admin's "swimlane" and try to instantiate it and see what happens.. 

Geeta 



"Hannes Biribauer" <[email protected]> 

08/08/2005 05:12 AM 

Please respond to
[email protected]



To
<[email protected]> 
cc
Subject
{Spam?} [shark] RuntimeApplicationToolAgent: Aplication not vislible


	





hi, 

I created a simple process with 1 step - this step is mapped to the RuntimApplicationToolAgent. 
Parctipiant Type is "System", startmode is "automatic". 
After Uploading the xpdl to the repository I create an instance of the process with shark's admin application. (for testing) 

After instanciating I see "notepad.exe" in the windows task manager, but notepad is not displayed. 

The number of active processes is "0". (in process instanciation management tab) 
I think this is, because the step starts autmatically, so I don't need to start the process in process monitor tab. 
But why is no "notepad window" displayed? 

Application mapping uses RuntimAppliationToolAgent, application name: notepad.exe, mode: 1 
When I instanciate the process 3 times, there are 3 "notepad.exe" in task manager, but still no notepad window displayed. 

I'm using Shark Version is 1.1 

Any advice? 

thx 
-hannes 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is 
believed to be clean. 
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information.  Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws.  If this email has been received in error, please notify the sender and delete the information from your system.  The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare. 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is 
believed to be clean. 
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information.  Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws.  If this email has been received in error, please notify the sender and delete the information from your system.  The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare.
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.