Red5 Install/Open Meetings/Servlet Outputhandler Install
/OpenMeetings/ServletOutputhandlerInstall ¶* ¼³Ä¡ÇØ¾ß ÇÒ package
* Install.java
* public class Install extends VelocityViewServlet {
<body>
<H1>Openmeetings - Installation Complete!</h1> <h2><a href="/openmeetings/">Enter the Application</a></h2> <br/> <br/> If your Red5-Server runs on a different Port or on a different domain<br/> <a href="config.xml">alter the config values of the client</a> </body> * org.openmeetings.app.documents.InstallationDocumentHandler
<?xml version="1.0" encoding="UTF-8"?>
<install><step><stepnumber>1</stepnumber><stepname>Step 1</stepname></step></install> * /home/tcheun/eclipse.dir/workspace1/ROOT/src/templates
tcheun@enk:~/eclipse.dir/workspace1/ROOT/src/templates$ ls activation_template.vm requestcontactconfirm.vm feedback.vm resetPass.vm install_complete_EN.vm rtp_player_applet.vm install_error_EN.vm screencast_jrdesktop.vm install_exception_EN.vm screencast_odsp_sharertemplate.vm install_step1_EN.vm screencast_odsp_viewertemplate.vm install_step2_EN.vm screencast_rtp.vm install_welcome_EN.vm screencast_template.vm invitation.vm screenshare.vm register_mail.vm sip_template.vm register_verification_mail.vm usual_template.vm requestcontact.vm * /src/app/org/openmeetings/app/installation
public void loadConfiguration(String crypt_ClassName, String allowfrontendRegister, String smtpServer, String smtpPort, String referer, String mailauthname, String mailauthpass, String mailusetls, String default_lang_id, String swf_path, String im_path, String url_feed, String url_feed2, String sendEmailAtRegister, String sendEmailWithVerficationCode, String default_export_font, String ldap_auth_path, String screen_viewer, String ffmpeg_path, String sox_path, String sip_enable, String sip_realm, String sip_port, String sip_proxyname, String sip_tunnel, String sip_codebase, String sip_forcetunnel, String sip_openxg_enable, String openxg_wrapper_url, String openxg_client_id, String openxg_client_secret, String openxg_client_domain, String openxg_community_code, String openxg_language_code, String openxg_adminid, String sip_language_phonecode, String sip_phonerange_start, String sip_phonerange) { } * loadInitLanguages(String filePath)
small methods ¶* /src/app/org/openmeetings/app/installation/ImportInitvalues.java
* private void loadCountriesFiles(String filePath) throws Exception {
<countries>
<country code="004" name="Afghanistan" short="AFG" /> <country code="248" short="ALA" name="Aland Islands" /> ..... <country code="716" short="ZWE" name="Zimbabwe"/> </countries>
* /src/app/org/openmeetings/app/data/user/Statemanagement.java
* import org.openmeetings.app.hibernate.beans.adresses.States;
* public Long addState(String statename) {
* /src/app/org/openmeetings/app/hibernate/beans/adresses
* hibernate.class table="states"
* public class States {
* States.hbm.xml
<hibernate-mapping>
<class table="states" name="org.openmeetings.app.hibernate.beans.adresses.States"> <id column="state_id" name="state_id"> <generator class="increment"/> </id> <property name="name" type="string" column="name"/> <property name="starttime" type="java.util.Date" column="starttime"/> <property name="updatetime" type="java.util.Date" column="updatetime"/> <property name="deleted" type="string" column="deleted"/> </class> </hibernate-mapping> create dbms tables ¶* loadInitLanguages - loadCountriesFiles - addState(country) - HibernateUtil.createSession
* Object idf = HibernateUtil.createSession();
* public static Object createSession() throws Exception{
* private synchronized static SessionFactory getSessionFactory() {
* /home/tcheun/hibernate-core/core/src/main/java/org/hibernate/cfg
* protected Configuration doConfigure(InputStream stream, String resourceName) throws HibernateException {
* protected Configuration doConfigure(Document doc) throws HibernateException {
* private void addProperties(Element parent) {
* private void parseSessionFactory(Element sfNode, String name) {
* private void parseMappingElement(Element mappingElement, String name) {
* public SessionFactory buildSessionFactory() throws HibernateException {
SessionFactoryImpl ¶* /hibernate-core/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java
secondPassCompile ¶* /hibernate-core/core/src/main/java/org/hibernate/cfg/Configuration.java
* protected void secondPassCompile() throws MappingException {
* protected class MetadataSourceQueue implements Serializable {
* /hibernate-core/core/src/main/java/org/hibernate/cfg/HbmBinder.java
* public static void bindRoot( XmlDocument metadataXml, \
* public static void bindRootClass(Element node, RootClass rootClass, \
* private static void bindRootPersistentClassCommonValues(Element node, \
* }
* private static void bindSimpleId(Element idNode, RootClass entity, Mappings mappings, \
* public static void bindProperty(
* private void processAnnotatedClassesQueue() {
* private void originalSecondPassCompile() throws MappingException {
* protected void secondPassCompileForeignKeys(Table table, Set done) throws MappingException {
Configuration ¶* Root WebApplicationContext: initialization started
* Installer service created
* RTMP Mina Transport bound to /0.0.0.0:1935
* Connection Threads: 2
* Initializing ExecutorService 'openmeetings.TaskExecutor'
* webAppPath : /home/tcheun/hibernate/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ROOT
* Adding type registration boolean
* ....
* Adding type registration imm_serializable
* org.hibernate.cfg.Environment
* Registering IdentifierGenerator strategy
* configuring from file: hibernate.cfg.xml 131
* org.hibernate.cfg.Configuration - connection.username=openmeetings
* ...
* org.hibernate.cfg.Configuration - hibernate.c3p0.timeout=100
* org.hibernate.cfg.Configuration - session-factory config null
|
It is easier to run down a hill than up one. |