Oh, and you can upgrade your JSF 2 libraries in JBoss AS 5 by using the following Maven project:<br><br>modules/jsf-updater-tool<br><br>You just type:<br><br>mvn<br><br>This is sort of an experiment in how we can use Maven to do utility tasks. I like it so far.<br>
<br>-Dan<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 10:59 PM, Dan Allen <span dir="ltr"><<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Good news, I restructured the booking example into a 3 module reactor project (ejb, war, ear) to build out an EAR deployable...and it actually deploys. So far, you can use the hotel search. PLEASE feel free to suggest refactorings. I'm just getting into the Web Beans programming model here.<br>
<br>The booking project lays down a standard for Seam 3 examples. I will of course port ideas back and forth between Seam and Web Beans as we learn more about Maven and how we want to set things up.<br><br>One of the minor, but nice advances I made is that I was able to use Maven project properties to minimize the repeated elements in each pom.xml. Just check it out to see what I am talking about.<br>
<br>Even cooler news was that I figured out how to build out an EAR for JBoss AS complete with the data source embedded within it. This simplifies the deployment, since you don't have to hang the -ds.xml file out adjacent to the deployable and it allows Maven to do all the work without any hacks. I even discovered that the jboss maven plugin does a pretty decent job of deploying to JBoss. It doesn't do an exploded archive yet, but for examples most people focus more on just a one-time deployment. I haven't plunged into Cargo yet. I might dabble in it later.<br>
<br>I ran into one hangup that caused me to lose a couple of hours. If you use the typical loader-repository setting in jboss-app.xml, it breaks injection in Web Beans. I don't really understand why, or why the loader-repository is really needed anymore, so I just made a note in the pom.xml not to use it.<br>
<br>Long story short, you can deploy booking. But you will need to have Web Beans and JSF 2 SVN deployed to JBoss AS 5. That's all for now ;)<div><div></div><div class="h5"><br><br>-Dan<br><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
<br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan" target="_blank">http://in.relation.to/Bloggers/Dan</a><br>
<br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don't hear back for more than a week,<br>
it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>you feel that it did not reach my attention.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>
from my email. If you contact me, but don't hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>
you feel that it did not reach my attention.<br>