Commit 6c2ac14e authored by Eduardo Macarron's avatar Eduardo Macarron

[jpetstore6] injected services should be transient

parent a445094e
...@@ -32,9 +32,9 @@ public class AccountActionBean extends AbstractActionBean { ...@@ -32,9 +32,9 @@ public class AccountActionBean extends AbstractActionBean {
private static final List<String> CATEGORY_LIST; private static final List<String> CATEGORY_LIST;
@SpringBean @SpringBean
private AccountService accountService; private transient AccountService accountService;
@SpringBean @SpringBean
private CatalogService catalogService; private transient CatalogService catalogService;
private Account account = new Account(); private Account account = new Account();
private List<Product> myList; private List<Product> myList;
......
...@@ -23,7 +23,7 @@ public class CartActionBean extends AbstractActionBean { ...@@ -23,7 +23,7 @@ public class CartActionBean extends AbstractActionBean {
private static final String CHECK_OUT = "/WEB-INF/jsp/cart/Checkout.jsp"; private static final String CHECK_OUT = "/WEB-INF/jsp/cart/Checkout.jsp";
@SpringBean @SpringBean
private CatalogService catalogService; private transient CatalogService catalogService;
private Cart cart = new Cart(); private Cart cart = new Cart();
private String workingItemId; private String workingItemId;
......
...@@ -24,7 +24,7 @@ public class CatalogActionBean extends AbstractActionBean { ...@@ -24,7 +24,7 @@ public class CatalogActionBean extends AbstractActionBean {
private static final String SEARCH_PRODUCTS = "/WEB-INF/jsp/catalog/SearchProducts.jsp"; private static final String SEARCH_PRODUCTS = "/WEB-INF/jsp/catalog/SearchProducts.jsp";
@SpringBean @SpringBean
private CatalogService catalogService; private transient CatalogService catalogService;
private String keyword; private String keyword;
......
...@@ -28,7 +28,7 @@ public class OrderActionBean extends AbstractActionBean { ...@@ -28,7 +28,7 @@ public class OrderActionBean extends AbstractActionBean {
private static final List<String> CARD_TYPE_LIST; private static final List<String> CARD_TYPE_LIST;
@SpringBean @SpringBean
private OrderService orderService; private transient OrderService orderService;
private Order order = new Order(); private Order order = new Order();
private boolean shippingAddressRequired; private boolean shippingAddressRequired;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment