Sitemap

Amicuk Programming Answers

Using an object in distributed env

-0001-11-30   Views:0

Advertisement

Hi, We developed an IMAP based application in single server JBOSS env. we are using a hashmap to store some information which shall be used by all the users of the application. Now we have to convert the application to distributed JBOSS (on different

Hi,
We developed an IMAP based application in single server JBOSS env. we are using a hashmap to store some information which shall be used by all the users of the application.
Now we have to convert the application to distributed JBOSS (on different jvm's), please tell me what is the best approach to access the above hashmap from two JBOSS instances.
Thanks

The replay answer
Advertisement
If you doType name1 = new Type(true);
Type name2 = new Type(false);
and1 = new LogicAnd(name1, name2);Your object references will look like this:           ---------
           |  -----|
name1 -----+->|true ||
           |  -----|
           |         |
           |  -----|
name2 -----+->|false||
           |  -----|
and1 ----->|         |
           ---------Now if you'd assign a new value to "name2", by doingname2 = new Type(true);Your object references will now look like this:           ---------
           |  -----|
name1 -----+->|true ||
           |  -----|
           |         |
           |  -----|
           |  |false||
           |  -----|
and1 ----->|         |
name2 ------->|true |
              -----Note that the old false Type will still be in "and1", and that "name2" will just get a new instantce of a Type object assigned to it.

Go to See the other 10 answers

Hot
To display the records of a table in ALV report dynamically such that first 10 fields of the table should only be displayed excluding 'mandt' field . That is field no 2nd to 11th should be displayed.parameters: p_vari type slis_vari. at selection-scr [More]
I cut a portion of video on my time line and used "replace with after effects" to send clips to AE, but all I can see in program view is colour bars. Can anyone through light on this please? Thanks.Colour bars placeholder in AE refers to a missi [More]
Hello, Good Morning. We have a problem follow:     I used component ECC 6.0 with formal budget. run this transaction.: FM9Q FM9P FMBV Aftes executing this transaction tables BPJA this field WTJHR and WLJHR be zero. Running report without effectively, [More]
Hi all, last year I installed a Crystal Reports Server 2008. After installation I had the following version numbers: Server = 12.3.0 InfoView/Cmc = 12.1.0 Now I downloaded all packages of service pack 4 and fix pack 4.1 and tried to install them in f [More]
Post Author: GaryI CA Forum: Data Connectivity and SQL I am using Crystal Reports for Visual Studio 2005 and an Oracle database. From my C# application, I am dynamically setting the location of the database to use in the report with the code fragment [More]
I cannot get my external monitor to display my timeline editing window. I have made the right connections, with firewire from Mac to Sony HDV tapedeck, and with HDMI cable from tapedeck to LCD monitor, but the screen remains blank. The external video [More]
Good Afternoon, I'm one of the many (I'm sure) that "jumped right in without floaties" and I have stumped myself this morning. I have an image of my program that I have pasted into photoshop. I'd like to select a certain portion of that image (a [More]
I have a Nikon d700 with SanDisk 32GB memory. Tried to import in lightroom 5.3 and got error message at the end saying many hundreds of files couldn't be imported. Ideas? Everything seemed to be working fine last week...no system changes or crashes . [More]
I know that I can import xml dtd a the common data type in iStudio. However, does anyone know how to serialize it back to the xml string during the field mapping? Is it even possible? Thanks, EdwardThanks Stuart for your reply. What I'm trying to do [More]
i recently filled in the application form for the ipod nano replacement program and did not notice the postcode being wrong. So i need some help fixing this problem, thanks in return. - hamwarFYI, you're primarily talking to other customers here. As [More]