Running JMS application

Hi,
If you can answer following queries I shall be oblised.
1.What are the different JMS provider available in industry?
2.Is Application server needed to run JMS application?Do application servers provide MOM?
3.Can I use websphere as JMS provider? Do I have to use MQSeries(MOM)in that case?
4.What are the thing I need to configure in application server(e.g. websphere) and/or MOM(eg. MGSeries)to run JMS application(both pub/sub and p2p)?
Looking for your reply.
Thanx & Regards,
Joydeep

1.SOme of them are Progress's Sonic, Fiarano, IBM MQ Series, WEblogic JMS. For complete list , you can search the internet.
2.No application server is not needed. Most of the application server provide JMS eg Weblogic
3.You may have to use MQ Series. WEbsphere doesnt provide it as its part IMO
4.Configuration on most involve setting connection factories, Creating Topics and Queues. There may be performance settings which may vary with product. But this is also ||ar in most servers.
--Ashwani

Similar Messages

  • Embedded JMS/OC4J issue while running an application in Jdeveloper 10.1.3.2

    Hi,
    I am facing an issue while running an application on my laptop.I downloaded Jdeveloper 10.1.3.2.Installed Jheadstart along with that.
    Created a new application specified in HR demo.When I run the application I get following messages,After that it does not show my application pages.It does not even open browser window.
    [waiting for the server to complete its initialization...]
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    07/08/29 18:01:55 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    When I delete persistnce directory files under embedded oc4j (specifically jms.state), It logs following messages.But it does not run my application pages and not even open browser window to display some error.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:jdevstudio10132\jdk\bin\javaw.exe -client -classpath C:jdevstudio10132\j2ee\home\oc4j.jar;C:jdevstudio10132\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    07/08/29 18:06:16 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized.
    I tried by creating another standalone application with simple html page, it throws same logs and does not show up browser window.I even tried with Jdeveloper 10.1.3.3, but still same issue .
    can you please throw some light on this issue and any suggestion for resolutions.
    Thanks.

    Can someone throw somelight on this issue?
    I posted the same issue in Jdeveloper forum but did not receive any reply .appreciate your suggestions.
    Thanks
    Sekar.

  • JMS/OC4J issue while running an application in Jdeveloper 10.1.3.2/10.1.3.3

    Hi,
    I am facing an issue while running an application on my laptop.I downloaded Jdeveloper 10.1.3.2.Installed Jheadstart along with that.
    Created a new application specified in HR demo.When I run the application I get following messages,After that it does not show my application pages.It does not even open browser window.
    [waiting for the server to complete its initialization...]
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    07/08/29 18:01:55 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    When I delete persistnce directory files under embedded oc4j (specifically jms.state), It logs following messages.But it does not run my application pages and not even open browser window to display some error.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:jdevstudio10132\jdk\bin\javaw.exe -client -classpath C:jdevstudio10132\j2ee\home\oc4j.jar;C:jdevstudio10132\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    07/08/29 18:06:16 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized.
    I tried by creating another standalone application with simple html page, it throws same logs and does not show up browser window.I even tried with Jdeveloper 10.1.3.3, but still same issue .
    can you please throw some light on this issue and any suggestion for resolutions.
    Thanks.

    I am also facing the same issue on my laptop. I searched for forum but no luck.
    appreciate if anybody can throw some light on this.

  • Help needed to run a JMS application on WSAD

    Hello everybody,
    I�m trying to execute a JMS application which calls a QueueConnectionFactory and a Queue by JNDI lookup.
    I had configured these queues & Connection Factory at the server configuration for the JMS Server & these are being displayed while the server is starting up that these names had been binded.until here it�s ok.
    But the problem comes when I try to us my JMS program with configurations as websphere 5.1 application client.\
    The error is being displayed as :
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
    [Root exception is java.lang.Exception: De-reference of JMS provider's Reference failed - check provider is on classpath]
    WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException
    If any body can check this out please help.
    best regards,
    Raju Cherukuri.

    Hi,
    I am facing the same issue. Also regarding the resolution posted in this thread, to add the MQ jars in the classpath, do I still have to do if I am using the embedded JMS and not MQ.
    Cosmo can you pls explain what are the steps to do, for whatever you've suggested.
    Regards,
    Hari

  • JDev 10.1.3 - running any application results in connection pool error

    After creating a new project with a MySQL connection and since removing the project, I receive this error no matter which application I try to run through the local OC4J of JDev 10.1.3.0.4.3673.
    I can recreate this issue with a brand new app workspace & project with a single html file.
    06/07/06 14:08:19 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jul 6, 2006 2:08:19 PM com.evermind.server.Application setConfig
    I'm guessing this is a connection pool issue, but I'm not sure how I associated this connection to the pool, or where to remove it. I've reviewed the help files and searched through this forum, and see references to the connection pool on the AS, but not JDev 10.1.3 itself.
    Any pointers are appreciated! In the mean time I'm continuing my search!

    Can you please clarify the following...
    1) Can we run MDB applications within JDeveloper 10.1.3 ? I noticed there is a jms.xml file in embedded OC4J.
    2) How can we test MDB applications within JDeveloper linked to a JMS Destination OC4J based ?

  • PatchBay error while running ATG application

    Hi All,
    I am getting the following error while running ATG application.
    Error  /atg/dynamo/messaging/MessagingManager PatchBay failed to startup properly : a Scheduler job will be registered to continue trying to bring PatchBay up : note this will may result in further errors atg.nucleus.ServiceException: An error occurred trying to obtain an XATopicConnection from factory "dynamo:/atg/dynamo/messaging/SqlJmsProvider" in provider "sqldms" in definition file "/atg/dynamo/messaging/dynamoMessagingSystem.xml": javax.jms.JMSException: service was either unable startup due to possible DB errors or has been stopped+
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.Provider.initializeTopicConnection(Provider.java:325)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.PatchBayManager.createAdministeredDestinations(PatchBayManager.java:2471)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.PatchBayManager.doStartService(PatchBayManager.java:536)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.PatchBayRestarter.performScheduledTask(PatchBayRestarter.java:146)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager*
    Could you please help on this.
    Thanks and regards,

    Hi Gareth,
    No, the error is not coming during managed server startup time.
    It is coming during the application run and page navigation.
    Thanks and regards,

  • Error while running WDJ application using jxl.jar

    Hi Experts,
    I am using jxl.jar in my webdynpro java application in CE7.2. I added jxl.jar in java build path and place the jar file in lib directory of webdynpro DC. It shows error in development configuration perspective while building, then i created another DC of type ExternalLibrary and added jxl.jar in libraries folder, then i right click on that jar and published as archive. Then in Development configuration perspective i added ExternalLibrary project to my webdynpro DC, it doen't shows error while building.
    I deployed successfully, when i run the application, it shows the following error. Is there any fault in adding external jar to mt DC? i can't understand where the problem is?
    Error:
    java.lang.ClassNotFoundException: jxl.Workbook -
    Loader Info -
    ClassLoader name: [com.drl.bomrecipe/bomrecipe] Loader hash code: 30a86ee9 Living status: alive Direct parent loaders: [system:Frame] [interface:webservices] [interface:cross] [interface:security] [interface:transactionext] [library:webservices_lib] [library:opensql] [library:jms] [library:ejb20] [service:p4] [service:ejb] [service:servlet_jsp] [sap.com/tcwdapi] [library:tcblexceptionlib] [library:tcblloggingapi] Resources: E:\usr\sap\CE7\J00\j2ee\cluster\apps\com.drl.bomrecipe\bomrecipe\servlet_jsp\webdynpro\resources\com.drl.bomrecipe\bomrecipe\root\WEB-INF\lib\com.drl.bomrecipe~bomrecipe.jar -
        at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:272)
        at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:241)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:367)
    help me please, thanks in advance
    Regards,
    Pradeep Kumar G

    Hi Pradeep,
    Have you created both compilation and assembly public parts for your Ext Lib, and have you added them both to your Used DC's list?
    Also remember, since you are using an assembly public part, the 'Create Archive' and 'Deploy new archive and run' should not be used!
    Use the DC Build and DC Deploy instead.
    Hope this helps!
    Robin van het Hof

  • How to configure the JMS application in WSAD 5.0

    hi
    i need to configure an JMS application in WSAD 5, but while configuring the application i am checked with intial context exception. but i have configured the jndi in the server. but i cant able to run the application.
    can anybody help me like how to configure the JMS application in WSAD (can we configure it without MQ simulator if yes i need the steps)
    thanks in advance

    Hi,
    did you check the WebSphere documentation or ask a question on an IBM forum?
    Frank

  • How to run JMS in multiple machines?

    hello all,
    i am new to jms, so please let me know how to run jms in multiple machines.
    i mean, iin one machine publisher and the queue/topic are running, in other machine listener/clent. so client and the publisher must be running in an application servers. so it means only two app servers can send and receive messages?
    then what is the advantage of JMS?
    I think the sender will be sending messages and the listener can get them at later time, is my understanding is correct?
    Please let me know how it works in multiple machines? and how shold i start now?
    please give me the details....
    thanks in advance.
    charan

    Hi Charan!
    If I understand your questions right, yes, you can use JMS on several physical machines. They connect using JNDI.
    However, you cannot communicate asynchronously through JMS alone. The benefit of JMS is that you have a common interface to use when talking to a messaging provider, like WS MQ, Sonic MQ, etc. Most vendors support JMS, and those who do are called JMS providers. They are required to implement either the Queue functionality or Topic functionality (or both). When using a JMS provider, you really see the benefit of JMS. How else would you secure that your system is loosly coupled? Also, by using JMS and Message Driven Beans you get the benefits of container managed transactions, object pooling, etc.
    If you do not have a JMS provider, you still have the benefit of a loosly coupled system by using JMS to integrate your applications, but in a large system, you should consider a tool for asynchronous messaging(again WS MQ, Sonic MQ, etc).
    I would recomend you start by reading the JMS section of the J2EE tutorial provided by sun.
    -K-

  • JMS Application on J2EE server

    Hi,
    How can I run a simple PTP client-server application of JMS on windows platform? I am using a machine running windows 98, on which I have installed JDK1.3 and J2SDKEE1.2.1. I use J2EE server to deploy EJBs and Servlets on localmachine. I want to use the same J2EE server (J2SDKEE1.2.1 for windows) for JMS applications also. Please help me.
    Paras.

    Sun's J2EE SDK 1.2.1 does not support JMS. In other words, it does not have a JMS provider.
    You need to use Sun's J2EE SDK 1.3 to use the reference implementation of JMS API.
    However, you could use JMS provider from other vendor and still use J2EE SDK 1.2.1 reference inplementation as your application server.

  • Running jms client and server on different machines

    Hi (again) ,
    I would like to know how to make a client jms application talking to a jms server on another machine, if someone could point out some tutorial that talks about it that would be good as well.
    Is it necessary to have jms servers on both machines to make it possible?
    Thanks in advance!

    In a very simplistic light...
    You can set these properties when you create your initial context.
    In the following code sample I'm using a Weblogic JMS Server which is running on machine A, port 9179:
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://machineA:9179");
    InitialContext ctx = new InitialContext(props);
    There are other ways of setting these properties such as using a properties file
    hope this helps!

  • Testing simple JMS application

    I have written a very simple JMS application.
    I am trying to get it to run with the SUN App Server 8. I accepted the default values when installing the server. I have the app server up and running. The following code is suppose to create the Session:
    Context context = new InitialContext();
    ConnectionFactory connectionFactory =
    (ConnectionFactory)context.lookup("ConnectionFactory");
    Connection connection = connectionFactory.createConnection();
    session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    I ave tried to run this from both the command line and from JBuilder. I have include the J2EE.jar in the classpath. I get the following error.
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    I know that I can set properties for the InitialContext constructor, but is this required? If so, what would the properties be for the default server?

    Looks like you're missing the initial context factory class which is:
    java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
    But I believe Sun recommends not settting it directly. You should include appserv-rt.jar in your classpath. That jar file has a file called jndi.properties which specifies the above property I just mentioned. Open it up and take a look for yourself.

  • ConnectionRunTimeException problem on JMS Application

    Hi guys i am developing a JMS application based on durable publish/subscribe model on
    netbeans 5.0 running Sun Java App Server 8.0 .I have defined a Connector resource of
    resource type TopicConnectionFactory and a Destination resource of resource type Topic ,and registered
    both of them with the app server.First i created both of these resources using the JMS Resource wizard, and configured
    them both in the web app descriptor(web.xml) and sun web app descriptor(sun-web.xml) but when i try to run the PublishingHandler Servlet
    i gives me a ConnectionRuntimeException.I deleted both of these resource,logged in to the app server
    and created them afresh on the Admin Server Console.The creation was successful but when i restart the app server and try to run my application
    i still get that ConnectionRuntimeException.
    Now i don't know how can i configure my application to run,because i have tried all possible configurations.Anyone knowledgeable
    about this, plz help me.
    Here are snippets from app descriptors and the servlet class
    Web Application Descriptor(web.xml)
    <resource-ref>
            <res-ref-name>jms/sanparksConnectionFactory</res-ref-name>
            <res-type>javax.jms.TopicConnectionFactory</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
            <res-ref-name>jms/sanparksTopics</res-ref-name>
            <res-type>javax.jms.Topic</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    Sun Web Application Descriptor(sun-web.xml)
    <resource-ref>
        <res-ref-name>jms/sanparksConnectionFactory</res-ref-name>
        <jndi-name>jms/sanparksConnectionFactory</jndi-name>
    </resource-ref>
    <resource-ref>
        <res-ref-name>jms/sanparksTopics</res-ref-name>
        <jndi-name>jms/sanparksTopics</jndi-name>
    </resource-ref>
    Servlet Source Code(PublishingHandler.java)
    package com.mcebo.sanparks.mediator;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.jms.*;
    import javax.naming.*;
    //User Defined packages
    import com.klaas.sanparks.beans.TopicBean;
    import com.mcebo.sanparks.accesslayer.XMLDBProcessor;
    public class PublishingHandler extends HttpServlet
         TopicConnectionFactory factory = null;
         TopicConnection connection = null;
         TopicSession session = null;
         Topic topic = null;
         TopicBean sanparkTopic = new TopicBean();
         TopicPublisher publisher = null;
        XMLDBProcessor dbAcces = new XMLDBProcessor();
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String title = request.getParameter("title");
            String category = request.getParameter("category");
            String body = request.getParameter("body");
            String keyWord = request.getParameter("keyword");
            if((!title.equals(null)) && (!category.equals(null))&&(!body.equals(null))&& (!keyWord.equals(null)))
                    sanparkTopic.setTitle(title);
                    sanparkTopic.setCategory(category);
                    sanparkTopic.setBody(body);
                    sanparkTopic.setKeyWord(keyWord);
            try
                   Context initContext = new InitialContext();
                  package com.mcebo.sanparks.mediator;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.jms.*;
    import javax.naming.*;
    //User Defined packages
    import com.klaas.sanparks.beans.TopicBean;
    import com.mcebo.sanparks.accesslayer.XMLDBProcessor;
    public class PublishingHandler extends HttpServlet
         TopicConnectionFactory factory = null;
         TopicConnection connection = null;
         TopicSession session = null;
         Topic topic = null;
         TopicBean sanparkTopic = new TopicBean();
         TopicPublisher publisher = null;
        XMLDBProcessor dbAcces = new XMLDBProcessor();
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String title = request.getParameter("title");
            String category = request.getParameter("category");
            String body = request.getParameter("body");
            String keyWord = request.getParameter("keyword");
            if((!title.equals(null)) && (!category.equals(null))&&(!body.equals(null))&& (!keyWord.equals(null)))
                    sanparkTopic.setTitle(title);
                    sanparkTopic.setCategory(category);
                    sanparkTopic.setBody(body);
                    sanparkTopic.setKeyWord(keyWord);
            try
                    Context initContext = new InitialContext();
                   // Context envContext = (Context)initContext.lookup("java:comp/env");
                //factory = (TopicConnectionFactory)envContext.lookup("jms/sanparksConnectionFactory");
                   //topic = (Topic) envContext.lookup("jms/sanparksTopics");
                   topic = (Topic) initContext.lookup("jms/sanparksTopics");     
                   factory = (TopicConnectionFactory)initContext.lookup("jms/sanparksConnectionFactory");
                   topic = (Topic) initContext.lookup("jms/sanparksTopics");
                   connection = factory.createTopicConnection();
                   session = connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
                   publisher = session.createPublisher(topic);
                   ObjectMessage message = session.createObjectMessage();
                   message.setObject(sanparkTopic);
                   message.setStringProperty("Category",sanparkTopic.getCategory());
                   publisher.publish(message);
                   out.println("Message Published"+ sanparkTopic.getCategory());
                   out.close();
            catch(Exception ex)
                    ex.printStackTrace();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
        // </editor-fold>
                   factory = (TopicConnectionFactory)initContext.lookup("jms/sanparksConnectionFactory");
                   topic = (Topic) initContext.lookup("jms/sanparksTopics");
                   connection = factory.createTopicConnection();
                   session = connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
                   publisher = session.createPublisher(topic);
                   ObjectMessage message = session.createObjectMessage();
                   message.setObject(sanparkTopic);
                   message.setStringProperty("Category",sanparkTopic.getCategory());
                   publisher.publish(message);
                   out.println("Message Published"+ sanparkTopic.getCategory());
                   out.close();
            catch(Exception ex)
                    ex.printStackTrace();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
        // </editor-fold>
    }

    Hi guys i am developing a JMS application based on durable publish/subscribe model on
    netbeans 5.0 running Sun Java App Server 8.0 .I have defined a Connector resource of
    resource type TopicConnectionFactory and a Destination resource of resource type Topic ,and registered
    both of them with the app server.First i created both of these resources using the JMS Resource wizard, and configured
    them both in the web app descriptor(web.xml) and sun web app descriptor(sun-web.xml) but when i try to run the PublishingHandler Servlet
    i gives me a ConnectionRuntimeException.I deleted both of these resource,logged in to the app server
    and created them afresh on the Admin Server Console.The creation was successful but when i restart the app server and try to run my application
    i still get that ConnectionRuntimeException.
    Now i don't know how can i configure my application to run,because i have tried all possible configurations.Anyone knowledgeable
    about this, plz help me.
    Here are snippets from app descriptors and the servlet class
    Web Application Descriptor(web.xml)
    <resource-ref>
            <res-ref-name>jms/sanparksConnectionFactory</res-ref-name>
            <res-type>javax.jms.TopicConnectionFactory</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
            <res-ref-name>jms/sanparksTopics</res-ref-name>
            <res-type>javax.jms.Topic</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    Sun Web Application Descriptor(sun-web.xml)
    <resource-ref>
        <res-ref-name>jms/sanparksConnectionFactory</res-ref-name>
        <jndi-name>jms/sanparksConnectionFactory</jndi-name>
    </resource-ref>
    <resource-ref>
        <res-ref-name>jms/sanparksTopics</res-ref-name>
        <jndi-name>jms/sanparksTopics</jndi-name>
    </resource-ref>
    Servlet Source Code(PublishingHandler.java)
    package com.mcebo.sanparks.mediator;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.jms.*;
    import javax.naming.*;
    //User Defined packages
    import com.klaas.sanparks.beans.TopicBean;
    import com.mcebo.sanparks.accesslayer.XMLDBProcessor;
    public class PublishingHandler extends HttpServlet
         TopicConnectionFactory factory = null;
         TopicConnection connection = null;
         TopicSession session = null;
         Topic topic = null;
         TopicBean sanparkTopic = new TopicBean();
         TopicPublisher publisher = null;
        XMLDBProcessor dbAcces = new XMLDBProcessor();
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String title = request.getParameter("title");
            String category = request.getParameter("category");
            String body = request.getParameter("body");
            String keyWord = request.getParameter("keyword");
            if((!title.equals(null)) && (!category.equals(null))&&(!body.equals(null))&& (!keyWord.equals(null)))
                    sanparkTopic.setTitle(title);
                    sanparkTopic.setCategory(category);
                    sanparkTopic.setBody(body);
                    sanparkTopic.setKeyWord(keyWord);
            try
                   Context initContext = new InitialContext();
                  package com.mcebo.sanparks.mediator;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.jms.*;
    import javax.naming.*;
    //User Defined packages
    import com.klaas.sanparks.beans.TopicBean;
    import com.mcebo.sanparks.accesslayer.XMLDBProcessor;
    public class PublishingHandler extends HttpServlet
         TopicConnectionFactory factory = null;
         TopicConnection connection = null;
         TopicSession session = null;
         Topic topic = null;
         TopicBean sanparkTopic = new TopicBean();
         TopicPublisher publisher = null;
        XMLDBProcessor dbAcces = new XMLDBProcessor();
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String title = request.getParameter("title");
            String category = request.getParameter("category");
            String body = request.getParameter("body");
            String keyWord = request.getParameter("keyword");
            if((!title.equals(null)) && (!category.equals(null))&&(!body.equals(null))&& (!keyWord.equals(null)))
                    sanparkTopic.setTitle(title);
                    sanparkTopic.setCategory(category);
                    sanparkTopic.setBody(body);
                    sanparkTopic.setKeyWord(keyWord);
            try
                    Context initContext = new InitialContext();
                   // Context envContext = (Context)initContext.lookup("java:comp/env");
                //factory = (TopicConnectionFactory)envContext.lookup("jms/sanparksConnectionFactory");
                   //topic = (Topic) envContext.lookup("jms/sanparksTopics");
                   topic = (Topic) initContext.lookup("jms/sanparksTopics");     
                   factory = (TopicConnectionFactory)initContext.lookup("jms/sanparksConnectionFactory");
                   topic = (Topic) initContext.lookup("jms/sanparksTopics");
                   connection = factory.createTopicConnection();
                   session = connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
                   publisher = session.createPublisher(topic);
                   ObjectMessage message = session.createObjectMessage();
                   message.setObject(sanparkTopic);
                   message.setStringProperty("Category",sanparkTopic.getCategory());
                   publisher.publish(message);
                   out.println("Message Published"+ sanparkTopic.getCategory());
                   out.close();
            catch(Exception ex)
                    ex.printStackTrace();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
        // </editor-fold>
                   factory = (TopicConnectionFactory)initContext.lookup("jms/sanparksConnectionFactory");
                   topic = (Topic) initContext.lookup("jms/sanparksTopics");
                   connection = factory.createTopicConnection();
                   session = connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
                   publisher = session.createPublisher(topic);
                   ObjectMessage message = session.createObjectMessage();
                   message.setObject(sanparkTopic);
                   message.setStringProperty("Category",sanparkTopic.getCategory());
                   publisher.publish(message);
                   out.println("Message Published"+ sanparkTopic.getCategory());
                   out.close();
            catch(Exception ex)
                    ex.printStackTrace();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
        // </editor-fold>
    }

  • Urgent help needed:oc4j  server error coming while running  web application

    while running application below error is coming
    2007-05-28 18:05:39.439 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    2007-05-28 18:05:39.470 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    2007-05-28 18:05:54.471 ERROR J2EE HTTP-00004 Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: datatags does not exist. Error creating Web application: webapp

    Hello,
    The notification messahes (JMS related) are here for information purpose and not related to your application.
    The ERROR J2EE HTTP-00004 is related to your application, is looks like you have a misconfiguration or something bad with your application and the module/application named "datatags".
    Could you please give more information about the application that you are deploying?
    - how do you deploy it?
    - what is the packaging? EAR or WAR, how did you package it? (Jdev or other?)
    - what are the different modules that you are using? (web apps, ejb, ...)
    - can you run the application from JDeveloper if you are using it?
    Regards
    Tugdual Grall

  • Sample Websphere6 JMS application with default Messaging

    Hi,
    Where could I get the Sample Websphere6 JMS application with default messaging?.
    Please post me a link
    Thank you

    I am trying to execute
    SimpleQueueSender.java from jms tutorial but unforunately getting following
    errors.
    Errors-->
    Queue name is MyQueue
    JNDI lookup failed: javax.naming.CommunicationException:
    java.rmi.MarshalException: CORBA MARSHAL 13
    98079699 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge :
    minor code: 139807969
    9 completed: Maybe
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor
    code: 1398079699 comple
    ted: Maybe
    at
    com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_
    1_0.java:936)
    at
    com.sun.corba.ee.internal.iiop.CDRInputStream.read_value(CDRInputStream.java
    :292)
    at
    com.sun.corba.ee.internal.corba.TCUtility.unmarshalIn(TCUtility.java:268)
    at
    com.sun.corba.ee.internal.corba.AnyImpl.read_value(AnyImpl.java:562)
    at
    com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_
    0.java:618)
    at
    com.sun.corba.ee.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:2
    63)
    at
    com.sun.corba.ee.internal.javax.rmi.CORBA.Util.readAny(Util.java:103)
    at javax.rmi.CORBA.Util.readAny(Util.java:92)
    at
    org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Un
    known Source)
    at
    com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:154)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at SimpleQueueSender.main(SimpleQueueSender.java:70)
    I have all the setup required for running jms api examples & also tried all the tips mentioned here ,but still getting these errors . Any
    help would be greatly appreciated.
    Praveg

