facebook

Deploying web app to remote server/ec2 and MySQL address?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #315266 Reply

    davout
    Participant

    I have a Java/Spring web app that I want to deploy to a remote server, possibly an Amazon ec2 instance.

    The app uses a MySQL database, and to keep the data configuration distinct I have the database parameters stored in a separate ‘environ.properties’, like…

    
    database.url=jdbc:mysql://localhost:3306/berthier
    database.uid=root
    database.pwd=root
    

    This environ.properties file is then referenced in the Spring applicationcontext.xml file, like…

    
       <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
          <property name="locations">
             <value>classpath:environ.properties</value>
          </property>
       </bean>
    
        <bean id="SQLData"
            class="org.apache.commons.dbcp.BasicDataSource">
            <property name="driverClassName"
                value="com.mysql.jdbc.Driver">
            </property>
            <property name="url" value="${database.url}">
            </property>
            <property name="username" value="${database.uid}"></property>        
            <property name="password" value="${database.pwd}"></property>
        </bean>
    
    
    

    Yet , how do make this approach work for a remote server? With ec2 I don’t even know the address until the instance starts. Any ideas?

    #315328 Reply

    support-joy
    Member

    davout,

    I would recommend you go through this on how to deploy and debug on remote application server – http://www.myeclipseide.com/documentation/quickstarts/remotedebugging/

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Deploying web app to remote server/ec2 and MySQL address?

You must be logged in to post in the forum log in