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 {
private static final List<String> CATEGORY_LIST;
@SpringBean
private AccountService accountService;
private transient AccountService accountService;
@SpringBean
private CatalogService catalogService;
private transient CatalogService catalogService;
private Account account = new Account();
private List<Product> myList;
......
......@@ -23,7 +23,7 @@ public class CartActionBean extends AbstractActionBean {
private static final String CHECK_OUT = "/WEB-INF/jsp/cart/Checkout.jsp";
@SpringBean
private CatalogService catalogService;
private transient CatalogService catalogService;
private Cart cart = new Cart();
private String workingItemId;
......
......@@ -24,7 +24,7 @@ public class CatalogActionBean extends AbstractActionBean {
private static final String SEARCH_PRODUCTS = "/WEB-INF/jsp/catalog/SearchProducts.jsp";
@SpringBean
private CatalogService catalogService;
private transient CatalogService catalogService;
private String keyword;
......
......@@ -28,7 +28,7 @@ public class OrderActionBean extends AbstractActionBean {
private static final List<String> CARD_TYPE_LIST;
@SpringBean
private OrderService orderService;
private transient OrderService orderService;
private Order order = new Order();
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