Hi
If you
want to use Entity Beans, you need to store your state in a database with CMP,
or write your own persistancemechanism with BMP. That way it does not
matter that new beans are created.
Hermod
-----Opprinnelig melding-----
Fra: Kamyar Varzandeh [mailto:[EMAIL PROTECTED]
Sendt: 13. juni 2003 02:14
Til: jdjlist
Emne: [jdjlist] EJBs as a Remote object Cache ServerHi:We are trying to develop a remote cache server. Our goals is to reduce memory consumption (and GC cycles) in our app server and share the common read-only data across multiple servers. .We have experimented with RMI and EJB-based solutions. The RMI solution seems to work. However, we are running into trouble with the EJB solution. We are using Websphere 4.0. for the EJB-based approachFirst we tried to use a stateful session bean, but soon we discovered that it would only work for a given client, not as a general purpose cache. Now we are trying to use entity beans, but the container does not give us the same bean instance. It creates a new bean instance which defeats the purpose of using the bean as a cache server. We are passing the reference to the bean between different clients using the EJBHandle serialized in LDAP (not calling EJBCreate or EJBFind).Do we have a chance of making the EJB solution work, or should we drop this approach and stay with the RMI solution?Thanks in advance for the help.Kamyar
Do you Yahoo!?
Free online calendar with sync to Outlook(TM). --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] http://www.sys-con.com/fusetalk
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the virus programs used
in the DnB Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
---You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk
