Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
amazon_dynamodb [2018/05/30 07:38]
root [Running Local Version]
amazon_dynamodb [2018/06/11 05:48]
root [Streams]
Line 113: Line 113:
 Note also the  https://​github.com/​awslabs/​dynamodb-streams-kinesis-adapter which says Note also the  https://​github.com/​awslabs/​dynamodb-streams-kinesis-adapter which says
 "Using the Kinesis Adapter is the recommended way to consume Streams from DynamoDB."​ "Using the Kinesis Adapter is the recommended way to consume Streams from DynamoDB."​
 +
 +An example of a kinesis stream listener https://​docs.aws.amazon.com/​amazondynamodb/​latest/​developerguide/​Streams.KCLAdapter.Walkthrough.CompleteProgram.html
 == Links and Reference == == Links and Reference ==
  
Line 157: Line 159:
         Item item = table.getItem(new PrimaryKey("​id",​ "​516037-289558-289559"​));​         Item item = table.getItem(new PrimaryKey("​id",​ "​516037-289558-289559"​));​
 </​code> ​       ​ </​code> ​       ​
 +
 +== Testing with Spring == 
 +
 +<code java>
 +@RunWith(SpringJUnit4ClassRunner.class)
 +@SpringBootTest(classes = Application.class)
 +@WebAppConfiguration
 +@ActiveProfiles("​local"​)
 +@TestPropertySource(properties = { 
 +  "​amazon.dynamodb.endpoint=http://​localhost:​8000/", ​
 +  "​amazon.aws.accesskey=test1", ​
 +  "​amazon.aws.secretkey=test231"​ })
 +public class ProductInfoRepositoryIntegrationTest {
 + 
 +    private DynamoDBMapper dynamoDBMapper;​
 + 
 +    @Autowired
 +    private AmazonDynamoDB amazonDynamoDB;​
 +</​code> ​
 
amazon_dynamodb.txt · Last modified: 2018/06/11 05:48 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd