[jboss-cvs] JBossAS SVN: r100057 - projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 28 11:15:29 EST 2010
Author: lvlcek at redhat.com
Date: 2010-01-28 11:15:28 -0500 (Thu, 28 Jan 2010)
New Revision: 100057
Modified:
projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/AccountController.java
Log:
Spring MVC (work in progress) - generate invoice
Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/AccountController.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/AccountController.java 2010-01-28 16:11:59 UTC (rev 100056)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/AccountController.java 2010-01-28 16:15:28 UTC (rev 100057)
@@ -36,9 +36,6 @@
@EJB(mappedName = "sportsclub/SubscriptionService")
SubscriptionService subscriptionService;
- @Autowired
- private JmsTemplate jmsTemplate;
-
/**
* Just forwarding to the view with fresh-empty model.
*
@@ -87,13 +84,10 @@
// doublecheck that account does not have current invoice
Account account = subscriptionService.findAccountById(Long.parseLong(id));
Invoice invoice = billingService.generateInvoice(account);
- PaymentNotification paymentNotification = new PaymentNotification();
- paymentNotification.setAccountNumber(account.getId());
- paymentNotification.setAmount(BigDecimal.valueOf(50l));
- jmsTemplate.convertAndSend(paymentNotification);
ModelMap model = new ModelMap();
model.addAttribute("id",id);
+ model.addAttribute(invoice);
return model;
}
More information about the jboss-cvs-commits
mailing list