New topic: 

Standalone App  Administration  Console

<http://forums.realsoftware.com/viewtopic.php?t=43979>

         Page 1 of 1
   [ 7 posts ]                 Previous topic | Next topic          Author  
Message        bluesfannoz          Post subject: Standalone App  
Administration  ConsolePosted: Sat May 12, 2012 6:45 pm                         
Joined: Wed Apr 26, 2006 12:56 pm
Posts: 21
Location: Topeka, KS                A standalone Web App opens a Window.  Is 
there a way to send messages to be displayed on that window?  Is there a way to 
start and stop the server?

I guess I was surprised to find that a Web Application wasn't already a 
ServiceApplication.      
_________________
Stephen Koger 
SEKESC-Greenbush 
"Ensuring Equal Educational Oppurtunities for Everyone"  
                             Top                simulanics          Post 
subject: Re: Standalone App  Administration  ConsolePosted: Sat May 12, 2012 
7:26 pm                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 561
Location: Boiling Springs, SC                You may want to see here

http://www.google.com/url?sa=t&source=w ... 7Au9jGxQWw

This is how to make a standalone webapp into a service ...      
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top                simulanics          Post 
subject: Re: Standalone App  Administration  ConsolePosted: Sat May 12, 2012 
7:29 pm                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 561
Location: Boiling Springs, SC                In the real software blog it can 
also be found here 

http://www.realsoftwareblog.com/2012/03 ... s.html?m=1      
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top                bluesfannoz          Post 
subject: Re: Standalone App  Administration  ConsolePosted: Sat May 12, 2012 
7:41 pm                         
Joined: Wed Apr 26, 2006 12:56 pm
Posts: 21
Location: Topeka, KS                Okay that answers one of my questions.  Now 
how about the console?  Where can I write messages?  Do I have to write them to 
a file and access it?  Or can I send them to the Window that opens?  If I start 
as a service will that window still come up?   If I can write to that window. 
How do I do it?


Thanks everyone for your assistance so quickly!

simulanics wrote:In the real software blog it can also be found here 

http://www.realsoftwareblog.com/2012/03 ... s.html?m=1      
_________________
Stephen Koger 
SEKESC-Greenbush 
"Ensuring Equal Educational Oppurtunities for Everyone"  
                             Top                simulanics          Post 
subject: Re: Standalone App  Administration  ConsolePosted: Sat May 12, 2012 
8:07 pm                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 561
Location: Boiling Springs, SC                bluesfannoz wrote:Okay that 
answers one of my questions.  Now how about the console?  Where can I write 
messages?  Do I have to write them to a file and access it?  Or can I send them 
to the Window that opens?  If I start as a service will that window still come 
up?   If I can write to that window. How do I do it?


Thanks everyone for your assistance so quickly!

simulanics wrote:In the real software blog it can also be found here 

http://www.realsoftwareblog.com/2012/03 ... s.html?m=1

My phones linked to the forums so I get notices pretty quickly :-p there are a 
few methods of writing to the console..but not to the service console itself.. 
When run as a service, it will not appear rather run in the background. Perhaps 
if I know a little bit about what exactly you're trying to write to the console 
I can help you achieve your goal     
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top                bluesfannoz          Post 
subject: Re: Standalone App  Administration  ConsolePosted: Sat May 12, 2012 
8:18 pm                         
Joined: Wed Apr 26, 2006 12:56 pm
Posts: 21
Location: Topeka, KS                I want to be able to connect to the server 
and see a log of whats been going on with my Webservice. I would like it to 
show when someone is logged in and their ip address and username. Basically in 
an event viewer type log.  I need this to work on both a Windows or Mac server 
so keep that in mind in your response. 


simulanics wrote:bluesfannoz wrote:Okay that answers one of my questions.  Now 
how about the console?  Where can I write messages?  Do I have to write them to 
a file and access it?  Or can I send them to the Window that opens?  If I start 
as a service will that window still come up?   If I can write to that window. 
How do I do it?


Thanks everyone for your assistance so quickly!

simulanics wrote:In the real software blog it can also be found here 

http://www.realsoftwareblog.com/2012/03 ... s.html?m=1

My phones linked to the forums so I get notices pretty quickly :-p there are a 
few methods of writing to the console..but not to the service console itself.. 
When run as a service, it will not appear rather run in the background. Perhaps 
if I know a little bit about what exactly you're trying to write to the console 
I can help you achieve your goal     
_________________
Stephen Koger 
SEKESC-Greenbush 
"Ensuring Equal Educational Oppurtunities for Everyone"  
                             Top                simulanics          Post 
subject: Re: Standalone App  Administration  ConsolePosted: Sat May 12, 2012 
10:50 pm                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 561
Location: Boiling Springs, SC                In your Web Edition Application, 
in the Project Explorer open Session and create a new String Property "Username"

Be sure to set the username string when the user is logged in.

In a window accessible by the "admin" (you) create a weblistbox named lstUsers 
(2 columns - Headings being "Username" and "IP Address")
Add a Timer or Button and put this in it

Dim i as integer
Dim x as integer
dim y as string

i = App.SessionCount-1

lstUsers.DeleteAllRows

for x = 0 to i
  lstUsers.AddRow app.SessionAtIndex(x).Username
  lstUsers.Cell(x,1) = app.SessionAtIndex(x).RemoteAddress
  
next x


This will populate your listbox with all online users and their ip addresses. 
If you want a log, you will have to create an event to "log" the user's 
information on "signin" and "signout" (ie create a TextOutput stream or write 
to a database)...the above method will return "Who's online" If you need an 
example I can provide one that is already prepared.      
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 7 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to