Comments inline... /Johan
On 15 sep 2005, at 04.51, SUBSCRIBE EJB-INTEREST anonymous wrote:
Hi , I have an EJB running in a JVM which is called from 2 apps. running in diffrent JVMs. My questions are as follows.. 1. Is there way to version the EJBs that I provide to the client apps?
Not true versioning (i.e. .using multiple versions of the client stubs in the same classloader), but you can cantrol backwards compatibility by assigning a serialVersionUID to your home/remote interfaces.
2. If I include a new method in the EJB (which would be used by only app. B) and does not modify the existing methods in the EJB,do I have to provide the new stubs to app. A?
If you don't assign a serialVesrionUID field to your interfaces, that number will be calculated on the fly by the JVM, based on an algorithm processing all names of all methods, which would make your client jar incompatible with every new version on your server. If you explicitly define a serialVersionUID field to all your ejb interfaces, you control when want break backwards compatibility.
3.If my EJB uses application jars , is it mandatory to include those jars in the classpath in manifest.mf of EJB jar? Is there any advantage in including the application jars used by EJB in classpath of manifest.mf file?
With a spec-compliant app server (which does not include weblogic), the application jars will not be visible to your EJB:s (or any class of the same ejb-jar), unless you declare their visability for the ejb- jar using the Class-Path etry of the ejbjar manifest.
4. Is there a way to support backward compatibility for the EJbs (EJB stubs)?
See above.
Thanks in advance. ====================================================================== ===== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".