Passa ai contenuti principali

Running Java Applications as a Windows Service with NSSM

Sometimes there is the request to run a Java Application as a windows service, for this scenario it is possible to use a java wrapper as NSSM.

The example uses a java application that log on file the boot operation, the alive status every 10 seconds, and the exit operation. The code of the example can be downloaded with SVN from the repository https://subversion.assembla.com/svn/gma-sample/trunk/WindowsServiceTutorial.
package org.gma.tutorial.nssm;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.Date;

/**
 * A Simple service to register as Windows Service, the program will log on a
 * file when it starts, ends and every 10 seconds it will log is alive state
 * 
 * 
 */
public class WindowsServiceTutorial {

 public static void main(String[] args) throws FileNotFoundException {

  
  
  
  /* Set the custom message to display */
  String customMessage = "default";
  if (args.length > 0) {
   customMessage = args[0];
  }
  /*
   * Set the standard output stream as on a log file
   */
  String pathname = "./log.txt";
  FileOutputStream out = new FileOutputStream(new File(pathname), true);
  PrintStream printStream = new PrintStream(out);
  System.setOut(printStream);

  /*
   * Add the shutdown hook
   */
  Runtime.getRuntime().addShutdownHook(new Thread(new ShutdownHook()));
  

  onStart();

  doWork(customMessage);
  
  
  
 }

 /**
  * Log the alive state of the service
  * 
  * @param customMessage
  *          A custom message
  */
 private static void doWork(String customMessage) {
  while (true) {
   try {
    Thread.sleep(10000);
   } catch (InterruptedException e) {
    System.out.println("Interrupted at " + new Date());
   }
   System.out.println("Alive at " + new Date() + " " + customMessage);
  }
 }

 /**
  * Log the boot of the service
  */
 private static void onStart() {
  System.out.println("Starts at " + new Date());
 }

 /**
  * A shutdown hook
  * 
  * 
  */
 private static class ShutdownHook implements Runnable {

  /*
   * (non-Javadoc)
   * 
   * @see java.lang.Runnable#run()
   */
  public void run() {
   onStop();
  }

  /**
   * Logs when the service is stopped
   */
  private void onStop() {
   System.out.println("Ends at " + new Date());
   System.out.flush();
   System.out.close();
  }

 }

}
After the jar is created and copied to %YOUR_FOLDER% we need a batch to starts the application, the %1 is the first parameter of the batch file.
@ECHO OFF
REM start.bat  code
java -jar  WindowsServiceTutorial.jar %1
Finally we can download the NSSM wrapper and type the command
nssm install WindowsServicetutorial
A window will be showed to enter the path of the application and the options to start it:
Opening the Service manager we will our service installed and ready to be started and stopped.
Opening the log.txt file generated we can read the following log:
 Starts at Tue Jan 22 15:28:15 CET 2013
 Alive at Tue Jan 22 15:28:25 CET 2013 servicemessage
 Alive at Tue Jan 22 15:28:35 CET 2013 servicemessage
 Alive at Tue Jan 22 15:28:45 CET 2013 servicemessage
 Alive at Tue Jan 22 15:28:55 CET 2013 servicemessage
 Alive at Tue Jan 22 15:29:05 CET 2013 servicemessage
 Alive at Tue Jan 22 15:29:15 CET 2013 servicemessage
 Ends at Tue Jan 22 15:29:16

