It seems less a hack and more of a feature. :-) I figured the icon appearing was because some UI stuff was being called, but I have no idea why it would get called to read the preferences DB. The only thing I added to the project is the Modeler jar. Perhaps something in the JNDI feature makes a GUI call? (I haven't dug into the source to see.)
As long as it doesn't get activated on the server during the deployment ... probably OK. I know why that code is in the Modeler, but it also seems a bit awkward to include the Modeler to deploy server-side, too. mrg On Wed, Sep 9, 2009 at 10:46 AM, Andrus Adamchik<[email protected]> wrote: > The icon means some Swing/AWT/Java2D stuff got activated. I am using the > JNDI hack extensively on Mac and by itself it never causes it, but any > unrelated image processing code would cause it. > > Andrus > > On Sep 9, 2009, at 10:29 AM, Michael Gentry wrote: > >> This is the first time I'm trying to use JNDI with Cayenne (also with >> T5 and Eclipse). I followed the steps on: >> >> http://cayenne.apache.org/doc/using-jndi.html >> >> for using Cayenne with the user preference DB to simulate a JNDI for >> development purposes. Since I'm using Maven, I added the Modeler jars >> to the POM, which worked fine. Now when I run the application I get a >> new generic Java application icon in my dock that stays there until I >> shutdown the web application. It doesn't seem hurt anything, but is a >> little strange. Something about adding the Modeler jar to the project >> and then running causes an application icon to appear in the dock that >> didn't before. Has anyone else seen this? >> >> Thanks, >> >> mrg >> > >
