Package org.apache.aries.jndiurl.itest.beans

Examples of org.apache.aries.jndiurl.itest.beans.ConfigBean


  public void doGet (HttpServletRequest req, HttpServletResponse resp) throws IOException
  {
    StringBuilder result = new StringBuilder();
    try {
      InitialContext ctx = new InitialContext();
      ConfigBean cb = (ConfigBean) ctx.lookup("blueprint:comp/config");
      result.append(cb.getSimple().getOwner());
      result.append(".");
      result.append(cb.getVersion())// Expected output is now "Mark.2.0"
     
      // Now lookup and use a service published from another bundle
      @SuppressWarnings("unchecked")
      List<String> listService = (List<String>) ctx.lookup("blueprint:comp/listRef");
      result.append(".");
View Full Code Here


  public void doGet (HttpServletRequest req, HttpServletResponse resp) throws IOException
  {
    StringBuilder result = new StringBuilder();
    try {
      InitialContext ctx = new InitialContext();
      ConfigBean cb = (ConfigBean) ctx.lookup("blueprint:comp/config");
      result.append(cb.getSimple().getOwner());
      result.append(".");
      result.append(cb.getVersion())// Expected output is now "Mark.2.0"
     
      // Now lookup and use a service published from another bundle
      @SuppressWarnings("unchecked")
      List<String> listService = (List<String>) ctx.lookup("blueprint:comp/listRef");
      result.append(".");
View Full Code Here

TOP

Related Classes of org.apache.aries.jndiurl.itest.beans.ConfigBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.