Commenti

  1. the easy one!! Great job my friend

    RispondiElimina
  2. There are lots of information about latest technology and how to get trained in them, like Best Hadoop Training In Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies Hadoop Training in Chennai By the way you are running a great blog. Thanks for sharing this blogs..

    RispondiElimina
  3. I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    SalesForce Training in Chennai

    RispondiElimina
  4. Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision, keep sharing..
    Unix Training In Chennai

    RispondiElimina
  5. This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
    Android Training In Chennai In Chennai

    RispondiElimina
  6. SAP Training in Chennai
    This post is really nice and informative. The explanation given is really comprehensive and informative..

    RispondiElimina
  7. Oracle Training in chennai
    Thanks for sharing such a great information..Its really nice and informative..

    RispondiElimina
  8. Selenium Training in Chennai
    Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    RispondiElimina
  9. Data warehousing Training in Chennai
    I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly..

    RispondiElimina
  10. Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing..
    Websphere Training in Chennai

    RispondiElimina
  11. Oracle DBA Training in Chennai
    Thanks for sharing this informative blog. I did Oracle DBA Certification in Greens Technology at Adyar. This is really useful for me to make a bright career..

    RispondiElimina
  12. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
    Selenium Training in Chennai | QTP Training in Chennai

    RispondiElimina
  13. Thanks for Information Oracle Apps Technical is a collection of a bunch of collected applications like accounts payables, purchasing, inventory, accounts receivables, human resources, order management, general ledger and fixed assets, etc which have its own functionality for serving the business
    Oracle Apps Training In Chennai

    RispondiElimina
  14. Oracle Training in chennai | Oracle D2K Training In chennai
    This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

    RispondiElimina
  15. Wow, brilliant article on dot net training in Chennai that I was searching for. Helps us a lot in referring at my dot net training institutes in Chennai. Thanks a lot. Keep writing more on dot net training Chennai, would love to follow your posts and refer to others in dot net training institute in Chennai.

    RispondiElimina
  16. Nice Article! Mostly I have gathered knowledge from the blogger, because its provides more information over the books & here I can get more experienced skills from the professional, thanks for taking your to discussing this topic.
    Regards,
    sas training in Chennai|sas course in Chennai|sas training institute in Chennai

    RispondiElimina
  17. That is a brilliant article on dot net training in Chennai that I was searching for. Helps us a lot in referring at our dot net training institute in Chennai. Thanks a lot. Keep writing more on dot net course in Chennai, would love to follow your posts and refer to others in dot net training institutes in Chennai.

    RispondiElimina
  18. Wow! It was the best article , actually you have posted something useful than others, because I read many articles related to this basics of programming, but I only get impressed with your post only, keep posting.
    Regards,
    ccna course in Chennai|ccna training in Chennai|ccna training institute in Chennai

    RispondiElimina
  19. This blog is very interesting about the java application.
    Java Training ​in Chennai

    RispondiElimina
  20. Best SAS Training Institute In Chennai It’s too informative blog and I am getting conglomerations of info’s about Oracle interview questions and answer .Thanks for sharing, I would like to see your updates regularly so keep blogging.

    RispondiElimina
  21. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. The python programming language is very popular and most widely used.
    Python Training in Chennai | Python Course in Chennai

    RispondiElimina
  22. This blog is very interesting about the java application.
    qtp training in chennai

    RispondiElimina
  23. Thanks for sharing such a great information..Its really nice and informative..
    selenium training in chennai

    RispondiElimina
  24. Nice post!! Thanks for sharing. This is informative and really useful for me.

    Teradata Training in Delhi
    UG-NX Training Institute in Delhi

    RispondiElimina
  25. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    RispondiElimina
  26. Such a great articles in my carrier, It's wonderful commands like easiest understand words of knowledge in information's.
    Python Training in Chennai

    RispondiElimina

  27. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    Android App Development Company

    RispondiElimina
  28. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    RispondiElimina
  29. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    iOS App Development Company
    iOS App Development Company

    RispondiElimina
  30. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    <Fitness SMS
    Fitness Text
    Salon SMS
    Salon Text
    Investor Relation SMS
    Investor Relation Text
    Mobile Marketing Services
    mobile marketing companies
    Sms API

    RispondiElimina
  31. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    web design Company
    web development Company
    web design Company in chennai
    web development Company in chennai
    web design Company in India
    web development Company in India

    RispondiElimina
  32. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    RispondiElimina
  33. Excellent Post, Interesting Article.Indias Fastest Local Search Engine, you can Search Anything, From anywhere at any time CALL360

    RispondiElimina
  34. Learned a lot of new things from your post ,it is amazing blog Thanks for sharing


    Java Online Training

    RispondiElimina
  35. Nice,
    Blog has been shared by you. before i read this blog i didn't have any knowledge about this but now i got some knowledge so keep on sharing such kind of an interesting blogs.

    salesforce training classes online

    RispondiElimina
  36. This was an nice and amazing and the given contents were very useful and the precision has given here is good.
    AWS Training in Chennai

    RispondiElimina
  37. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
    digital marketing training in annanagar

    digital marketing training in marathahalli

    digital marketing training in rajajinagar

    Digital Marketing online training

    full stack developer training in pune

    RispondiElimina
  38. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    full stack developer training in annanagar

    full stack developer training in tambaram

    full stack developer training in velachery

    RispondiElimina
  39. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    python training institute in chennai
    python training in Bangalore
    python training institute in chennai

    RispondiElimina
  40. That was a great message in my carrier, and It's wonderful commands like mind relaxes with understand words of knowledge by information's.
    Blueprism training in Chennai

    Blueprism training in Bangalore

    Blueprism training in Pune

    RispondiElimina
  41. I think you have a long story to share and i am glad after long time finally you cam and shared your experience.

    Data Science training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune

    RispondiElimina
  42. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision. 
    java training in jayanagar | java training in electronic city

    java training in chennai | java training in USA

    RispondiElimina
  43. I am obliged to you for sharing this piece of information here and updating us with your resourceful guidance. Hope this might benefit many learners. Keep sharing this gainful articles and continue updating us.

    SEO Training in Chennai
    SEO Training
    SEO Course in Chennai
    SEO Training Institute in Chennai
    SEO training course

    RispondiElimina
  44. Thanks for making this guide and you have given such a clear breakdown of technology updates. I've seen so many articles, but definitely, this has been the best I?ve read!
    Selenium Training in Chennai
    selenium course
    iOS Course in Chennai
    iOS Training Chennai
    JAVA Training in Chennai
    JAVA Course in Chennai

    RispondiElimina
  45. Thank you sharing this kind of noteworthy information. Nice Post.

    Article submission sites

    Education

    RispondiElimina
  46. Good job in presenting the correct content with the clear explanation. The content looks real with valid information. Good Work

    DevOps is currently a popular model currently organizations all over the world moving towards to it. Your post gave a clear idea about knowing the DevOps model and its importance.

    Good to learn about DevOps at this time.


    devops training in chennai | devops training in chennai with placement | devops training in chennai omr | devops training in velachery | devops training in chennai tambaram | devops institutes in chennai | devops certification in chennai | trending technologies list 2018

    RispondiElimina
  47. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 

    rpa online training |
    rpa course in bangalore |
    rpa training in bangalore |
    rpa training institute in bangalore

    RispondiElimina
  48. Excellent blog, I wish to share your post with my folks circle. It’s really helped me a lot, so keep sharing post like this
    python course in pune | python course in chennai | python course in Bangalore

    RispondiElimina
  49. This is a good post. This post give truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. thank you so much. Keep up the good works.
    Software Testing Training in Chennai
    Android Training in Chennai
    Software Testing Courses in Chennai
    Software Training Institutes in Chennai
    Android training
    Android training near me

    RispondiElimina
  50. Questo commento è stato eliminato dall'autore.

    RispondiElimina
  51. Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
    online Python training | python training in chennai

    RispondiElimina
  52. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Devops Training courses
    Devops Training in Bangalore
    Best Devops Training in pune
    Devops interview questions and answers

    RispondiElimina
  53. Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
    Best Devops training in sholinganallur
    Devops training in velachery
    Devops training in annanagar
    Devops training in tambaram

    RispondiElimina
  54. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 

    angularjs Training in bangalore

    angularjs Training in btm

    angularjs Training in electronic-city

    angularjs online Training

    angularjs Training in marathahalli

    RispondiElimina
  55. Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.


    AWS Training in Velachery | Best AWS Course in Velachery,Chennai

    Best AWS Training in Chennai | AWS Training Institutes |Chennai,Velachery

    Amazon Web Services Training in Anna Nagar, Chennai |Best AWS Training in Anna Nagar, Chennai

    Amazon Web Services Training in OMR , Chennai | Best AWS Training in OMR,Chennai

    RispondiElimina
  56. Your post is really awesome. Your blog is really helpful for me to develop my skills in a right way. Thanks for sharing this unique information with us.
    - Digital Marketing course in Bangalore-Learn Digital Academy

    RispondiElimina
  57. My spouse and I love your blog and find almost all of your post’s to be just what I’m looking for.
    safety course in chennai

    RispondiElimina
  58. Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts
    industrial safety course in chennai

    RispondiElimina
  59. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    fire and safety course in chennai

    RispondiElimina
  60. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    Java training in Chennai

    Java training in Bangalore

    RispondiElimina
  61. Hi! The post you published is well-written and informative. It has more topic discussions which i want really. So helpful to me. Keep updating.
    Pyhton Training in Chennai
    Python Course in Chennai
    AWS Training in Chennai
    CCNA Training in Chennai
    German Language Course in Chennai
    German Courses in Chennai

    RispondiElimina
  62. This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.
    apple service center chennai
    apple service center in chennai
    apple mobile service centre in chennai
    apple service center near me


    RispondiElimina
  63. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information regarding Microsoft Azure which is latest and newest,

    Regards,
    Ramya

    azure training in chennai
    azure training center in chennai
    best azure training in chennai
    azure devops training in chenna
    azure training institute in chennai

    RispondiElimina
  64. Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
    Thanks & Regards,
    VRIT Professionals,
    No.1 Leading Web Designing Training Institute In Chennai.

    And also those who are looking for
    Web Designing Training Institute in Chennai
    SEO Training Institute in Chennai
    Photoshop Training Institute in Chennai
    PHP & Mysql Training Institute in Chennai
    Android Training Institute in Chennai

    RispondiElimina
  65. All are saying the same thing repeatedly, but in your blog I had a chance to get some useful and unique information, I love your writing style very much, I would like to suggest your blog in my dude circle, so keep on updates.

    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    RispondiElimina
  66. Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
    SEO company in coimbatore
    SEO Service in Coimbatore
    web design company in coimbatore

    RispondiElimina
  67. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information regarding Microsoft Azure which is latest and newest,

    Regards,
    Ramya

    Azure Training in Chennai
    Azure Training Center in Chennai
    Best Azure Training in Chennai
    Azure Devops Training in Chenna
    Azure Training Institute in Chennai
    Azure Training in Chennai OMR
    Azure Training in Chennai Velachery
    Azure Online Training
    Azure Training in Chennai Credo Systemz
    DevOps Training in Chennai Credo Systemz

    RispondiElimina
  68. Very nice post here thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.

    Check out : big data training in velachery
    big data hadoop training cost in chennai
    big data training in chennai omr
    big data training in chennai velachery

    RispondiElimina
  69. Nice and good post. This is a wonderful article, Given so much info in it, keep sharing.

    ExcelR Data Science

    RispondiElimina
  70. Attend The Python Training in Bangalore From ExcelR. Practical Python Training in Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python Training in Bangalore.

    RispondiElimina
  71. A great website with interesting and unique material what else would you need.
    Data Science Course in Pune

    RispondiElimina
  72. Si el agua cae al lago, desaparecerá( phụ kiện tủ bếp ). Pero si cae a la hoja de( phụ kiện tủ áo ) loto, brillará como una joya. Caer igual pero( thùng gạo thông minh ) estar con alguien es importante.

    RispondiElimina

  73. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.
    www.technewworld.in
    How to Start A blog 2019
    Eid AL ADHA

    RispondiElimina
  74. This is a decent post. This post gives genuinely quality data. I'm certainly going to investigate it. Actually quite valuable tips are given here. Much obliged to you to such an extent. Keep doing awesome. To know more information about
    Contact us :- https://www.login4ites.com/

    RispondiElimina
  75. It is brilliant substance. I for the most part visit numerous locales however your site has something unique highlights. I for the most part visit on your site. Best Seo Tips
    Contact us- https://myseokhazana.com

    RispondiElimina
  76. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    Java Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai

    RispondiElimina
  77. It’s very informative and you are obviously very knowledgeable in this area. You have opened my eyes to varying views on this topic with interesting and solid content.
    big data course malaysia

    RispondiElimina
  78. Very interesting, Wish to see much more like this. Thanks for sharing your information!
    Data science
    Learn Machine

    RispondiElimina
  79. Very interesting, Wish to see much more like this. Thanks for sharing your information!
    Data science
    Learn Machine

    RispondiElimina
  80. Nice! you are sharing such helpful and easy to understandable blog in decoration. i have no words for say i just say thanks because it is helpful for me.

    robotic process automation companies in us
    Robotic Process Automation in us
    machine maintanance in us
    erp in chennai
    mobility software companies in chennai
    erp providers in us

    RispondiElimina
  81. Thank you for providing the valuable information …

    If you want to connect with AI (Artificial Intelligence) World
    as like
    Python Training
    ML(Machine Learning)

    Course related more information then meet on EmergenTeck Training Institute .

    Thank you.!

    RispondiElimina
  82. Thank you for providing the valuable information …

    If you want to connect with AI (Artificial Intelligence) World
    as like
    Python Training
    ML(Machine Learning)

    Course related more information then meet on EmergenTeck Training Institute .

    Thank you.!

    RispondiElimina
  83. Thanks for sharing the valuable information here. So i think i got some useful information with this content. Thank you and please keep update like this informative details.


    erp software development company in us
    erp software company in us
    list of erp software companies in us
    erp in chennai
    list of erp software companies in chennai
    Latest CRM Software

    RispondiElimina
  84. MS Office is a software application, which can be used to makes your work easier and efficient. You can use the application of ms office and manage your data by using ms office, ms word, ms outlook, and ms powerpoint. If you need help, you can click on the link office.com/setup.

    RispondiElimina
  85. Questo commento è stato eliminato dall'autore.

    RispondiElimina
  86. HP Customer Service Number is the best available number for fixing all kind of HP products like printer, pc, scanners etc. issues around the clock across USA. We have a dedicated team of experts who provide assistance to all HP customers over phone call , chat and emails. So feel free to call at our HP tech support phone number 1-800-382-3046 for best service at a very minimum cost.

    RispondiElimina
  87. Thanks for sharing an information to us. If someone want to know about websites and SEO Service. I think this is the right place for you!
    Digital Marketing
    SEO company
    web-development
    Domain and Hosting

    RispondiElimina
  88. Really very happy to say,your post is very Awesome to read.I never stop myself to say something about it.You’re doing a Great job.keep it up
    www.bexteranutrition.com
    www.digital marketingfront.com
    designing info.in
    www.https://www.hindimei.net

    RispondiElimina
  89. Really very happy to say,your post is very Awesome to read.I never stop myself to say something about it.You’re doing a Great job.keep it up
    www.bexteranutrition.com
    www.digital marketingfront.com
    designing info.in
    www.https://www.hindimei.net

    RispondiElimina
  90. Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....

    software Providers
    erp software
    crm software
    best software company in chennai
    software company in india
    Top software company in chennai

    RispondiElimina
  91. Hi, thank you very much for new information, i learned something new. Very well written.It was so good to read and usefull to improve knowledge.Keep posting. If you are looking for any big data hadoop related information please visit our website.
    big data hadoop training in bangalore.

    RispondiElimina
  92. Office gives you the best involvement in your works. You can without much of a stretch do you work simple with the assistance of office
    application. It can gives you exceed expectations, word and PowerPoint so you can utilize it and makes your work simple


    Need Help Click Here. www.office.com/setup


    www.office.com/setup

    Get started Norton Setup with Product Key at norton.com/setup or call us toll-free number for instant support.

    www.norton.com/setup

    RispondiElimina
  93. Nice Post...I have learn some new information.thanks for sharing.
    Click here for ExcelR Business Analytics Course

    RispondiElimina
  94. Attend The Data Analytics Courses Online From ExcelR. Practical Data Analytics Courses Online Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analytics Courses Online.
    ExcelR Data Analytics Courses Online

    RispondiElimina
  95. if you are facing problem related to virus in your PC and computer.Norton AntiVirus Should be once bought Mac, i-OS, and Android.Norton Antivirus Basic provides Instantly download and receive your activation code to be protected in minutes!.if you have any query related to norton antivirus then contact us.

    www.norton.com/setup
    www.norton.com/setup
    www.office.com/setup
    www.office.com/setup

    RispondiElimina
  96. It is very useful information at my studies time, i really very impressed very well articles and worth information, i can remember more days that articles.

    catering services in chennai
    tasty catering services in chennai
    best catering services in chennai
    top catering services in chennai
    veg Catering services in chennai

    RispondiElimina
  97. Amazing blog, It helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live. Keep it up!!
    Machine Learning Course

    RispondiElimina
  98. For Data Science training in Bangalore, Visit:
    Data Science training in Bangalore

    RispondiElimina
  99. Click to learn more about Python training in Bangalore:- Python training in Bangalore

    RispondiElimina
  100. For Devops Training in Bangalore Visit: Devops Training in Bangalore

    RispondiElimina
  101. Thank you for providing this kind of useful information,I am searching for this kind of useful information; it is very useful to me and some other looking for it. It is very helpful to who are searching python Training.python training in bangalore

    RispondiElimina
  102. Very nice blog here and thanks for post it.. Keep blogging...
    ExcelR data science training

    RispondiElimina
  103. It is very good and useful for students and developer .Learned a lot of new things from your post!Good creation ,thanks for give a good information at AWS.aws training in bangalore

    RispondiElimina
  104. I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.devops training in bangalore

    RispondiElimina
  105. Download Or Install Office Setup Step 1. Go to www.office.com/setup - Sign in, 2nd. Enter product key, and 3rd. we can also help you with office.com/setup online.

    RispondiElimina
  106. This new office.com/setup will simply help its users to find the list of apps as well as services available to them. It also helps to install office locally. This new version is fast and easy to use. Here we are listing a few reasons to use this app.

    RispondiElimina
  107. General process of office.com/setup is already mentioned above, however from the starting till the last process of activating you may be face some technical issues.

    RispondiElimina
  108. Linking is very useful thing.you have really helped lots of people who visit blog and provide them use full information.python training in bangalore

    RispondiElimina
  109. Very useful and information content has been shared out here, Thanks for sharing it.selenium training in bangalore

    RispondiElimina
  110. A so visit office.com/setup and get the office setup online or email your issues on mentioned email id or chat with the experts using live chat window.

    RispondiElimina
  111. First, open the MS office setup website office.com/setup into your browser and sign in with your Microsoft Account. If you don't have an account then, in that case, create a new account and sign in with that.

    RispondiElimina
  112. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    workday studio online training

    RispondiElimina

