<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for solutionsfit.com | Jacob Orshalick</title>
	<link>http://solutionsfit.com/blog</link>
	<description>Blog by a developer for a developer</description>
	<pubDate>Sat, 13 Mar 2010 16:59:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>Comment on Managing Environment Specific Configuration with Seam by jacob.orshalick</title>
		<link>http://solutionsfit.com/blog/2008/06/17/managing-environment-specific-configuration-with-seam/#comment-19833</link>
		<dc:creator>jacob.orshalick</dc:creator>
		<pubDate>Fri, 12 Mar 2010 17:08:52 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2008/06/17/managing-environment-specific-configuration-with-seam/#comment-19833</guid>
		<description>Awesome, thanks for posting that here Maciej!  I would recommend creating a JIRA issue for adding this to Seam.  It would be a great component to make it easy for people to incorporate reCaptcha.</description>
		<content:encoded><![CDATA[<p>Awesome, thanks for posting that here Maciej!  I would recommend creating a JIRA issue for adding this to Seam.  It would be a great component to make it easy for people to incorporate reCaptcha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Managing Environment Specific Configuration with Seam by Maciej</title>
		<link>http://solutionsfit.com/blog/2008/06/17/managing-environment-specific-configuration-with-seam/#comment-19828</link>
		<dc:creator>Maciej</dc:creator>
		<pubDate>Fri, 12 Mar 2010 13:12:54 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2008/06/17/managing-environment-specific-configuration-with-seam/#comment-19828</guid>
		<description>I am also a great fun of reCaptcha project and Jboss seam, so I tried to integrate them both. I described how to do this in a short &lt;a href="http://www.info-system.eu/bazawiedzy/37-java/86-integrate-seam-with-recaptcha" title="recaptcha and seam integration" rel="nofollow"&gt;article &lt;/a&gt;. Task is not that difficult, but maybe someone will save time, by copy-pasting my code :). Please place your comments to the article here.</description>
		<content:encoded><![CDATA[<p>I am also a great fun of reCaptcha project and Jboss seam, so I tried to integrate them both. I described how to do this in a short <a href="http://www.info-system.eu/bazawiedzy/37-java/86-integrate-seam-with-recaptcha" title="recaptcha and seam integration" rel="nofollow">article </a>. Task is not that difficult, but maybe someone will save time, by copy-pasting my code :). Please place your comments to the article here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting the conversation-timeout in Seam, why it really does work by jacob.orshalick</title>
		<link>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-16019</link>
		<dc:creator>jacob.orshalick</dc:creator>
		<pubDate>Tue, 24 Nov 2009 18:28:42 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-16019</guid>
		<description>&lt;blockquote cite="John"&gt;As you’ve mentioned above, the event org.jboss.seam.conversationTimeout allows me to get the conversation being timed out. This means that the conversation scoped component is already destroyed…&lt;/blockquote&gt;
No, not yet.  Actually the event is fired just before the conversation context is destroyed which means if you can get a handle to the object, you can perform any necessary operations.

Just looking through the details of it, it's not that easy to get a handle to the object in the conversation being timed out.  You have the details you need to do it (the cid), but it's not trivial to pull an object from another conversation.  If you decide to go this route, take a look at how the &lt;code&gt;Contexts.destroyConversationContext()&lt;/code&gt; method temporarily retrieves a conversation context.  I haven't tested this, but I believe this should work for your needs.

Another option may be to annotate a method on the component to perform this cleanup as &lt;code&gt;@Destroy&lt;/code&gt;.  Since you want the cleanup to only occur on timeout, you could set an EVENT scoped variable that indicates a conversation timeout occurred for a particular cid:

&lt;code&gt;
@Observer(Manager.EVENT_CONVERSATION_TIMEOUT)
public void markTimeoutEvent(String cid)
{
  Contexts.getEventContext().set("conversationTimeout", cid);
}
&lt;/code&gt;

The disadvantage to this approach is that the component would need to know the id of the conversation it was created within to determine whether or not to act on this.</description>
		<content:encoded><![CDATA[<blockquote cite="John"><p>As you’ve mentioned above, the event org.jboss.seam.conversationTimeout allows me to get the conversation being timed out. This means that the conversation scoped component is already destroyed…</p></blockquote>
<p>No, not yet.  Actually the event is fired just before the conversation context is destroyed which means if you can get a handle to the object, you can perform any necessary operations.</p>
<p>Just looking through the details of it, it&#8217;s not that easy to get a handle to the object in the conversation being timed out.  You have the details you need to do it (the cid), but it&#8217;s not trivial to pull an object from another conversation.  If you decide to go this route, take a look at how the <code>Contexts.destroyConversationContext()</code> method temporarily retrieves a conversation context.  I haven&#8217;t tested this, but I believe this should work for your needs.</p>
<p>Another option may be to annotate a method on the component to perform this cleanup as <code>@Destroy</code>.  Since you want the cleanup to only occur on timeout, you could set an EVENT scoped variable that indicates a conversation timeout occurred for a particular cid:</p>
<p><code><br />
@Observer(Manager.EVENT_CONVERSATION_TIMEOUT)<br />
public void markTimeoutEvent(String cid)<br />
{<br />
  Contexts.getEventContext().set("conversationTimeout", cid);<br />
}<br />
</code></p>
<p>The disadvantage to this approach is that the component would need to know the id of the conversation it was created within to determine whether or not to act on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting the conversation-timeout in Seam, why it really does work by John</title>
		<link>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-16015</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 24 Nov 2009 16:11:02 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-16015</guid>
		<description>Hi again,

Thanks for the answer.

However, this does not allow me to get the conversation scoped component
so that I do some clean up (to remove a remote SFSB).

As you've mentioned above, the event org.jboss.seam.conversationTimeout allows me to get the conversation being timed out. This means that the conversation scoped component is already destroyed...

Is it possible to intercept the removal of a conversation scoped component just before its destruction because of a timeout ?

Thanks in advance,</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>Thanks for the answer.</p>
<p>However, this does not allow me to get the conversation scoped component<br />
so that I do some clean up (to remove a remote SFSB).</p>
<p>As you&#8217;ve mentioned above, the event org.jboss.seam.conversationTimeout allows me to get the conversation being timed out. This means that the conversation scoped component is already destroyed&#8230;</p>
<p>Is it possible to intercept the removal of a conversation scoped component just before its destruction because of a timeout ?</p>
<p>Thanks in advance,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting the conversation-timeout in Seam, why it really does work by jacob.orshalick</title>
		<link>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-16014</link>
		<dc:creator>jacob.orshalick</dc:creator>
		<pubDate>Tue, 24 Nov 2009 15:36:40 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-16014</guid>
		<description>Hi John,

You can always observe the event:

&lt;code&gt;org.jboss.seam.conversationTimeout&lt;/code&gt;

The ID of the conversation being timed out is also provided as an optional parameter.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>You can always observe the event:</p>
<p><code>org.jboss.seam.conversationTimeout</code></p>
<p>The ID of the conversation being timed out is also provided as an optional parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting the conversation-timeout in Seam, why it really does work by john</title>
		<link>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-15989</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 23 Nov 2009 17:16:18 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2007/12/13/explaining-the-conversation-timeout-setting-through-example/#comment-15989</guid>
		<description>Hi Jackob,

I have a simple question about conversation timeout:

Given that I have a conversational POJO component,
Is it possible to intercept timeout event of the conversation
into which my component lives ?

I need this to call some cleanup on the component itself.

thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi Jackob,</p>
<p>I have a simple question about conversation timeout:</p>
<p>Given that I have a conversational POJO component,<br />
Is it possible to intercept timeout event of the conversation<br />
into which my component lives ?</p>
<p>I need this to call some cleanup on the component itself.</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Extending query by example through annotation by Coralie</title>
		<link>http://solutionsfit.com/blog/2007/12/04/extending-query-by-example-through-annotation/#comment-14541</link>
		<dc:creator>Coralie</dc:creator>
		<pubDate>Thu, 22 Oct 2009 08:03:22 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2007/12/04/extending-query-by-example-through-annotation/#comment-14541</guid>
		<description>I am also interested on getting the source code. I have a doubt on performance of such a system.</description>
		<content:encoded><![CDATA[<p>I am also interested on getting the source code. I have a doubt on performance of such a system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Session expired messages using Seam security by snowhite</title>
		<link>http://solutionsfit.com/blog/2007/11/16/session-expired-messages-using-seam-security/#comment-14047</link>
		<dc:creator>snowhite</dc:creator>
		<pubDate>Tue, 06 Oct 2009 18:02:03 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2007/11/16/session-expired-messages-using-seam-security/#comment-14047</guid>
		<description>Hi Jacob,

I found this article of yours very helpful. However when I try to implement the same, I am getting "session expired" message when user tries to log in for the first time into the application. After logging in, once the session expires, I am getting the session expired message as desired. Is there anything I need to do to see "session expired" message not appear when user logs into application.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Jacob,</p>
<p>I found this article of yours very helpful. However when I try to implement the same, I am getting &#8220;session expired&#8221; message when user tries to log in for the first time into the application. After logging in, once the session expires, I am getting the session expired message as desired. Is there anything I need to do to see &#8220;session expired&#8221; message not appear when user logs into application.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Second-level caching: Still an effective performance tuning technique by Val</title>
		<link>http://solutionsfit.com/blog/2009/04/06/second-level-caching-still-an-effective-performance-tuning-technique/#comment-14035</link>
		<dc:creator>Val</dc:creator>
		<pubDate>Mon, 05 Oct 2009 18:31:47 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2009/04/06/second-level-caching-still-an-effective-performance-tuning-technique/#comment-14035</guid>
		<description>Good post...

What will be the best practice with-in seam framework, will L2 cache, Named query help..

&lt;b&gt;Scenario :&lt;/b&gt;
We are sending Ajax request (using suggestionBox) to &lt;b&gt;fetch itemNames when user enters text.&lt;/b&gt;
We have list of approximately 5000 item names, corresponding entity is Item.

What will be the best practice option to get list of itemNames on the basis of text entered in suggestion box by user (we want to query result only for the text entered)

a) Define framework:entity-query in components.xml, call this to fetch itemNames when user enters text.

b) Use built-in ejbql in corresponding itemList.java (default generated by seam) 
@Override
public String getEjbql() {
  return "select item from Item item";
}

c) Create separate query using enityManager in some bean class, add where clause passing the text entered by user.
public List getItemsList(String itemName) { 
  List itemLst = entityManager.createQuery("select item from Item item.... where 
      item.itemName=").getResultList();
  return itemLst;
}</description>
		<content:encoded><![CDATA[<p>Good post&#8230;</p>
<p>What will be the best practice with-in seam framework, will L2 cache, Named query help..</p>
<p><b>Scenario :</b><br />
We are sending Ajax request (using suggestionBox) to <b>fetch itemNames when user enters text.</b><br />
We have list of approximately 5000 item names, corresponding entity is Item.</p>
<p>What will be the best practice option to get list of itemNames on the basis of text entered in suggestion box by user (we want to query result only for the text entered)</p>
<p>a) Define framework:entity-query in components.xml, call this to fetch itemNames when user enters text.</p>
<p>b) Use built-in ejbql in corresponding itemList.java (default generated by seam)<br />
@Override<br />
public String getEjbql() {<br />
  return &#8220;select item from Item item&#8221;;<br />
}</p>
<p>c) Create separate query using enityManager in some bean class, add where clause passing the text entered by user.<br />
public List getItemsList(String itemName) {<br />
  List itemLst = entityManager.createQuery(&#8221;select item from Item item&#8230;. where<br />
      item.itemName=&#8221;).getResultList();<br />
  return itemLst;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generating Namespaces and schemas for your Seam components by Ron Pomeroy</title>
		<link>http://solutionsfit.com/blog/2008/01/08/generating-namespaces-and-schemas-for-your-seam-components/#comment-13989</link>
		<dc:creator>Ron Pomeroy</dc:creator>
		<pubDate>Fri, 02 Oct 2009 21:16:14 +0000</pubDate>
		<guid>http://solutionsfit.com/blog/2008/01/08/generating-namespaces-and-schemas-for-your-seam-components/#comment-13989</guid>
		<description>This example really "saved my bacon".  I'm not 100% sure I know the correct way to model (in schema) components that have collection/array fields. 

Can you extend your template above to show how to model the following:

&lt;code&gt;
class Custom {
  String[] ids;
  AnotherClass[] entries;
}
&lt;/code&gt;

I'm reasonably schema savvy but complex content models combined with various model groups and all the possible variations in between really gets hairy for me.

Thanks,

Ron</description>
		<content:encoded><![CDATA[<p>This example really &#8220;saved my bacon&#8221;.  I&#8217;m not 100% sure I know the correct way to model (in schema) components that have collection/array fields. </p>
<p>Can you extend your template above to show how to model the following:</p>
<p><code><br />
class Custom {<br />
  String[] ids;<br />
  AnotherClass[] entries;<br />
}<br />
</code></p>
<p>I&#8217;m reasonably schema savvy but complex content models combined with various model groups and all the possible variations in between really gets hairy for me.</p>
<p>Thanks,</p>
<p>Ron</p>
]]></content:encoded>
	</item>
</channel>
</rss>
