1 2 3 Previous Next 34 Replies Latest reply on Nov 29, 2008 1:14 AM by vishal12345 Go to original post
      • 30. Re: What are the required JARs for ESB
        beve

        This worked for me:

        Web archive contents:

        ./WEB-INF
        ./WEB-INF/classes/org/jboss/esb/client/EsbServletClient.class
        ./WEB-INF/classes/jbossesb-properties.xml
        ./WEB-INF/web.xml
        ./WEB-INF/lib
        ./WEB-INF/lib/jboss-remoting.jar
        ./WEB-INF/lib/jboss-aop-jdk50-1.5.6.GA.jar
        ./WEB-INF/lib/xmlpublic-2.2.0.jar
        ./WEB-INF/lib/commons-logging-1.1.jar
        ./WEB-INF/lib/xstream-1.2.2.jar
        ./WEB-INF/lib/commons-lang-2.1.jar
        ./WEB-INF/lib/xercesImpl-2.8.0.jar
        ./WEB-INF/lib/scout-1.0rc2.jar
        ./WEB-INF/lib/jbossall-client-4.2.2.GA.jar
        ./WEB-INF/lib/jbossesb-config-model-1.0.1.jar
        ./WEB-INF/lib/trove.jar
        ./WEB-INF/lib/juddi-client-2.0rc5.jar
        ./WEB-INF/lib/javassist-3.6.0.GA.jar
        ./WEB-INF/lib/dom4j-1.6.1.jar
        ./WEB-INF/lib/jbossts-common.jar
        ./WEB-INF/lib/jbossesb-rosetta.jar
        ./WEB-INF/lib/stax-api-1.0.1.jar
        ./WEB-INF/lib/jaxr-api-1.0rc2.jar
        ./WEB-INF/lib/juddi-2.0rc5.aop.jar
        ./WEB-INF/lib/stax-1.2.0.jar
        ./WEB-INF/lib/commons-codec-1.3.jar
        ./WEB-INF/lib/log4j-1.2.14.jar
        ./WEB-INF/lib/jsr173_1.0_ri.jar
        ./WEB-INF/lib/commons-collections-3.2.jar
        ./WEB-INF/lib/jboss-messaging-client.jar
        ./WEB-INF/lib/wstx-asl-3.2.0.jar
        ./WEB-INF/lib/xbean-2.2.0.jar
        


        Servlet:
        package org.jboss.esb.client;
        
        import java.io.IOException;
        import javax.naming.Context;
        import javax.servlet.ServletException;
        import javax.servlet.http.HttpServlet;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.http.HttpServletResponse;
        
        import org.jboss.soa.esb.client.ServiceInvoker;
        import org.jboss.soa.esb.message.Message;
        import org.jboss.soa.esb.message.format.MessageFactory;
        
        public class EsbServletClient extends HttpServlet
        {
         private static final long serialVersionUID = 1L;
        
         @Override
         protected void doGet(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException
         {
         invokeEsb();
         }
        
         @Override
         protected void doPost(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException
         {
         invokeEsb();
         }
        
         private void invokeEsb()
         {
         System.setProperty("javax.xml.registry.ConnectionFactoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl");
        
         // Set the jndi properties. Note these could be set as properties in web.xml
         System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
         System.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
         System.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming");
        
         try
         {
         final Message message = MessageFactory.getInstance().getMessage();
         message.getBody().add("Sample payload");
         new ServiceInvoker("FirstServiceESB", "SimpleListener").deliverAsync(message);
         }
         catch (final Exception e)
         {
         e.printStackTrace();
         }
         }
        }


        Web.xml:
        <?xml version="1.0" encoding="UTF-8"?>
        <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
        
         <servlet>
         <servlet-name>EsbServlet</servlet-name>
         <servlet-class>org.jboss.esb.client.EsbServletClient</servlet-class>
         </servlet>
        
         <servlet-mapping>
         <servlet-name>EsbServlet</servlet-name>
         <url-pattern>/EsbServlet</url-pattern>
         </servlet-mapping>
        
        </web-app>



        • 31. Re: What are the required JARs for ESB
          beve

           

          but please reply tomorow !

          Please note that this is a community forum and not a support channel. There is no guarantee that you questions will get answered within a certain amount of time or at all.
          If you have the need for such a guarantee then you should consider purchasing a support contract.







          • 32. Re: What are the required JARs for ESB
            kconner

            Daniel is correct, he has gone above and beyond any reasonable expectation you may have in providing help.

            This is a forum and any help is given on a 'best effort' basis. If you need guaranteed, timely support then your only option is to purchase a support contract.

            Kev

            • 33. Re: What are the required JARs for ESB
              vishal12345

              Hi
              daniel i will try this and sorry for the comment, but i m surely considering the option to purchase the support i will propose this option to my company , but i think this decision will depend upone completion of prototype , i m working on thanks for your community support
              JBOSS surely is a great product

              • 34. Re: What are the required JARs for ESB
                vishal12345

                k Daniel

                IT worked for mee too finally, i m very thankfull for yur patience and support , yu people have a majore share in the success of JBOSS community because of such a quality support with literally no cost it is possible for us to try new platform like ESB and build prototypes.

                thanks once again

                Vishal

                1 2 3 Previous Next