Maybe you are looking for

  • Error message: u2018Item 000010 does not existu2019 (Inbound Delivery creation)

    Hi,   When i am trying to create Inbound delivery using the function module 'BBP_INB_DELIVERY_CREATE' getting an error message as 'Item 000010 does not exist' though it exists in the PO. I could not able to findout the issue, am i missing anything he

  • How to extract a sub string in SQL

    Hi, I have two columns "Project Name" and "Flag".  Now i want to find out all the project names which contain a particular substring in it, like say - "SRM" and update the "Flag" column to value 1 for all those projects. Can someone please help me wi

  • Why did adobe remove variations?

    Many have acknowledged this, and the workarounds to get variations working again in Photoshop...but can Adobe please tell us why this was removed? was there a functional need for it to be removed? is there an equivalent replacement tool?

  • MySQL jdbc speed

    Hello, I have a code - see below - which collects all fields of the available database tables. My problem is that this takes ~1sec with a Delphi code, but it takes ~15-20sec with the java implementation. It seems a little bit slow for me. I made some

  • Trying to talk RMI from 10.3 to 8.1 thru WebService - Nasty Exception

    Hi All, as an aside.. Somehow my account got reset? and i cannot change my username back... how and ever... I'm having a meltdown over an issue between a 10.3 Weblogic Server and an 8.1 Weblogic Server Bascially I have a JAX-WS 2.0 Web Service runnin