[09:57:24 CDT(-0500)] <serac> Eric – got a couple min to talk about Jasig EC2 instance?
[12:52:36 CDT(-0500)] <beav_> Is there anyone available to help with a spring-tx issue?
[13:00:29 CDT(-0500)] <serac> I'll try. Looks like a lot of back and forth with you on Scott on the list without much movement.
[13:08:32 CDT(-0500)] <beav_> Essentailly I am trying to have the services persist via a mysql database. Is this the only method for services persistence or is there another method that I am missing?
[13:09:32 CDT(-0500)] <serac> There's an LDAP impl, but that's probably more work.
[13:10:04 CDT(-0500)] <serac> If you don't care about the GUI, which is to say services don't change often, you can always specify them in the Spring context XML.
[13:10:16 CDT(-0500)] <serac> (But then changes via the GUI are ephemeral.)
[13:11:30 CDT(-0500)] <beav_> Gotcha - ok - I will try the Spring context xml. Could you direct me to the exact name of the file?
[13:12:40 CDT(-0500)] <serac> It's the following entry in deployerConfigContex.xml:
[13:12:41 CDT(-0500)] <serac> <bean
[13:12:41 CDT(-0500)] <serac> id="serviceRegistryDao"
[13:12:41 CDT(-0500)] <serac> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">
[13:14:02 CDT(-0500)] <beav_> So to specify them directly in the file the syntax would look like?
[13:14:44 CDT(-0500)] <serac> There are several entries in the file provided with the source, so that should be a good template.
[13:15:20 CDT(-0500)] <serac> https://source.jasig.org/cas3/branches/cas-3_4_x_maintenance/cas-server-3.4.2/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml
[13:15:22 CDT(-0500)] <beav_> Ok I will have a gander. Thanks for the suggestion.
[13:15:40 CDT(-0500)] <serac> The most important attribute is the following:
[13:15:41 CDT(-0500)] <serac> <property name="serviceId" value="http://**" />
[13:15:55 CDT(-0500)] <serac> That's an ant pattern expression, not a regex.
[13:16:24 CDT(-0500)] <serac> A more complex pattern:
[13:16:25 CDT(-0500)] <serac> https://*.cns.vt.edu:*/**
[13:16:41 CDT(-0500)] <serac> Allow any host in the DNS namespace cns.vt.edu, on any port, with any path.
[13:17:37 CDT(-0500)] <beav_> I am guessing this is how most folks solve the service persistence issue?
[13:17:43 CDT(-0500)] <serac> Nope.
[13:17:49 CDT(-0500)] <serac> Most folks use a database+gui.
[13:18:11 CDT(-0500)] <serac> I guess I don't know this for certain, but I believe that's the common case.
[13:18:12 CDT(-0500)] <beav_> It must be me then. :o)
[13:18:29 CDT(-0500)] <serac> You've got a weird issue for certain.
[13:18:49 CDT(-0500)] <serac> Still have a working overlay?
[13:18:56 CDT(-0500)] <beav_> I must be doing something wrong - however being new to all this I have issues figuring out what.
[13:19:26 CDT(-0500)] <beav_> When you say overlay you mean deployable/functioning WAR file that I have built from Maven?
[13:19:46 CDT(-0500)] <serac> Not necessarily functioning, but functioning overlay.
[13:20:12 CDT(-0500)] <beav_> I am still unsure what you mean by overlay. :o)
[13:20:19 CDT(-0500)] <serac> Yeah, that's what I'm guessing.
[13:20:45 CDT(-0500)] <serac> Check out https://svn.middleware.vt.edu/svn/middleware/cas/cas-server/tags/cas-server-3.4.8/ for a working example, albeit complex.
[13:21:06 CDT(-0500)] <beav_> Is overlay difficult to define? This is a sincere question.
[13:21:09 CDT(-0500)] <serac> A true overlay doesn't touch the orignal source.
[13:21:18 CDT(-0500)] <serac> It's not.
[13:21:45 CDT(-0500)] <serac> It's a project that simply redefines existing files in a WAR package, and optionally adds additional components.
[13:21:49 CDT(-0500)] <serac> The example I cited does both.
[13:22:07 CDT(-0500)] <serac> If you're editing source in the CAS tarball you downloaded, you don't have an overlay.
[13:22:47 CDT(-0500)] <serac> The hallmark of an overlay is that it has a maven groupId and artifactId distinct from the WAR it overlays.
[13:23:04 CDT(-0500)] <serac> That's actually a vitally important point that I don't know we really explain anywhere.
[13:23:45 CDT(-0500)] <beav_> I think I am beginning to understand what you mean.
[13:24:16 CDT(-0500)] <beav_> Is there a good book for beginners like me - one that would explain such core concepts and allow one to become more productive?
[13:24:20 CDT(-0500)] <serac> There's a learning curve here for sysadmins trying to grok mvn.
[13:24:55 CDT(-0500)] <serac> The maven docs are a good start.
[13:25:07 CDT(-0500)] <serac> Some specific items of interest, in order you should consume:
[13:25:56 CDT(-0500)] <serac> 1. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
[13:26:17 CDT(-0500)] <serac> Well, guess you need a zeroth item, http://maven.apache.org/what-is-maven.html.
[13:26:24 CDT(-0500)] <serac> Start with that one actually.
[13:26:31 CDT(-0500)] <serac> 2. http://maven.apache.org/plugins/maven-war-plugin/overlays.html
[13:28:09 CDT(-0500)] <beav_> This is exactly the direction I need. Thank you so much.
[13:28:30 CDT(-0500)] <serac> Whew.
[13:28:36 CDT(-0500)] <serac> Sorry we didn't get there sooner.
[13:28:48 CDT(-0500)] <beav_> One last question: Where do I find (or how do I build) this Uber WAR file that Scott was talking about on the list-serv?
[13:30:59 CDT(-0500)] <serac> Download the tarball from http://downloads.jasig.org/cas/, extract, and it comes prebuilt in the modules directory.
[13:31:22 CDT(-0500)] <serac> I've never used that component (it's fairly new).
[13:31:46 CDT(-0500)] <serac> But it's my understanding you'd still need an overlay to configure environment resources like the JDBC data source.
[13:31:58 CDT(-0500)] <beav_> Gotcha.
[13:33:07 CDT(-0500)] <beav_> I really want to use the product/project. My boss wants to purchase the IBM Tivoli Access Manager for E-bidness.
[13:33:24 CDT(-0500)] <serac> I really want to help you choose CAS.
General
Content
Integrations