Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getXXX methods

 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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) ?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, this probably should have been posted in the WebLogic Forum.
 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic