<div dir="ltr">Hi Tom,<div><br></div><div>That's an interesting idea. Let me check if I understood what you said. The subordinate WAR-charm will essentially be a place-holder for the .war file. The interface connecting the WAR-charm and the java container would enable the WAR-charm to say "I got this war file stored on this path". The java container (Tomcat,<span style="font-size:12.8px"> </span><span style="font-size:12.8px">Wildfly, Karaf etc</span>) would have to copy the file to the appropriate (container specific) directory and do whatever is needed to load it. What we gain is that the same WAR-charm would work with any java container. </div><div><br></div><div>It has been some time since I looked into JEE, but I think this approach would work for loading jars (EJBs) on any JEE container, right?</div><div><br></div><div>Cheers,</div><div>Konstantinos</div><div><br></div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 5, 2016 at 1:39 PM, Tom Barber <span dir="ltr"><<a href="mailto:tom@analytical-labs.com" target="_blank">tom@analytical-labs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Okay so here's one I wanted to know if it made sense to people or not now there are layers, interfaces etc.<div><br></div><div>Take Saiku or any other WAR based webapp. Currently our app is a Tomcat subordinate, which installs the WAR and a few other directories and just sed-s a few files to set some variables.
</div><div><br></div><div>In this land of layers and interfaces, does it make sense to have a webapp interface? I realise most of the current interfaces are for services and not file archives, but, if I deploy Tomcat, Wildfly, Karaf I know that (with a bit of tweaking) I can deploy a war to each of those and they should behave pretty much the same. So does it make sense to have an interface that lets me charm up my WAR file and then add a relation from WAR <-> J2EE Container so I can just link them together and have Juju place my WAR in the correct location?</div><div><br></div><div>That way you can deploy on multiple services without having to do much, if anything, to your code. </div><div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Tom</div></font></span></div>
<br>--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Konstantinos Tsakalozos</div></div>
</div>