Skip to content

Commit

Permalink
fixed the AWS version
Browse files Browse the repository at this point in the history
  • Loading branch information
szimano committed Feb 24, 2012
1 parent 2fcdf8e commit d926dae
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ conf_install
*.iml
.idea
velocity.log
aws.properties
sqs.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package pl.softwaremill.jozijug.joziawsdemo;

import pl.softwaremill.jozijug.joziawsdemo.impl.sdb.AwsAccessKeys;

import javax.inject.Inject;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
Expand All @@ -16,6 +18,9 @@ public class Bootstrap implements ServletContextListener {
@Inject
private QueueListener queueListener;

@Inject
private AwsAccessKeys awsAccessKeys;

@Override
public void contextInitialized(ServletContextEvent sce) {
queueListener.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void main(String[] args) throws URISyntaxException, IOException {

System.out.println("Sending message " + content);

URI uri = URIUtils.createURI("http", "localhost", 8080, "/jozi-aws-demo-1.0-SNAPSHOT/home/addMessageByGet",
URI uri = URIUtils.createURI("http", "localhost", 8080, "/jozi-aws-demo/home/addMessageByGet",
URLEncodedUtils.format(qparams, "UTF-8"), null);
HttpGet get = new HttpGet(uri);

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/aws.properties.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
access.key.id=
secret.access.key=
3 changes: 3 additions & 0 deletions src/main/resources/sqs.conf.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sqsServer=sqs.eu-west-1.amazonaws.com
AWSAccessKeyId=
SecretAccessKey=

0 comments on commit d926dae

Please sign in to comment.