I am trying to access DynamoDB
from my java Web Application using a Servlet
, I am unable to connect to dynamodb through this approach. My code works fine if I place it on another .java
class and run it as Java Application, in this way I get data from dynamodb and can interact .
Hence my question is: How to connect to it from the web application?