AWS踩坑指南

2018-03-05  本文已影响0人  i_Eloise

1.nones and free tier

2.glassfish server & Derby database & Netbean

1)install glassfish and configure it
2)edit inbound and outbound rule in EC2
3)add JDBC connection pool in glassfish(can use ping to check the connection)
this step is very important, you have to setup right server name, database name, user name and also password in order to be able to connect to the database.
4)add JDBC resources in glassfish
5)In Netbean, you should connect to the server, otherwise, you would not be able to deploy your application. You can also connect to your database to check the data.
6)You also need to set up the JDBC connection and JDBC resource for your application.
DB.java & glassfish_resource.xml is related for database conenction in the project. In glassfish_resource, JDBC connection pool and JDBC resource is able to be seen.

3. S3

build a bucket

image.png
need to be remined:

4.RDS

need to change connector to a lower edition, if you have the following problem:


image.png

5.Elastic beanstalk

should be aware that the application in Elastic Beanstalk still use the data stored in Derby database in Glassfish. And therefore, we should change the URL in DB.java and also change the JDBC connection and resource(make sure the database URL is correct).

上一篇 下一篇

猜你喜欢

热点阅读