<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Global Variables in Java EE</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Fri, 24 May 2013 20:37:28 -0400</pubDate>


    <item>

        <title>Re: Session Beans</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[Though the Thread(I mean discussion thread not Java thread..) is very old..but still I cannot stop appreciating various views expressed..]]></description>
        

        <pubDate>Thu, 01 May 2008 13:22:19 -0400</pubDate>

        

        <jf:creationDate>Thu, 01 May 2008 13:22:19 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 01 May 2008 13:22:19 -0400</jf:modificationDate>
        <jf:date>May 1, 2008</jf:date>
        <jf:author>praveen soni</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[I put my constants in the application context.]]></description>
        

        <pubDate>Wed, 13 Dec 2006 14:47:53 -0500</pubDate>

        

        <jf:creationDate>Wed, 13 Dec 2006 14:47:53 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 13 Dec 2006 14:47:53 -0500</jf:modificationDate>
        <jf:date>Dec 13, 2006</jf:date>
        <jf:author>Jean-Daniel Gamache</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[I just couldn't help myself ;)...]]></description>
        

        <pubDate>Mon, 11 Dec 2006 06:19:16 -0500</pubDate>

        

        <jf:creationDate>Mon, 11 Dec 2006 06:19:16 -0500</jf:creationDate>
        <jf:modificationDate>Mon, 11 Dec 2006 06:19:16 -0500</jf:modificationDate>
        <jf:date>Dec 11, 2006</jf:date>
        <jf:author>Brian Oliver</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[I use Singleton Class + JMS (MDB inside the container, regular listener outside)]]></description>
        

        <pubDate>Sun, 10 Dec 2006 16:28:32 -0500</pubDate>

        

        <jf:creationDate>Sun, 10 Dec 2006 16:28:32 -0500</jf:creationDate>
        <jf:modificationDate>Sun, 10 Dec 2006 16:28:32 -0500</jf:modificationDate>
        <jf:date>Dec 10, 2006</jf:date>
        <jf:author>Maxime Turner</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Not cool</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[I'm using ThreadLocal but it is not a cool API.
Are there any problems for using that?]]></description>
        

        <pubDate>Sun, 10 Dec 2006 15:18:28 -0500</pubDate>

        

        <jf:creationDate>Sun, 10 Dec 2006 15:18:28 -0500</jf:creationDate>
        <jf:modificationDate>Sun, 10 Dec 2006 15:18:28 -0500</jf:modificationDate>
        <jf:date>Dec 10, 2006</jf:date>
        <jf:author>Lorenzo Gonzalez</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[And noone mentioned entity beans... I've used them successfully in several projects ;) You can tune the app server pool for the beans, have TXs and readonly entity beans. Cluster replication can be automatic... Yes, you need to know all the many...]]></description>
        

        <pubDate>Sat, 09 Dec 2006 09:08:09 -0500</pubDate>

        

        <jf:creationDate>Sat, 09 Dec 2006 09:08:09 -0500</jf:creationDate>
        <jf:modificationDate>Sat, 09 Dec 2006 09:08:09 -0500</jf:modificationDate>
        <jf:date>Dec 9, 2006</jf:date>
        <jf:author>Nikolay Tsankov</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[No one has mentioned putting your global data in an MBean. I have an MBean that caches some database stuff currently deployed in production. I *do* like the idea of putting it in a stateless session bean, though. Hadn't thought of that!

Steve]]></description>
        

        <pubDate>Fri, 08 Dec 2006 16:08:23 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 16:08:23 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 16:08:23 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>Steve Lewis</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[And how many times does one actually hot-redeploy an application into a production environment. I am assuming you are not try to save precious cpu cycles on a developer workstation so your hot deploys are faster. ...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 14:54:05 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 14:54:05 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 14:54:05 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>wlouth</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[<blockquote>All the solutions mentioned here fail with the first redeployment. You can create singletons with static objects only on a per classloader base. It is common for application servers to create a new classloader for each deployment. Sessions...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 14:09:59 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 14:09:59 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 14:09:59 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>Cameron Purdy</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[I know why it is forbidden, there is no such thing like a singleton in an application server except you use external objects like a JCA adaptor or an object accessed via JNDI. ...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 11:36:03 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 11:36:03 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 11:36:03 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>Haug B?rger</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[<blockquote>Having said, that I have created a cache in a J2EE server (long ago) that used it's own threads.  The biggest problem we saw was that hot deployments would result in orphaned caches.  The old class was not unloaded.  But that was a dev only...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 07:19:40 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 07:19:40 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 07:19:40 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>Reg Whitton</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Session Beans</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[<blockquote>...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 07:13:19 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 07:13:19 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 07:13:19 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>wlouth</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Global Variables in Java EE</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[There are some good cache technologies out there: ehcache and OSCache (not proprietary solutions, open source). Not particularly difficult to use. It is the good solution if you have multiple app servers....]]></description>
        

        <pubDate>Fri, 08 Dec 2006 05:15:36 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 05:15:36 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 05:15:36 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>Cyril Gambis</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Session Beans</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[I agree with your solution. However, if you really want to code to the specs, you can't ignore that a container might very well choose not to pool session bean instances at all. Creating a new instance for every method call is perfectly valid for a...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 04:53:28 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 04:53:28 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 04:53:28 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>Jean-Baptiste Nizet</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Re: Session Beans</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=43397</link>

        

        
            <description><![CDATA[<blockquote>(I don't remember any flag in the deployment descriptor that would allow bean instances to be shared.)</blockquote>...]]></description>
        

        <pubDate>Fri, 08 Dec 2006 04:42:22 -0500</pubDate>

        

        <jf:creationDate>Fri, 08 Dec 2006 04:42:22 -0500</jf:creationDate>
        <jf:modificationDate>Fri, 08 Dec 2006 04:42:22 -0500</jf:modificationDate>
        <jf:date>Dec 8, 2006</jf:date>
        <jf:author>wlouth</jf:author>
        <jf:replyCount>3</jf:replyCount>
    </item>



</channel>
</rss>

