Amazon AWS SDK User's Guide Page 25

  • Download
  • Add to my manuals
  • Print
  • Page
    / 73
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 24
• A config file that copies the jar into Tomcat's lib directory and applies the overridden context.xml
file.
You can find in more information on customizing the AWS Elastic Beanstalk environments in the developer
guide for that service.
If you deploy to AWS Elastic Beanstalk with the AWS Toolkit for Eclipse, then the session manager is
set up for you if you go through the New AWS Java Web Project wizard and select DynamoDB for
session management. The Toolkit for Eclipse configures all the needed files, and puts them in the
.ebextensions directory inside the WebContent directory of your project. If you have problems finding
this directory, make sure you aren't hiding files that begin with a period.
Manage Tomcat Session State with DynamoDB
If the Tomcat server is running on an Amazon EC2 instance that is configured to use IAM roles for EC2
Instances, you do not need to specify any credentials in the context.xml file; in this case, the AWS
SDK for Java uses IAM roles credentials obtained through the instance metadata service (IMDS).
When your application starts, it looks for an DynamoDB table called, by default, Tomcat_SessionState.
The table should have a string hash key named "sessionId" (case-sensitive), no range key, and the desired
values for ReadCapacityUnits and WriteCapacityUnits.
We recommend that you create this table before first running your application. (For information on working
with DynamoDB tables and provisioned throughput, see the Amazon DynamoDB Developer Guide.) If
you don't create the table, however, the extension creates it during initialization. See the context.xml
options in the next section for a list of attributes that configure how the session-state table is created
when it doesn't exist.
Once the application is configured and the table is created, you can use sessions with any other session
provider.
Options Specified in context.xml
Below are the configuration attributes that you can use in the Manager element of your context.xml
file:
• AwsAccessKey – Access key ID to use.
• AwsSecretKey – Secret key to use.
• AwsCredentialsFile – A properties file containing accessKey and secretKey properties with your
AWS security credentials.
• Table – Optional string attribute. The name of the table used to store session data.The default is
Tomcat_SessionState.
• Region – Optional string attribute. The AWS region in which to use DynamoDB. For a list of available
AWS regions, see Regions and Endpoints in the AWS General Reference.
• Endpoint – Optional string attribute; if present, this option overrides any value set for the Region
option. The regional endpoint of the DynamoDB service to use. For a list of available AWS regions,
see Regions and Endpoints in the AWS General Reference.
• ReadCapacityUnits – Optional int attribute.The read capacity units to use if the session manager
creates the table. The default is 10.
• WriteCapacityUnits – Optional int attribute.The write capacity units to use if the session manager
creates the table. The default is 5.
• CreateIfNotExist – Optional Boolean attribute.The CreateIfNotExist attribute controls whether
the session manager autocreates the table if it doesn't exist. The default is true. If this flag is set to
false and the table doesn't exist, an exception is thrown during Tomcat startup.
Version v1.0.0
22
AWS SDK for Java Developer Guide
Manage Tomcat Session State with DynamoDB
Page view 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 72 73

Comments to this Manuals

No comments

Watts T55-85MHP40 manuales

Manuales del propietario y guías del usuario para Accesorios para el agua Watts T55-85MHP40.
Ofrecemos 1 manuales en pdf Watts T55-85MHP40 para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Accesorios para el agua Watts

Modelos Tipo de documento
M1513-14 Manual de usuario   Watts M1513-14 User Manual, 1 paginas
M1127-31 Manual de usuario   Watts M1127-31 User Manual, 2 paginas
N2050A Manual de usuario   Watts N2050A User Manual, 24 paginas
RD-700-CT Manual de usuario   Watts RD-700-CT User Manual, 1 paginas
M1118-4 Manual de usuario   Watts M1118-4 User Manual, 1 paginas
M1513-AK Manual de usuario   Watts M1513-AK User Manual, 2 paginas
F1115-7 Manual de usuario   Watts F1115-7 User Manual, 8 paginas
FD-1160 Manual de usuario   Watts FD-1160 User Manual, 1 paginas
F1113-41 Manual de usuario   Watts F1113-41 User Manual, 1 paginas
RD-260 Manual de usuario   Watts RD-260 User Manual, 1 paginas
M6500 / M61500 Manual de usuario   Watts M6500 / M61500 User Manual, 2 paginas
S1513-AK Manual de usuario   Watts S1513-AK User Manual, 2 paginas
Autotrol 255 (400 Series) Manual de usuario   Watts Autotrol 255 (400 Series) User Manual, 32 paginas
389 4003 Manual de usuario   Watts 389 4003 User Manual, 1 paginas
LLL100XL Manual de usuario   Watts LLL100XL User Manual, 2 paginas
CO-200-US Manual de usuario   Watts CO-200-US User Manual, 1 paginas
957Z Manual de usuario   Watts 957Z User Manual, 4 paginas
4545B Manual de usuario   Watts 4545B User Manual, 1 paginas
FD-200-DD Manual de usuario   Watts FD-200-DD User Manual, 1 paginas
F1110-10 Manual de usuario   Watts F1110-10 User Manual, 1 paginas