Posta un commento

Post popolari in questo blog

Install Mysql JDBC Driver on WildFly 8.2

The tutorial explains how to install a jdbc driver on RedHat WildFly application server a module, in the sample will be used the mysql driver but the proposed steps can be applied to any other driver library Used technologies in the tutorial: Wild Fly 8.2.0.Final Mysql Connector 5.1.33 1. Create the jboss module Enter in the file path ${EAP_HOME}/modules/system/layers/base and create the directories com/mysql/driver/main . Into the folder main copy the driver library jar ( link ) and create a file module.xml as showed in the sample below <module xmlns="urn:jboss:module:1.3" name="com.mysql.driver"> <resources> <resource-root path="mysql-connector-java-5.1.33.jar" /> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> For an explanation about the meaning of the fields take a look

org.w3c.dom.Document convertion Utils

How to convert an InputStream to a Document? How to contert a Document to an InputStream? The snippet of code posted is an utility Java Class written in Java for org.w3c.dom.Document convertions, it supports: Document to String String to Document Document to InputStream InputStream to Document package org.gma.util; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.StringWriter; import java.io.Writer; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.apache.xml.serialize.OutputFormat; import org.apache.xml.serialize.XMLSerializer; import org.w3c.dom.Document; import org.xml.sax.SAXException; public class DocumentUtils { /** * Convert a document to an Inputstream * @param document the document to convert * @