<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Dobesland - Latest Comments</title><link>http://dobesland.disqus.com/</link><description>Dobes Vandermeer's blog - software engineering, java programming, enlightenment</description><atom:link href="https://dobesland.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 19 Oct 2009 16:17:36 -0000</lastBuildDate><item><title>Re: GWT using a Stateful EJB in the HTTP Session via a Servlet | Dobesland</title><link>http://www.dobesland.com/2007/07/22/gwt-using-a-stateful-ejb-in-the-http-session-via-a-servlet/#comment-20531946</link><description>&lt;p&gt;En el servidor RCP&lt;br&gt;public class ServiceSessionImpl extends RemoteServiceServlet implements ServiceSession {&lt;br&gt;private static String strVersion = "ServiceSessionImpl";&lt;/p&gt;&lt;p&gt;private Usuario usuarioObj = new Usuario();&lt;br&gt;private UsuarioDao objUserDao = new UsuarioDao();&lt;/p&gt;&lt;p&gt;    public Usuario getUser() {&lt;br&gt;    usuarioObj = new Usuario("loginprueba","passprueba",true);&lt;br&gt;    //usuarioObj = objUserDao.getPruebaDato(String Sql);&lt;br&gt;        HttpServletRequest httpSession = this.getThreadLocalRequest();&lt;br&gt;        HttpSession session = httpSession.getSession();&lt;br&gt;        session.setAttribute("usuario",usuarioObj);&lt;br&gt;        Usuario usua = (Usuario) session.getAttribute("usuario");&lt;br&gt;        return usua;&lt;br&gt;    }&lt;br&gt;........&lt;br&gt;}&lt;/p&gt;&lt;p&gt;public interface ServiceSession extends RemoteService {&lt;br&gt;public static final String SERVICE_URI = "servicesession";&lt;/p&gt;&lt;p&gt;public static class Util {&lt;/p&gt;&lt;p&gt;public static ServiceSessionAsync getInstance() {&lt;/p&gt;&lt;p&gt;return GWT.create(ServiceSession.class);&lt;br&gt;}&lt;br&gt;}&lt;/p&gt;&lt;p&gt;    public Usuario getUser();&lt;br&gt;......&lt;br&gt;}&lt;/p&gt;&lt;p&gt;public interface ServiceSessionAsync {&lt;br&gt;    public void getUser(AsyncCallback&amp;lt;usuario&amp;gt; callback);&lt;/p&gt;&lt;p&gt;...&lt;br&gt;}&lt;/p&gt;&lt;p&gt;El el cliente le llamo asi&lt;/p&gt;&lt;p&gt;public class Bprueba  extends CPanel {&lt;/p&gt;&lt;p&gt;/* (non-Javadoc)&lt;br&gt;* @see ISO_OLADE.client.CPanel getViewPanel()&lt;br&gt;*/&lt;br&gt;   public String getSourceUrl() {  &lt;br&gt;              return "source/grid/LocalPagingSample.java.html";  &lt;br&gt;          }&lt;/p&gt;&lt;p&gt;  public Panel getViewPanel() {  &lt;br&gt;      Panel panel = new Panel(); &lt;br&gt;              panel.setBorder(false); &lt;br&gt;              panel.setPaddings(15); &lt;br&gt;              panel.setTitle("Lugar");&lt;/p&gt;&lt;p&gt;              ServiceSessionAsync service = (ServiceSessionAsync) GWT.create(ServiceSession.class);&lt;br&gt;              ((ServiceDefTarget) service).setServiceEntryPoint(GWT.getModuleBaseURL() + "servicesession");&lt;br&gt;              AsyncCallback callback = new AsyncCallback()&lt;br&gt;              {&lt;br&gt;                 public void onSuccess(Object result)&lt;br&gt;                 {&lt;br&gt;                Usuario user=new Usuario();&lt;br&gt;                user=(Usuario)result;&lt;br&gt;                     System.out.println("onSuccess = Usuario return del RPC"+user.getSNombre());&lt;br&gt;                 }&lt;br&gt;                 public void onFailure(final Throwable caught)&lt;br&gt;                 {&lt;br&gt;                System.out.println("Failure=Usuario return del RPC");&lt;/p&gt;&lt;p&gt;                 }&lt;br&gt;              };&lt;br&gt;              service.getUser(callback);&lt;/p&gt;&lt;p&gt;              return panel;&lt;br&gt;           }&lt;/p&gt;&lt;p&gt;Una vez que ejecuto en el cliente hostemode me devuelve "onSuccess = Usuario return del RPCpassprueba" que es correcto pero  mi problema&lt;br&gt;es como poder usar el Object result que devuelve el RCP en las otras paginas del cliente sin necesidad de volver a llamar al service.getUser(callback); en realidad hacer uso del&lt;br&gt;HttpSession session = httpSession.getSession(); que se creo en la clase ServiceSessionImpl&lt;/p&gt;&lt;p&gt;Espero que me puedas ayudar &lt;br&gt;Mil gracias&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Targe</dc:creator><pubDate>Mon, 19 Oct 2009 16:17:36 -0000</pubDate></item><item><title>Re: GWT: Using source-path to create your own JRE emulation classes | Dobesland</title><link>http://www.dobesland.com/2008/08/15/howto-using-source-path-to-create-your-own-jre-emulation-classes/#comment-20149859</link><description>&lt;p&gt;great tip.  thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin</dc:creator><pubDate>Thu, 15 Oct 2009 16:36:18 -0000</pubDate></item><item><title>Re: Running Work in a Seperate Thread and Transaction in Glassfish using the WorkManager</title><link>http://www.dobesland.com/2009/02/03/running-work-seperate-thread-transaction-glassfish/#comment-19654047</link><description>&lt;p&gt;Thanks ... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ahtivas</dc:creator><pubDate>Fri, 09 Oct 2009 05:31:21 -0000</pubDate></item><item><title>Re: How to use EJB Timers via the TimerService</title><link>http://www.dobesland.com/2008/12/14/ejb-timers-timerservice/#comment-15420196</link><description>&lt;p&gt;Thanks for the great article. You answered all of my questions about TimerServices.&lt;/p&gt;&lt;p&gt;Peter&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Name</dc:creator><pubDate>Wed, 26 Aug 2009 10:27:11 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-15324494</link><description>&lt;p&gt;Sure, here's an example:&lt;/p&gt;&lt;p&gt;interface MyInitialData extends DictionaryConstants {&lt;br&gt;  // ...&lt;br&gt;}&lt;/p&gt;&lt;p&gt;MyInitialData initialData = new MyInitialData() {&lt;br&gt;	                @Override&lt;br&gt;	                public UserInfo myUser() {&lt;br&gt;	                    return myUser;&lt;br&gt;	                }&lt;br&gt;	                @Override&lt;br&gt;	                public AuthToken sessionToken() {&lt;br&gt;	                    return token;&lt;br&gt;	                }&lt;/p&gt;&lt;p&gt;	            };&lt;/p&gt;&lt;p&gt;request.setAttribute("initialData", DictionaryConstantsWriter.serializeConstants("initialData", initialData, MyInitialData.class, true));&lt;/p&gt;&lt;p&gt;Then I use this inside a freemarker template as ${initialData}, along with the usual GWT stuff.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Mon, 24 Aug 2009 16:41:47 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-15323826</link><description>&lt;p&gt;Any chance you could post an example of how to use the DictionaryConstantsWriter class.  I think this could be useful in decreasing the load time for one of my GWT components which contains several input picklist fields, each resulting in a RPC call back to the server at load time.  An example would be greatly appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Mon, 24 Aug 2009 16:27:10 -0000</pubDate></item><item><title>Re: Running Work in a Seperate Thread and Transaction in Glassfish using the WorkManager</title><link>http://www.dobesland.com/2009/02/03/running-work-seperate-thread-transaction-glassfish/#comment-14824640</link><description>&lt;p&gt;i am using Sun Java™ System Application Server Platform Edition 8.2 &lt;br&gt;how to perform above things in it.&lt;br&gt;i have the work manager api. but there is no WorkManagerFactory kind of concept in it.&lt;br&gt;how to associate a threadpool to this workmanager.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sujitkale</dc:creator><pubDate>Fri, 14 Aug 2009 03:24:29 -0000</pubDate></item><item><title>Re: Running Work in a Seperate Thread and Transaction in Glassfish using the WorkManager</title><link>http://www.dobesland.com/2009/02/03/running-work-seperate-thread-transaction-glassfish/#comment-10997364</link><description>&lt;p&gt;Hi Vamsi,&lt;br&gt;This is a glassfish-specific API that is not a standard, and is not&lt;br&gt;available in other containers as far as I know.&lt;/p&gt;&lt;p&gt;Hope that helps (or not!).&lt;/p&gt;&lt;p&gt;I don't know if WorkManager has a waitForAll() method, you'll just have to&lt;br&gt;go take a look at the source code and see what is there for use.&lt;/p&gt;&lt;p&gt;If you just want to run some jobs in a bunch of threads you can use the&lt;br&gt;standard Thread and ThreadPool APIs as well, WorkManager doesn't do anything&lt;br&gt;special except manage a list of "Work" objects and run them for you when the&lt;br&gt;thread is available.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Tue, 16 Jun 2009 13:07:20 -0000</pubDate></item><item><title>Re: Running Work in a Seperate Thread and Transaction in Glassfish using the WorkManager</title><link>http://www.dobesland.com/2009/02/03/running-work-seperate-thread-transaction-glassfish/#comment-10974840</link><description>&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;     Is this Workmanager API compatible to JSR-237?&lt;br&gt;I am missing some methods like waitForAll() in WorkManager?&lt;/p&gt;&lt;p&gt;Is there any implementation simillar to Weblogic or Websphere work manager for glass fish?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vamsi Mandava</dc:creator><pubDate>Tue, 16 Jun 2009 05:34:48 -0000</pubDate></item><item><title>Re: How to parse XHTML faster by not loading DTDs from w3c.org</title><link>http://www.dobesland.com/2009/01/04/parse-xhtml-faster-loading-dtds-w3corg/#comment-10666413</link><description>&lt;p&gt;Hi,&lt;br&gt;this was a really annoying problem, and I would be perfectly fine even without dtd check.&lt;/p&gt;&lt;p&gt;Thank you a lot for this fine solution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davor Hrg</dc:creator><pubDate>Tue, 09 Jun 2009 16:10:39 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-8611428</link><description>&lt;p&gt;Did you try using an empty string?  I'm not sure what else might work.&lt;br&gt; Another option is to set the war as the "default web application" in the&lt;br&gt;glassfish admin panel, I believe it's the virtual server configuration that&lt;br&gt;lets you do that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Thu, 23 Apr 2009 12:35:07 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-8609159</link><description>&lt;p&gt;I've already known than the file is applicattion.xml, but my problem is that I want to set me root context to "/", but when I deploy it, and enter the URL like http:localhost:82/ (thats de URL), then, it don't load the applicattion, so I don't know how to set the root context into "/" and make it work.&lt;/p&gt;&lt;p&gt;Ane help?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guille</dc:creator><pubDate>Thu, 23 Apr 2009 11:22:41 -0000</pubDate></item><item><title>Re: SLF4J: Simple Logging Framework for Java | Dobesland</title><link>http://www.dobesland.com/2008/09/24/slf4j-simple-logging-framework-java/#comment-7564714</link><description>&lt;p&gt;Hi Joe - I haven't done that, I am using glassfish java.logging. This tip&lt;br&gt;shows how to redirect other logging systems like log4j and commons-logging&lt;br&gt;to use java.logging within glassfish.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Fri, 27 Mar 2009 14:15:21 -0000</pubDate></item><item><title>Re: SLF4J: Simple Logging Framework for Java | Dobesland</title><link>http://www.dobesland.com/2008/09/24/slf4j-simple-logging-framework-java/#comment-7552550</link><description>&lt;p&gt;Can you show how you have moved glassfish javalogging to another system?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe</dc:creator><pubDate>Fri, 27 Mar 2009 02:52:23 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-7400319</link><description>&lt;p&gt;LOL, nice idea ...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Sat, 21 Mar 2009 13:15:16 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-7392098</link><description>&lt;p&gt;You should make a class called Lexicographer.  A lexicographer is a person who writes dictionaries.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ken Fehling</dc:creator><pubDate>Sat, 21 Mar 2009 04:16:08 -0000</pubDate></item><item><title>Re: How to parse XHTML faster by not loading DTDs from w3c.org</title><link>http://www.dobesland.com/2009/01/04/parse-xhtml-faster-loading-dtds-w3corg/#comment-7391583</link><description>&lt;p&gt;Wow that's great. I HATE how this is so slow.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bencankle</dc:creator><pubDate>Sat, 21 Mar 2009 03:02:33 -0000</pubDate></item><item><title>Re: How to use EJB Timers via the TimerService</title><link>http://www.dobesland.com/2008/12/14/ejb-timers-timerservice/#comment-6940397</link><description>&lt;p&gt;Thanks a lot, u really explained fantasticly..love to read from you more....&lt;/p&gt;&lt;p&gt;Subramanyam.&lt;br&gt;India&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">subramanyam</dc:creator><pubDate>Fri, 06 Mar 2009 04:33:02 -0000</pubDate></item><item><title>Re: Running Work in a Seperate Thread and Transaction in Glassfish using the WorkManager</title><link>http://www.dobesland.com/2009/02/03/running-work-seperate-thread-transaction-glassfish/#comment-6287956</link><description>&lt;p&gt;Hello Lee,&lt;br&gt;In eclipse I just type "WorkManagerFactory" and press CTRL+SPACE.  The&lt;br&gt;WorkManager implementation is here:&lt;/p&gt;&lt;p&gt;import com.sun.enterprise.connectors.work.CommonWorkManager;&lt;/p&gt;&lt;p&gt;You can just use new CommonWorkManager("thread-pool-name-here") to construct&lt;br&gt;it; this is basically what the WorkManagerFactory does except it allows you&lt;br&gt;to set a different implementation of WorkManager if desired.&lt;/p&gt;&lt;p&gt;The "Work" interface is here:&lt;/p&gt;&lt;p&gt;import javax.resource.spi.work.Work;&lt;/p&gt;&lt;p&gt;Note that these won't be available unless you have appserv-rt.jar in your&lt;br&gt;classpath.&lt;/p&gt;&lt;p&gt;Hope that helps!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Sun, 15 Feb 2009 20:43:17 -0000</pubDate></item><item><title>Re: Running Work in a Seperate Thread and Transaction in Glassfish using the WorkManager</title><link>http://www.dobesland.com/2009/02/03/running-work-seperate-thread-transaction-glassfish/#comment-6287676</link><description>&lt;p&gt;Why under netbeans am I unable to find the WorkManagerFactory class?&lt;br&gt;Do you have a full example (including imports) of the code snippet?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Lee&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lee_wright</dc:creator><pubDate>Sun, 15 Feb 2009 20:27:59 -0000</pubDate></item><item><title>Re: How to use EJB Timers via the TimerService</title><link>http://www.dobesland.com/2008/12/14/ejb-timers-timerservice/#comment-5364732</link><description>&lt;p&gt;Hi Dobes,&lt;/p&gt;&lt;p&gt;thank's for share your code and your time too.&lt;/p&gt;&lt;p&gt;Thank's,&lt;br&gt;Marcelo.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marcelo</dc:creator><pubDate>Mon, 19 Jan 2009 08:23:24 -0000</pubDate></item><item><title>Re: How to use EJB Timers via the TimerService</title><link>http://www.dobesland.com/2008/12/14/ejb-timers-timerservice/#comment-5136669</link><description>&lt;p&gt;Hi Dobes,&lt;/p&gt;&lt;p&gt;Your solution is perfect for my situation.  Thanks for sharing ur experience.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy L.</dc:creator><pubDate>Thu, 15 Jan 2009 04:38:13 -0000</pubDate></item><item><title>Re: Just when I thought the past would disappear</title><link>http://www.dobesland.com/2008/10/01/google-time-machine/#comment-5005184</link><description>&lt;p&gt;The Red Rover concept was a lot of fun to play with lots of people. I played it on the servers I helped admin that were popular at the time (still a little popular with CoD4). I didn't ever package it up so that I could distribute it properly. For CoD I create &lt;a href="http://www.bigbrotherbot.com" rel="nofollow noopener" target="_blank" title="http://www.bigbrotherbot.com"&gt;http://www.bigbrotherbot.com&lt;/a&gt; which is still used today for other Quake mods. Something I need to revisit to get up-to-date.&lt;/p&gt;&lt;p&gt;Heh, houseplans, another crossover. I don't plan to write accounting software but do plan to check out Clarity Accounting again soon. I don't do much freelance anymore though, just started working for a company in Austin and am trying to get into iPhone apps. If you have time, since you are an experience Objective-C programmer, let me know :). There's a few iPhone apps in my pipeline, including one with a bounty at my work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 09 Jan 2009 02:20:24 -0000</pubDate></item><item><title>Re: Just when I thought the past would disappear</title><link>http://www.dobesland.com/2008/10/01/google-time-machine/#comment-5004655</link><description>&lt;p&gt;I followed the links and mucked around on your blog. I looked at your 2001 DobesLand and found that apparently we were both modding games around the same time. What I find amazing is that I also created Red Rover for Call of Duty, albeit 5 years after you did, but the same concept exactly.&lt;/p&gt;&lt;p&gt;The earliest personal site I can remember was in 1997 hosted on my ISPs space &lt;a href="http://web.archive.org/web/19970620010741/http://www.datasync.com/~gman/nu_e-m-u.html" rel="nofollow noopener" target="_blank" title="http://web.archive.org/web/19970620010741/http://www.datasync.com/~gman/nu_e-m-u.html"&gt;http://web.archive.org/web/...&lt;/a&gt;. The funny thing is it stayed active till 2004 even though I stopped updating it in 2000 and left the host much sooner than 2004.&lt;/p&gt;&lt;p&gt; It was about the time I was working on my first professional PHP site, &lt;a href="http://Allplans.com" rel="nofollow noopener" target="_blank" title="Allplans.com"&gt;Allplans.com&lt;/a&gt;, &lt;a href="http://web.archive.org/web/20011130122733/http://allplans.com/" rel="nofollow noopener" target="_blank" title="http://web.archive.org/web/20011130122733/http://allplans.com/"&gt;http://web.archive.org/web/...&lt;/a&gt;. It started on it a couple years before and left the company at the end of 2001 where the wayback machine shows it getting progressively worse. Funny thing is that I met up with the guy who owns the site early last year and started the process of tacking the site back over.  After 2001 I started working on dozens of sites I can't remember.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 09 Jan 2009 01:29:10 -0000</pubDate></item><item><title>Re: Just when I thought the past would disappear</title><link>http://www.dobesland.com/2008/10/01/google-time-machine/#comment-5005143</link><description>&lt;p&gt;Strange parallels!&lt;/p&gt;&lt;p&gt;Red Rover was a lot of fun to play, although you needed to have a lot&lt;br&gt;of people (it was quite pointless with less than 4).  Was your CoD mod&lt;br&gt;actually called "Red Rover" ?  I played a lot of Call of Duty back&lt;br&gt;when it came out.  Later I moved onto Counter-Strike and then Call of&lt;br&gt;Duty 2 for a while.  I guess I've been a multi-player FPS junkie for&lt;br&gt;quite a while ...&lt;/p&gt;&lt;p&gt;My AAI term project was to write software to auto-generate home floor&lt;br&gt;plans, not long before you would have been working on &lt;a href="http://allplans.com" rel="nofollow noopener" target="_blank" title="allplans.com"&gt;allplans.com&lt;/a&gt;,&lt;br&gt;for what that's worth.&lt;/p&gt;&lt;p&gt;Are you going to make accounting software next ?  :^P&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Fri, 09 Jan 2009 01:17:07 -0000</pubDate></item></channel></rss>