| Author |
getXXX methods
|
Maximilian Trenks
Ranch Hand
Joined: Jul 22, 2002
Posts: 104
|
|
Hi there, I use a EJB 2.0 Entity Bean on Weblogic 6.1. My test client calls the findPrimaryKey method to receive the remote interface and call the appropriate getXXX methods (5 attributes = 5 methods) on the remote interface. As I DON'T USE local interfaces, each getXXX method represents a remote call and should take significantly longer than a local call. But all getXXX methods together only take 40 ms. Is my logic wrong or is it some Bea magic (same VM -> make local calls and don't do the marshalling/unmarshalling thingies in remote calls) ?
|
Student of Business Informatics<br />Kepler University Linz, Austria
|
 |
Chris Mathews
Ranch Hand
Joined: Jul 18, 2001
Posts: 2712
|
|
By default, WebLogic enables call by reference for all ejb calls made within the same JVM. This behavior can be overridden by setting the enable-call-by-reference element in your weblogic-ejb-jar.xml to false. See this link for more information.
|
 |
Chris Mathews
Ranch Hand
Joined: Jul 18, 2001
Posts: 2712
|
|
BTW, this probably should have been posted in the WebLogic Forum.
|
 |
Maximilian Trenks
Ranch Hand
Joined: Jul 22, 2002
Posts: 104
|
|
ok, should be posted there. anyway i have another question. what does the procedure of creating a client.jar file in weblogic look like ? I make a client.jar file, copy my interfaces (home/remote) and my client class (with the main method) into it. Then include ejb-client-jar in the deployment descriptors and run ejbc on my application ? is that correct ? how do i call my client then ? java client many thanx for your answers, max
|
 |
Maximilian Trenks
Ranch Hand
Joined: Jul 22, 2002
Posts: 104
|
|
ok, should be posted there. anyway i have another question. what does the procedure of creating a client.jar file in weblogic look like ? I make a client.jar file, copy my interfaces (home/remote) and my client class (with the main method) into it. Then include ejb-client-jar in the deployment descriptors and run ejbc on my application ? is that correct ? how do i call my client then ? java client many thanx for your answers, max
|
 |
 |
|
|
subject: getXXX methods
|
|
|