<div dir="ltr"><div>Hi there,</div><div><br></div>I have some (probably not very positive) answers, but here goes. In general Seam 3 is &quot;as is&quot; and will not be patched, improved, or otherwise changed unless the client (or another community member) wishes to do so. On top of that, patches submitted will probably not be merged or released since the last release was over a year ago now at this point if I am not mistaken. You&#39;d have to find a committer who is willing to dredge this up again :) I&#39;m not saying it&#39;s impossible, but there will be some pretty serious barriers to getting improvements made.<div>
<br></div><div>Aside from that, I believe Seam 2 is still a supported Red Hat project (Seam 3 never made it that far.)<br><div><br></div><div>1) You can try your luck with upgrading to Seam 3, but know that would be upgrading your customer to a project that is officially cancelled and will not be continued. There are still quite a few known bugs that were never fixed. Errai is still actively developed and has a good community. JAX-RS is a standard, and will be around for a long time to come, so I would probably echo what was said on the list. That being said, there is good in Seam 3, and a lot of good work went into it, so if you are OK with the circumstances around this project, then I would say continue at your own risk, but you may find it works.</div>
<div><br></div><div>2) Look at the CDI conversation scope with JPA and an @PersistenceContext(type=EXTENDED) context. This is effectively the same thing as a Seam-Managed Hibernate Session, except it will not be closed and re-opened before/after RESTORE_VIEW phase. However, you can use EJB @TransactionAttribute methods to do your work in a transaction where required. (See this article for more info on that:&nbsp;<a href="http://ocpsoft.org/java/spring-to-java-ee-a-migration-guide-cdi-jsf-jpa-jta-ejb/">http://ocpsoft.org/java/spring-to-java-ee-a-migration-guide-cdi-jsf-jpa-jta-ejb/</a> (The article is about Spring, but many concepts are shared with Seam 2.)</div>
<div><br></div><div>3) There isn&#39;t really a good XML configuration mechanism in Java EE (other than the basic web.xml, persistence.xml, ejb-jar.xml, etc...) So I don&#39;t really have a good recommendation for you here.</div>
<div><br></div><div><b>New questions:</b></div><div>If you are looking for functionality to control Routing and Navigation, check out <a href="http://ocpsoft.org/rewrite/">http://ocpsoft.org/rewrite/</a> (with the rewrite-integration-faces module) or <a href="http://ocpsoft.org/prettyfaces/">http://ocpsoft.org/prettyfaces/</a>, which includes both of the former - either of these projects will give you access to several utility classes such as the &quot;Navigate&quot; class, and other things, but all said, JSF2 has much better support for navigation than JSF 1.2 did (which is what I guess you are using if the customer is still on JSF 2.2)</div>
<div><br></div><div>Here is an example of the user logged being redirected if not logged in:&nbsp;<a href="http://ocpsoft.org/rewrite/examples/#section-4">http://ocpsoft.org/rewrite/examples/#section-4</a></div><div><br></div>
<div>I hope this is helpful, but I do wish I had better news. I would really consider Errai or just plain Java EE with JAX-RS. I can&#39;t really recommend that anyone start using Seam 3 now, several years after its demise.</div>
<div><br></div><div>~Lincoln</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 12, 2014 at 10:00 PM, Jon Da Vault <span dir="ltr">&lt;<a href="mailto:jdavault@redhat.com" target="_blank">jdavault@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><div><span style="color:#ff0000"><span style="color:rgb(0,0,0)">Hello list members,</span><br>
</span></div><div><span style="color:#ff0000"><span><span style="color:rgb(0,0,0)"><br></span></span></span></div><div><span style="color:#ff0000"><span><span style="color:rgb(0,0,0)">Earlier today I posed a couple questions that did receive one response. The response has spawned a few more of my own questions and I have included the response in my conversation/further questions below. The original question is in red, and the response is also called-out and in red. The continuation question is in green. There are a couple new questions posed after the continued (green and red) question portion. Thanks for your help!<br>
</span></span></span></div><div><span style="color:#ff0000"><br></span></div><div><span style="color:#ff0000">1)</span> <span style="color:#ff0000">The customer makes extensive use of Seam 2 remoting for their banking security application. Is there an equivalent in CDI (Weld) that will allow them to continue using remoting? If not, what alternatives do we offer in it&#39;s place?</span><br>
<span style="color:#ff0000">Mailing List Response: You can take a look at Errai, or simply use JAX-RS.</span></div><div><span style="color:#003300">Q:&nbsp; Seam 3 appears to have it&#39;s own remoting functionality available much like Seam 2. URL: <span><span><span><span><a href="http://seamframework.org/Seam3/RemotingModule" target="_blank"><span style="color:#000000">http://seamframework.org/Seam3/RemotingModule<span style="color:#000000"><span style="color:#003300"></span></span></span></a></span></span></span></span></span><br>
</div><div><span style="color:#003300">As you&#39;ll note, there is a large disclaimer stating that active development for the project is halted and that the project is also deprecated. However, I feel that if the customer moves from Seam 2 remoting to Seam 3 remoting they will incur a smaller amount of work than if they were to consider adopting a new technology such as Errai or JAX-RS as you&#39;ve suggested as best cases. While they are interested in adopting a better or more appropriate technology for their application, they still want to rapidly make the move to Seam 3/Solder/CDI/Weld in the meantime and I think this sets them up nicely for migrating the rest of the technologies over. What the customer is extremely interested in knowing is if these technologies now sitting as-is (3.1 Snapshot I believe) can be said to be categorically stable and functional currently for this sort of temporary use case with full knowledge they aren&#39;t supported moving forward? If so, are there any migration documents available? If no migration documents are available, do you have anywhere you can point me in order to get a head start on creating one myself for our client? Do you agree with this short-term-win approach?</span></div>
<div><br></div><div><span style="color:#ff0000">2) The customer currently uses Seam-managed Hibernate Sessions: he guesses they are not supported in CDI and wishes to know what is the best way to go moving forward? For example, something that is more conforming to JPA2 was mentioned.</span><span style="color:#ff0000"><br>
<span style="color:#ff0000">Mailing List Response</span>: Moving to a more standard JPA environment would be best</span></div><div><span style="color:#ff0000"><span style="color:#003300">Q: Here again, there seems to be a Seam 3 persistence module available as before and I wonder if the customer could utilize this in the short term while preparing for an adoption of a new persistence technology lsuch as, say, just Hibernate? The URL I&#39;m referencing is: <span><span><span><span></span></span></span></span><a href="http://seamframework.org/Seam3/PersistenceModule" target="_blank">http://seamframework.org/Seam3/PersistenceModule</a></span><br>
</span></div><div><span style="color:#ff0000"><span style="color:#003300"><br></span></span></div><div><span style="color:rgb(255,0,0)"><span style="color:rgb(255,0,0)">3) Given that components.xml is a large part of their implementation in Seam2, how can we break it up to conform with CDI/Weld/Seam3?</span></span><span style="color:rgb(255,0,0)"><span color="#ff0000"><br>
</span></span><span style="color:#ff0000"><span style="color:#ff0000"><span style="color:#003300"></span></span></span><div><span style="color:rgb(255,0,0)">Mailing List Response: All depends on what is in their components.xml, there&#39;s no simple answer here.</span></div>
<div><span style="color:rgb(255,0,0)"><span style="color:rgb(0,51,0)">Q: I agree with this response. I do, however, have a snapshot of the components.xml and I know that it needs to be broken up into a few different places. Does anyone have experience in doing this? Please reply and I will send you the components.xml document if you&#39;d like to assist in helping me to map the pieces to the appropriate places. If there&#39;s sufficient documentation online, as always, please direct me to it.</span><br>
</span></div><span style="color:#ff0000"><span style="color:#003300"><br></span></span></div><div><span style="color:#ff0000"><span style="color:#003300">&nbsp;</span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">Lastly, if you&#39;re not tired of reading my questions yet there are a couple new ones below:</span></span></span></div>
<div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"><br><strong>First new question:</strong> &quot;There used to be a class in Seam 2 called org.jboss.seam.faces.Redirect.&nbsp;&nbsp; We use this a few times to force a redirect in different cases.</span></span></span></div>
<div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"> </span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"><br></span></span></span></div>
<div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">for example:<br><br>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When user enters a valid URL but is not yet logged on;&nbsp; view is captured and user returned to it after successful logon.<br>
<br>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When we detect that a user is no longer logged on;&nbsp; we redirect to a &ldquo;Logon expired page&rdquo;<br><br>So, the question is:&nbsp;&nbsp; What do I replace this with?&nbsp;&nbsp; I looked in Seam 3 but it doesn&rsquo;t appear to have been implemented (at least not in the seam-faces jar).&quot;</span></span></span></div>
<div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">&nbsp;</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"><strong>Second new question:</strong> Regarding their current usage of Seam 2 &quot;We use the class org.jboss.seam.async.Dispatcher to create long running threads in the container.&nbsp;&nbsp; Can you tell me what I should use instead?&quot;<br>
</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">&nbsp;</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">Again, if there are any documents or web sites that deal with these questions specifically regarding migration I would greatly appreciate having them sent to me.<br>
</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">&nbsp;</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">Thank You,<br>
</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"><br></span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">Jon Da Vault<br>
</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000">Consultant<br></span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"><a href="tel:206.369.2304" value="+12063692304" target="_blank">206.369.2304</a><br>
</span></span></span></div><div><span style="color:#ff0000"><span style="color:#003300"><span style="color:#000000"><br></span></span></span></div></div></div></div><br>_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
&quot;Simpler is better.&quot;
</div>