Changeset 3448 for tests/trunk/ScriptLoginTest/main.cpp
- Timestamp:
- 02/25/10 17:22:18 (7 months ago)
- Location:
- tests/trunk/ScriptLoginTest
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/trunk/ScriptLoginTest
- Property svn:ignore
-
old new 1 1 CMakeLists.txt 2 Community.sqlite 2 3 config.xml 3 4 loginTest.bat
-
- Property svn:ignore
-
tests/trunk/ScriptLoginTest/main.cpp
r3368 r3448 1 #include <Zen/Core/Event/I_EventManager.hpp> 2 #include <Zen/Core/Event/I_EventService.hpp> 3 1 4 #include <Zen/Enterprise/AppServer/I_Container.hpp> 2 5 #include <Zen/Enterprise/AppServer/I_ApplicationServer.hpp> … … 5 8 6 9 #include "LoginTest.hpp" 10 11 #include <iostream> 7 12 8 13 int main(int _argc, const char* _argv[]) … … 23 28 module.activate(); 24 29 30 Zen::Event::I_EventManager::pEventService_type pEventService = 31 Zen::Event::I_EventManager::getSingleton().create("eventService"); 32 33 pEventService->registerScriptEngine(module.getScriptModule()->getScriptEngine()); 34 25 35 // Run the container. This should invoke the script and when the script 26 36 // returns, we should shutdown the app server and exit. 27 int rc = container.run(); 37 try 38 { 39 int rc = container.run(); 28 40 29 // TODO Shutdown the app server.41 // TODO Shutdown the app server. 30 42 31 return rc; 43 return rc; 44 } 45 catch(Zen::Utility::runtime_exception& _ex) 46 { 47 std::cout << "Caught unhandled exception: " << _ex.what() << std::endl; 48 } 49 50 return 1; 32 51 }
