Andrew Evans wrote:
> For example, in my situation I am wishing to be able to test the EJBs in an
> unjarred environment. So that I can just compile the EJB, run the Weblogic
> Deployment Wizard on the Deployment Descriptor and then I can start using the
> EJB without jarring it.
>
> If there is some problem/difference with running an unjarred EJB could somebody
> let me know please.
If everything is accessible from your classpath, there should be no problems.
One common problem is when you have different version of your classes in different
location (both accessible from your classpath) or when your client have a
different classpath that your server and it load a different version of a class.
Also if you have made modification to your bean without recreating the serialized
deployment descriptor and stubs you can run into problem.
A good way to solve many problem with object that are Serializable (EJB
implementation are) is to add the serialVerUID in every Serializable class. To add
it, compile your class, then run serialVer with your fully qualified class name as
an argument and it will print the line to add to your class.
Add that line to the class and recompile. Now when you modify the class, it will
have the same serialVerUID and it will cause less error at runtime. This is
notdangerous to do, because if a new version of a class in not compatible with an
old one, unserializing it will still cause an exception when tring to assign
incompatible fields.
Also if you run your client in VisualAge and Weblogic outside VisualAge, you will
run into problem. You have to make sure that the weblogic classes are not in your
classpath when your start VisualAge and that theyr are not in the Workspace
classpath. You can add them in the main class classpath and it will work.
I hope some of the hints here will help you!
SeeU
---
Emmanuel Pirsch
Sun Certified Java Programmer
Unite for Java! http://www.javalobby.org/
===========================================================================
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".