I have been trying to set up a JMS running on two machines, with the J2EE server on one machine, and a client on each. JMS works fine on the machine which also hosts the server, but when I connect a client machine and try to make a connection to the Context.lookup() method:
topicConnectionFactory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
I run out of memory with the following error:
Exception occurred during event dispatching:
java.lang.OutOfMemoryError
<<no stack trace available>>
Process exit...
It appears that, in order to issue objects across the network, the j2ee system needs to load in a whole load of code and other
objects to achieve this. This takes up too much memory on my system. I have tried all the obvious things, like making sure the Java virtual machine has a minimum amount of memory and that other applications are shut down. This hasn't worked.
Any suggestions? Any workarounds? I am running on PC's (Win2k, NT) with up to 256Mb RAM. If I need more memory, how much would suffice?
Thanks,
John
topicConnectionFactory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
I run out of memory with the following error:
Exception occurred during event dispatching:
java.lang.OutOfMemoryError
<<no stack trace available>>
Process exit...
It appears that, in order to issue objects across the network, the j2ee system needs to load in a whole load of code and other
objects to achieve this. This takes up too much memory on my system. I have tried all the obvious things, like making sure the Java virtual machine has a minimum amount of memory and that other applications are shut down. This hasn't worked.
Any suggestions? Any workarounds? I am running on PC's (Win2k, NT) with up to 256Mb RAM. If I need more memory, how much would suffice?
Thanks,
John