Can I use JMS in Java SE?

Hi,
We are developing a desktop application in plane Java SE.
We thought of using JMS for the client-server events propagation.
Is it possible to use JMS without a J2EE application server?
I know I can do it in Spring, but we don't want to use the Spring framework just because of JMS.
Please let me know if there is a way to incorporate JMS in Java SE desktop application.
Thanks much,
Sandeep

Hi,
We are developing a desktop application in plane Java SE.
We thought of using JMS for the client-server events propagation.
Is it possible to use JMS without a J2EE application server?
I know I can do it in Spring, but we don't want to use the Spring framework just because of JMS.
Please let me know if there is a way to incorporate JMS in Java SE desktop application.
Thanks much,
Sandeep

Similar Messages

  • Can I use JMS for this?

    User logs into our administrative console, selects a job, clicks run.
    Behind the scenes, the run command actually creates a job and returns XML which provides a long list of commands that need to be executed in order for that "job" the user triggered to be complete. This XML contains everything from shell scripts that need to be triggered to PL/SQL functions and stored procedures that need to be called...and they're listed in this XML file in the order they need to be executed and the next process in the list can only be executed when the process before it is finished. This all needs to go on behind the scenes, uninhibiting the user's experience on the website...so that's why I thought I might be able to use JMS but it seems everything needs to be written in java for this to work, which is a problem being I need to trigger runtime processes on the Linux box to execute shell scripts, which are not written in java...how would those shell scripts communicate with the JMS?
    Anyone doing anything like this? Examples somewhere? It's kind of like a job management console...the jobs are pretty complex and can take up to 45 minutes or more to complete, which is why we need to come up with a way to run them from the app server, but in the background, asynchronously from the user's website utilization. This obviously, because of the time some of these take to complete, can't be a request/response architecture...
    Thoughts? Help? Anything greatly appreciated.
    Thanks!
    rlb

              poorni wrote:
              > Hello everyone,
              > I need to send an alert message from the client to a server(which is
              > remote). Can I use JMS for this?.
              Yes.
              If so can anyone please suggest me
              > an open source JMS provider.
              WebLogic has JMS built-in.
              > Thank you,
              > poornima
              

  • ... how can i use 'enter' in java (text) -.-

    Hi all,
    first the simple version;
    How can i use 'enter' in java. Like turn HELLO into
    H
    E
    L
    L
    O
    The not so simpler version IF needed;
    I have the following piece of code;'
    if (line.startsWith("Monday")) {
         String subjectsMonday = " math and philosophy";
         Calendar c = Calendar.getInstance();
              System.out.format("School begins at" +" 08:10", c, c, c);
              System.out.format(" school ends at " +" 15:55", c, c, c);
         System.out.println("We have the following subjects;" + subjectsMonday);the thing is ... i want the text "we have the following subject; math and philosophy" to start at a new line.
    HOW am i supposed to do that.

    %n may work for you:
            String subjectsMonday = " math and philosophy";
            Calendar c = Calendar.getInstance();
            System.out.format("School begins at" + " 08:10%n", c, c, c);
            System.out.format(" school ends at " + " 15:55", c, c, c);
            System.out.println("We have the following subjects;" + subjectsMonday);

  • How can i use JMS in J2ME

    how can i use JMS in J2ME?
    What are steps i have to follow to run JMS in J2ME?

    http://www.microjava.com/articles/techtalk/jms

  • Can i use JMS use as Middleware ?

    Hi All,
    Can i use JMS 1.0.2b specification as MOM to fwd request to another application ?
    Or any suggestion to use Middleware as JMS
    Thanks
    - Rim

    Hi All,
    Can i use JMS 1.0.2b specification as MOM to fwd
    request to another application ? Sure, its one of the main use cases of JMS :)
    Or any suggestion to use Middleware as JMSI'd recommend starting off finding your feet with an open source JMS provider like ActiveMQ or JORAM
    James
    http://logicblaze.com/

  • Can I  use JMS?

    I write a trigger to detect the updated record in my oracle db table(once trigger detects the change it sends out the information). I also want to write a servlet on websphere app server. How can I make the servlet as a listener in order to get the information sent from oracle? Can I use JMS?

    Yes, you do indeed get the point :-)
    For your other questions -
    1) Oracle AQ does not use JNDI to connect - you get the connection with...
    TopicConnectionFactory tc_factory = AQjmsFactory.getTopicConnectionFactory(serverAddr,"ORCL",1521,"thin");2)Yep - Queues are one-to-one, Topics are one-to-many. You will need to be careful with the client id when you create the subscriptions. Each applets client ID will need to be different or only one will consume the message.
    R.
    KMS

  • How can I use HyperLink In Java Applet..

    I am new In Java Programming And i Want to create a Hyperlink OR URL in java Applet, How can be It possible?

    well u can use a hyperlink as a url by using url from java.net.url class
    define ur url .... u can check the API fo r that
    and by using wht u mean .. u want to browse in applet with that url or wht
    if u want to do browing in applet than u will also have to do parsing of all HTML tags
    hope it will help u

  • How can I use JAXB on Java 1.4?

    My code is developed on 1.4 and my firm has not upgraded to 1.5 yet.
    Can I use JAXB?
    All I see on web is JAXB2.0 hat requires Java 1.5.
    What can I do? Is there any pre-2.0 release of JAXB - I am sure they had JAXB before Java 1.5
    Please shed some light, thanks.

    https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgNo=4868
    Turadg Aleahmad:
    Could JAXB2 work in JSE 1.4 if it was run through Retrotranslator?
    http://retrotranslator.sourceforge.net/
    Kohsuke Kawaguchi:
    It isn't officially supported, but it actually works. Yes, use retrotranslator.
    You'd also have to use @xexplicitAnnotation="true" (for Ant) and use
    -XexplicitAnnotation for CLI to work around some of the issues.

  • Can I use JMS instead of  multithreaded approach

    Hi,
    I am having a typical problem where the XML data coming through sockets using TCP/IP needs to be read and perform some action.
    The code I have uses two classes to do this, each of them extending the Thread class, and invokes the individual run() method. In the run() method the second class's constructor is called which in turn invokes its own run() method. In the second run() method a handler method is invoked which does the required function. The dedicated threading approach is required in my application but my question is:
    1. Instead of achieving the handling using threading, which seems to be a bit complex, can I write a JMS listener and queue the XML messages in a Oracle database. ( I am using Oracle 9i (Advance Queue can be used)).
    2. Will using JMS will increase the overall performance any way?
    PLease help!!
    regards
    Kaushik

    The JMS does the threading for you. This would potentially make your application simpler but you still need a thread(s) at the end of the day in the same way.
    The JMS is a more comprehensive package which hides much of the work for you. It also does alot of work which is not needed. For this reason I would expect JMS to be slower than a well written custom implementation. However, typically JMS is fast enough and much more maintainable, easily reconfigured etc. etc. and CV++ :)
    My guess is that most of your work is in decoding your XML data or somewhere you don't expect.
    If you want it to go faster I would suggest getting a profiler e.g. JProfiler on demo license and do some performance tests. You will probilbly find there a few simple things you can do to improve performance.
    I would not concider the kind of migration you suggest until you know expectly what the problem is. You can waste alot of time optimising code which was not a problem in the first place. (: from experience :)

  • What can I use to view java script in my browser for iPhone

    I can't view JavaScript , what do I use instead. Java's web site says that apple has there own version but I can't find it.

    JavaScript works just fine in iOS.
    Java does not.
    They are not the same thing.

  • Can i use JMS in this scenario

    Hi all,
              I have a doubt .I just want to know wether i can use JMS in this situation.
              By the end of processing in our module, we will have a ServiceRequest.Now we
              have to pass that ServiceRequest related information to other module which
              is residing on another machine.
              So i was thinking of this
              1)our module end point is a servlet.
              2)there i construct the xml string with all the info related to
              ServiceRequest.
              3)after that i create a text message and post it to JMS queue on another
              server(module)
              4)Then there is an MDB which recieves the request using onMessage method
              and then that ServiceRequest related changes r made in the db.
              Is JMS an ideal solution in this scenario.
              I was also just thinking,JMS is for asynchronous communication.
              Now don't u think that i can achieve this kind of asynchronous communication
              by sending(posting using HttpURlConnection) the xml messaage from servlet1
              in server 1 to servlet 2 in other module(server2) and have the jdbc code to
              save the data related to ServiceRequest in the servlet in the other
              module.That way also i acheive kind of asynchronous communication(i.e am not
              getting any response back).Why shud i use JMS then.
              So i just want to know is this the right scenario for going for JMS or we r
              just complicating things.
              Thnx in Advance
              Veena.
              

    JMS is ideal for asynchronous behaviour, why try to build your own
              asynchornous behaviour. If you want to have two processes just for async
              behavior, u have to take into account many other issues, like one process
              going down. How would you scale your application.
              Why can't ur first servlet write directly to the database?
              -Vikas
              "Veena" <[email protected]> wrote in message
              news:[email protected]...
              > Hi all,
              >
              > I have a doubt .I just want to know wether i can use JMS in this
              situation.
              >
              > By the end of processing in our module, we will have a ServiceRequest.Now
              we
              > have to pass that ServiceRequest related information to other module which
              > is residing on another machine.
              >
              > So i was thinking of this
              >
              > 1)our module end point is a servlet.
              > 2)there i construct the xml string with all the info related to
              > ServiceRequest.
              > 3)after that i create a text message and post it to JMS queue on another
              > server(module)
              > 4)Then there is an MDB which recieves the request using onMessage method
              > and then that ServiceRequest related changes r made in the db.
              >
              > Is JMS an ideal solution in this scenario.
              >
              > I was also just thinking,JMS is for asynchronous communication.
              > Now don't u think that i can achieve this kind of asynchronous
              communication
              > by sending(posting using HttpURlConnection) the xml messaage from servlet1
              > in server 1 to servlet 2 in other module(server2) and have the jdbc code
              to
              > save the data related to ServiceRequest in the servlet in the other
              > module.That way also i acheive kind of asynchronous communication(i.e am
              not
              > getting any response back).Why shud i use JMS then.
              >
              > So i just want to know is this the right scenario for going for JMS or we
              r
              > just complicating things.
              >
              > Thnx in Advance
              > Veena.
              >
              >
              >
              

  • How can i use the operationsComplete JAVA API in EJB2.0

    Hello guys,
    My Issue is cleaning the EJB Cache. some guys saying using JAVA API like operationsComplete like the follwing
    weblogic.ejb.interfaces.EJBLocalObject
    public.void.operationsComplete()
    weblogic.ejb.EJBObject
    public.void.operationsComplete()
    Please reffer the link below
    (http://e-docs.bea.com/wls/docs92/ejb/entity.html#wp1194003)
    Understanding Passivation of Entity Beans
    Entity beans that are involved in transactions can be passivated when necessary in order to attempt to prevent a CacheFullException when an attempt is made to insert an entity bean into a cache that is full. Passivation is handled automatically by the EJB container and you do not need to change the way you program EJBs in order to take advantage of this feature. However, you can optionally program your EJBs to communicate to the cache that they are done performing all operations in the current transaction. The cache can then make use of this information when evaluating beans for the possibility of passivation.
    To optionally program EJBs to notify their cache that they are done performing operations in the current transaction, you can use the operationsComplete Java API as follows:
    weblogic.ejb.interfaces.EJBLocalObject
    public.void.operationsComplete()
    weblogic.ejb.EJBObject
    public.void.operationsComplete()
    It would be great help if any guy give me a solution.
    Thanks in Advance
    Rajasekhar

    Netweaver is comprised of different components...
    in WAS ABAP.. if you go to SPAM.. and select imported support packages and click display..
    You will see list of components.. some of the components you might see at same level and some follow different paths...
    ex:
    SAP_OCS  - > SPAM/SAINT UPDATE 24
    SAP_BASIS -> Support pacakage 13 for 7.0
    SAP_ABAP-> Support pacakge 13 for 7.0
    and the same way you can find different components in java engine...
    http://<host>:<port>/sap/monitoring/SystemInfo
    You can upgrade each of them by individual support packages.. or you can upgrade stack by stack..
    stack is collection of supporpt packages...
    If you follow stack.. then you can tell that you at NW04S Support stack 10 or 11... if you upgrade by support package always it is collection of versions of different support packs in your system...
    Please do come back if you require any further information..
    Award points if this reply found useful

  • Can I use JMS instead of a shared database.

              I need to share data between mutiple weblogic instances and I would like to use
              JMS instead of a shared database.
              Senario:
              Weblogic instance 1 recevies message withy parameters 1,2
              Calcualate 1,2
              Weblogic instance 2 recevies message withy parameters 1,2
              Do not calculate 1,2 until Weblogic 1 is finish.
              I know I can persiste in a shared table the work currently being done but this
              alot on this table.
              I would like to use JMS to tell the other servers that I am working on a process
              so the other servers don't.
              My goal is to share data with multiple weblogic servers without going to the database.
              Is it possible?
              Any ideas?
              Tommy Lapierre
              

    One way to accomplish this with queing is to partition
              related work to a single destination that has a single
              consumer.
              Tommy Lapierre wrote:
              > I need to share data between mutiple weblogic instances and I would like to use
              > JMS instead of a shared database.
              >
              > Senario:
              > Weblogic instance 1 recevies message withy parameters 1,2
              > Calcualate 1,2
              > Weblogic instance 2 recevies message withy parameters 1,2
              > Do not calculate 1,2 until Weblogic 1 is finish.
              >
              > I know I can persiste in a shared table the work currently being done but this
              > alot on this table.
              >
              > I would like to use JMS to tell the other servers that I am working on a process
              > so the other servers don't.
              >
              > My goal is to share data with multiple weblogic servers without going to the database.
              > Is it possible?
              >
              > Any ideas?
              >
              > Tommy Lapierre
              

  • Adobe is asking for Java SE 6 runtime. How can I use Oracle's Java 7 instead?

    Platform: Mac OS X, version 10.9.2 (the latest available as of May 11, 2014)
    When trying to open my old Adobe Illustrator, as part of Creative Suite CS4, I get the following error message:
    To open "Adobe Illustrator CS4," you need a Java SE 6 runtime. Would you like to install one now?
    I have the latest Oracle Java 7 (Version 7 Update 55) installed and I don't want the historic Apple Java 6. How can I configure Adobe software to use the already installed Java 7?
    Best, regards
    Tom

    despite this being for a different os, read (especially the end paragraphs) Install Java (JRE) | Mac OS 10.7 Lion

  • How can i use twain from java servlet?

    dear all
    iam a web developer ,iam haviving now a task to search in point pf scanning image through web (Intranet) using java
    can any one tell where can i find resources how to deal with Twain using java (On web specially not from a desktop application)
    i hope u can help me
    Thanks in advance
    Yours,
    Amr
    Senior Java Web developer

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

Maybe you are looking for