The upside of this is that you don't need any special class loaders, all the classes required by the application are now packaged directly in the jar. The downside is that anything that used to live in META-INF folders in the third party libraries now get clobbered together in a single META-INF. Of course, anything that used to rub up against servlet APIs, web aplication contexts and the what not will also seemingly break.
After poking around for a bit, the executable war file seemed like the way to go since it avoided some of these pitfalls and has the following benefits:
- All third party jars can be packaged in a WEB-INF/lib
- Solid and true jetty-6 provides a stable foundation for running a quick embedded container to run the war (i.e. itself)
- All code written for a webapp can be immediately consumed
- Remotability for the tool is immediately available
- Once you open this pandora's box, wild-eyed ideas sprout up like the first executable war could take a list of wars as a command line arguments and deploy them all in itself.. "it's war files all the way down!"
Some notes on this evening's experiment:
- Jetty 8 has an 'orbit' file that Gradle doesn't yet handle gracefully. There were some workarounds online, but I wanted this at a one hour research task so jetty 6 it was..
- Tomcat 7 has a simple API for instantiating and running an embedded Tomcat, I just haven't gotten around to trying that out yet
- "Gradle as Jetty Runner", "Gradle as Tomcat Runner", or plain old Groovy command lines are all valid options for doing the same thing, but in this case I wanted 1 file, 1 command
- After so many years of Maven relaxation, it was kinda fun having direct control over build configuration primitives in the build file again and be able to use them in simple one liners
I have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteSpring online training Spring online training Spring Hibernate online training Spring Hibernate online training Java online training
spring training in chennai spring hibernate training in chennai
Excellent Blog very imperative good content, this article is useful to beginners and real time
ReplyDeleteemployees.Thank u for sharing...
Hadoop Training in Hyderabad
JAVA Training in Hyderabad
This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
ReplyDeletebest rpa training in bangalore
rpa training in bangalore
rpa course in bangalore
RPA training in bangalore
rpa training in chennai
rpa online training
Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
ReplyDeletePython training in bangalore
Python course in pune
Python training in bangalore
ReplyDeleteWhoa! 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 Bangalore | Best AWS Amazon Web Services…
Amazon Web Services Training in Pune India
AWS Online Training in India | AWS Training | AWS online training
AWS Training in Bangalore | Aws training in Bangalore with placements
An astounding web diary I visit this blog, it's inconceivably magnificent. Strangely, in this current blog's substance made point of fact and sensible. The substance of information is instructive.
ReplyDeleteOracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training
norton product key
ReplyDeletemcafee product key
Best AWS Training provided by Vepsun in Bangalore for the last 12 years. Our Trainer has more than 20+ Years
ReplyDeleteof IT Experience in teaching Virtualization and Cloud topics.. we are very delighted to say that Vepsun is
the Top AWS cloud training Provider in Bangalore. We provide the best atmosphere for our students to learn.
Our Trainers have great experience and are highly skilled in IT Professionals. AWS is an evolving cloud
computing platform provided by Amazon with a combination of IT services. It includes a mixture of
infrastructure as service and packaged software as service offerings and also automation. We have trained
more than 10000 students in AWS cloud and our trainer Sameer has been awarded as the best Citrix and Cloud
trainer in india.
Best Data science Training provided by Vepsun in Bangalore for the last 12 years. Our Trainer has more than 20+ Years
ReplyDeleteof IT Experience in teaching Virtualization and bootcamp topics.. we are very delighted to say that Vepsun is
the Top data science training Provider in Bangalore. We provide the best atmosphere for our students to learn.
Our Trainers have great experience and are highly skilled in IT Professionals. It includes a mixture of
infrastructure as service and packaged software as service offerings and also automation. We have trained
more than 10000 students in data science and our trainer has been awarded as the best Citrix and programming
trainer in india.
I truly like reading this article because it is really beneficial to us. It provides useful information.
ReplyDeleteOracle Fusion Financials Training