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.
          >
          >
          >
          

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
              

  • Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    You will need to setup a new Apple ID for your sister.  You have to have an Apple ID and iDevice connected and using that account to get an iCloud account.

  • 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

  • I have a new ipad which needs itunes 10.7 or later to download my music onto it... but my ipad is not compatible with this as it is too old... can i use itunes with this ipad and apple laptop?

    I have a new ipad which needs itunes 10.7 or later to download my music onto it... but my apple laptop is not compatible with this as it is too old... can i use itunes with this ipad and apple laptop?

    To use itunes 10.7 you need to have Snow Leopard operating system installed
    These are the system requirements
    System Requirements:
    Mac computer with an Intel processor
    1GB of memory
    5GB of available disk space
    DVD drive for installation
    Some features require a compatible internet service provider: fees may apply.
    If you can run Snow Leopard you need to purchase it
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • What silent switch can I use to make this uninstall? C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\core\PDApp.exe --appletID="DWA_UI" --appletVersion="2.0" --mode="Uninstall" --mediaSignature="{A4ED5E53-7AA0-11E1-BF04-B2D4D4A5360E}"

    What silent switch can I use to make this uninstall? C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\core\PDApp.exe --appletID="DWA_UI" --appletVersion="2.0" --mode="Uninstall" --mediaSignature="{A4ED5E53-7AA0-11E1-BF04-B2D4D4A5360E}"

    Your install log indicates you are facing file permission issues.  You can see an example here:
    DF037: Unable to delete directory "C:\Program Files\Common Files\Adobe\Keyfiles". Error 145 The directory is not empty.(Seq 1)
[    1904] Fri Dec 28 07:00:31 2012  WARN
DW063: Command ARKDeleteDirectoryCommand failed.(Seq 1)
[    1904] Fri Dec 28 07:00:31 2012 ERROR
DF037: Unable to delete directory "C:\Program Files (x86)\Common Files\Adobe\ssc\CreativeCloud-CS6-Win-GM". Error 145 The directory is not empty.(Seq 2)
[    1904] Fri Dec 28 07:00:31 2012  WARN
DW063: Command ARKDeleteDirectoryCommand failed.(Seq 2)
[    1904] Fri Dec 28 07:00:31 2012 ERROR
DF037: Unable to delete directory "C:\Program Files (x86)\Common Files\Adobe\ssc\CreativeCloud-CS6-Mac-GM". Error 145 The directory is not empty.(Seq 3)
[    1904] Fri Dec 28 07:00:31 2012  WARN
DW063: Command ARKDeleteDirectoryCommand failed.(Seq 3)
[    1904] Fri Dec 28 07:00:31 2012 ERROR
DF037: Unable to delete directory "C:\Program Files (x86)\Common Files\Adobe\ssc\AMT". Error 145 The directory is not empty.(Seq 4)
    You will want to adjust the file permissions for C:\Program Files\Common Files\Adobe and C:\Program Files(x86)\Common Files\Adobe.  You can find information on how to adjust the file permissions at Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.  Please make sure you apply the permission change to all child objects.
    In general you can find information on how to review and interpret your installation log at Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html.

  • 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

  • My location services appears to be locked. They are in light grey and will not let me turn them on and off. New app requiring GPS i can't use due to this. How can i reset or fix?

    My location services appears to be locked. They are in light grey and will not let me turn them on and off. New app requiring GPS i can't use due to this. How can i reset or fix?

    Double check your restrictions for location service.
    settings - genral - restricitons.

  • 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 :)

  • 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
              

  • How can I stop sounds in this scenario

    Hello, I need help.
    I need to load in an external .swf file into my new movie and
    stop the sound/music that is playing from the external swf file. I
    need the sound/music to stop immediately on frame one. I don't have
    the fla to the external swf file as it is years old. Can someone
    help me with this? I know there is "stopallsounds();" but I don't
    think I'm using it right because it won't stop the sound when I
    play the new exported swf.
    So to recap - I've loaded in a .swf on frame one (into a
    blank movie clip) - and on another layer tried to add the
    "stopallsounds();" action - music still plays - HELP!

    xMrMoox wrote:
    > Hello, I need help.
    >
    > I need to load in an external .swf file into my new
    movie and stop the
    > sound/music that is playing from the external swf file.
    I need the sound/music
    > to stop immediately on frame one. I don't have the fla
    to the external swf
    > file as it is years old. Can someone help me with this?
    I know there is
    > "stopallsounds();" but I don't think I'm using it right
    because it won't stop
    > the sound when I play the new exported swf.
    >
    > So to recap - I've loaded in a .swf on frame one (into a
    blank movie clip) -
    > and on another layer tried to add the "stopallsounds();"
    action - music still
    > plays - HELP!
    Load the swf in movie clip holder and give it instance name
    "someNameHere",
    than use the sound object to define the instance name as
    Sound Object's target
    and use the regular volume control to mute it. By setting it
    that way you control
    the movie clip volume (holder mc) and anything within.
    s = new Sound(someNameHere);
    s.setVolume(0);
    to play it back ON
    s = new Sound(someNameHere);
    s.setVolume(100);
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • 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

  • Can I use DMU for this database?

    Hi everyone,
    I am snippeting a CSSCAN ( i know..) so that will reveal the amount of convertible data we have to tackle and wanted everyone's opinion if we can use DMU for this database.
    [Data Dictionary Conversion Summary]
    Datatype Changeless Convertible Truncation Lossy
    VARCHAR2 7,805,484 202 0 0
    CHAR 1,573 0 0 0
    LONG 220,073 0 0 0
    CLOB 91,227 15,718 0 0
    VARRAY 23,479 0 0 0
    Total 8,141,836 15,920 0 0
    Total in percentage 99.805% 0.195% 0.000% 0.000%
    The data dictionary can not be safely migrated using the CSALTER script
    [Application Data Conversion Summary]
    Datatype Changeless Convertible Truncation Lossy
    VARCHAR2 68,382,337 350,836 39 84
    CHAR 322,930 0 0 0
    LONG 0 0 0 0
    CLOB 32,522 13,257 0 0
    VARRAY 1,552 0 0 0
    Total 68,739,341 364,093 39 84
    Total in percentage 99.473% 0.527% 0.000% 0.000%
    I think it should be fine.
    Please let me know.
    thanks

    Hello,
    the amount of convertible has no relation to if you can use dmu or not.
    of course, the less convertible, the less time the conversion process itself will take, but that's about it
    Regards,
    Gunther

  • Can't use safari w/this version of OSX?? OSX 10.5.1/Safari 3.04

    worked fine on my powerbook g4 before installing Leopard yesterday.
    now, with leopard, i get that message..."can't use the application safari w/this version of OSX" what's up??
    the same versions (10.5.1/3.04) work fine on my imac g5
    software update thinks all's fine and i can't find a downloadable version of Safari on the apple site except for windoze. jeeeze! come on guys, how about a little mac support??

    Hi
    Welcome to Apple Discussions
    Are you certain you are trying to open v 3.0.4? Make sure you don't have multiple Safari versions installed on your machine. Enter Safari.app in your spotlight panel. If multiples show up, move to the trash the 2.0.4 version.
    In necessary: Reinstalling Safari 3.0.4 - Insert the Leopard Installer DVD. Double Click on the "Optional Installs". Then double click on the Optional Installs.mpkg file. Once open the Installer will lead you through a few steps. After selecting your HD, the next panel is where you'll find Safari (in the Applications folder). Select it and continue.
    Once Safari is installed, "repair permissions" again via Disk Utility in your Utilities folder.

Maybe you are looking for