[jboss-cvs] JBossAS SVN: r99597 - 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
Tue Jan 19 09:11:16 EST 2010
Author: lvlcek at redhat.com
Date: 2010-01-19 09:11:15 -0500 (Tue, 19 Jan 2010)
New Revision: 99597
Modified:
projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/BasicController.java
Log:
Fixing mappedName value as ear name is now hardcoded in POM
Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/BasicController.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/BasicController.java 2010-01-19 13:10:14 UTC (rev 99596)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/springmvc/BasicController.java 2010-01-19 14:11:15 UTC (rev 99597)
@@ -19,25 +19,24 @@
@Controller
public class BasicController
{
- @EJB(mappedName = "sportsclub-ear-1.0-SNAPSHOT/BillingServiceImpl/local")
- BillingService billingService;
+ @EJB(mappedName = "sportsclub/BillingServiceImpl/local")
+ BillingService billingService;
+ @EJB(mappedName = "sportsclub/SubscriptionServiceImpl/local")
+ SubscriptionService subscriptionService;
- @EJB(mappedName = "sportsclub-ear-1.0-SNAPSHOT/SubscriptionServiceImpl/local")
- SubscriptionService subscriptionService;
-
@Autowired
private JmsTemplate jmsTemplate;
- @RequestMapping("/basic.do")
- ModelAndView doSomething()
- {
- Account account = subscriptionService.findAccountsBySubscriberName("Vimes", 0, 1).get(0);
- Invoice invoice = billingService.generateInvoice(account);
- PaymentNotification paymentNotification = new PaymentNotification();
- paymentNotification.setAccountNumber(account.getId());
- paymentNotification.setAmount(BigDecimal.valueOf(50l));
- jmsTemplate.convertAndSend(paymentNotification);
- return new ModelAndView("dummy", "invoice", invoice);
- }
+ @RequestMapping("/basic.do")
+ ModelAndView doSomething()
+ {
+ Account account = subscriptionService.findAccountsBySubscriberName("Vimes", 0, 1).get(0);
+ Invoice invoice = billingService.generateInvoice(account);
+ PaymentNotification paymentNotification = new PaymentNotification();
+ paymentNotification.setAccountNumber(account.getId());
+ paymentNotification.setAmount(BigDecimal.valueOf(50l));
+ jmsTemplate.convertAndSend(paymentNotification);
+ return new ModelAndView("dummy", "invoice", invoice);
+ }
}
More information about the jboss-cvs-commits
mailing list