More work on commands, statemgmt, EL references
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / pz2utils4jsf / pazpar2 / Pz2ProxyBean.java
index 6982f9c..f5f4e55 100644 (file)
@@ -28,13 +28,14 @@ public class Pz2ProxyBean extends Pz2Bean implements ServiceProxyInterface {
   @Inject ConfigurationReader configurator;\r
   @Inject ServiceProxyUser user;\r
   \r
+  @Inject @ForServiceProxy ServiceProxySession pz2;\r
+  \r
   public Pz2ProxyBean() {\r
   }\r
   \r
   @PostConstruct\r
   public void instantiatePz2SessionObject() {\r
-    logger.debug(Utils.objectId(this) + " will instantiate a Pz2Session object next.");\r
-    pz2 = new ServiceProxySession();\r
+    logger.debug(Utils.objectId(this) + " will instantiate a Pz2Session object next.");    \r
     searchClient = new ServiceProxyClient();\r
     logger.info("Using [" + Utils.objectId(searchClient) + "] configured by [" \r
                           + Utils.objectId(configurator) + "] on session [" \r