• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Messaging Service question...  RSS feed

 
Trelan Hylton
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know or use J2EE however i am writing a program that needs to know when a file is added to a particular directory by another application(that i did not write). someone suggested using JMS to another person who asked a similar question. I looked up JMS and it is written that it uses J2EE. Can it work without J2EE?
 
Sowmya Sridhar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMS stands for Java messaging service and it is a specification that other provides adhere to. To use JMS, we need to have a JMS provider implementation for the JMS API. Some examples of provides are weblogic and IBM. I think using this technique makes sense if you already have a J2EE server up and running to do other tasks. If that is not the case, using JMS will not be possible. Another possibility is to use IBM MQ series MQI API that allows the program that creates the files to put custom messages on to a queue. Another program can be written to be triggered when messages come on this queue and this could do the copy... but I think these are just overkills if you do not already have the architecture in place and using it to do something more extensive. Another option is to write a simple java class and use a Timer inside it to generate action events every now and then and during each such event, look for new files and fire off the copy. BTW, I think I saw your post on the other question just below this!
Thanks
Sowmya
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!