• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS for data pulling

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a requirement wherein we want to pull the data every 5 seconds from either RDBMS or mainframe or XML strings. I would likw to know whether we can use JMS for this? If so, how to implement the same. Pls help.
 
Laxmi Raghu
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pls. can anyone answer this?
 
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We can give you guesses, but for a question this specific only you know the relevant facts, like what hardware and software you are using. Why not write a simple unit test using your components in the most minimal way possible but pulling the data volumes you expect to have, and see what kinds of timings you get? 5 seconds doesn't sound bad, but we don't know if you are pulling an integer or the encyclopedia britannica, what your transactionality concerns are, etc.
 
Laxmi Raghu
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the inputs.

I know few ways to pull the data like writing a java NT service which reads text data and then converted to XML and passed over the network to other end. But it's not efficient enough.

Someone asked me whether i can use JMS for that. Since i don't know about JMS much, thought will get inputs in this forum.

Can JMS be used to pull the data?
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you just ask can JMS pull the data? Yes sure it can pull the data. Pulling is just like contacting the source and getting the data. Any java class can do that. If I am not wrong in your application you want to prepare data and send to it over to other apps/systems. So ideally you can make sure you JMS Client to connect to DB and retrieve the data and then send it to a queue/JMS Service. For specific details of how to implement JMS code google for it or you can refer JMS book from oreilly publications.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JMS is a messaging system, it will not do the processing you require.

Have you considered not sending XML over a network? In my experience, this can be quite slow as XML is bloated by tags.

Have you considered compression?
 
Laxmi Raghu
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your inputs. It helped me.
 
reply
    Bookmark Topic Watch Topic
  • New Topic