File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Failed to deploy file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Failed to deploy file." Watch "Failed to deploy file." New topic

Failed to deploy file.


Joined: Oct 08, 2002
Posts: 1
PowerBuilder makes a JSP request , JSP calls a Session Bean, Bean Calls a Tuxedo Service through XMLink (XMLink is a JCA , this is happning in Websphere 4.0) Tuxedo Calls "Cobal shared objects", (oracle OPS and EMC, etc)
Any idea about the following inconsistent error !!!
JORB0012: Pass by reference has been set to: true (NoLocalCopies = true)
An unexpected exception was thrown. Halting execution.

Thanks for time and info
Patrick Finnegan
Ranch Hand

Joined: Mar 05, 2002
Posts: 179
Use pass by value if possible. See warning at bottom of explanation.

Pass-by-value versus pass-by-reference
Short description: The EJB 1.1 specification states that method calls are to be pass-by-value. Pass-by-value means that for every remote method call, the parameters are copied onto the stack before the call is made. This can be expensive. It is possible to specify pass-by-reference, which passes the original object reference without making a copy of the object.
Actual benefit observed: If the EJB client and EJB server are installed in the same WebSphere Application Server instance, specifying pass-by-reference can improve performance up to 50%.
When to try adjusting: Pass-by-reference helps performance only in the case where non-primitive object types are being passed as parameters. Therefore, int and floats are always copied, regardless of the call model.
WARNING: Pass-by-reference can be dangerous and can lead to unexpected results. If an object reference is modified by the remote method, the change might be seen by the caller.
I agree. Here's the link:
subject: Failed to deploy file.
It's not a secret anymore!