Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

EJB - localInvoke vs remoteInvoke

2 posts in Java J2EE specific Last posting was on 2006-07-31 13:51:39.0Z
Mark Kurley Posted on 2006-04-03 17:18:58.0Z
Reply-To: "Mark Kurley" <mkurley@p21.com>
From: "Mark Kurley" <mkurley@p21.com>
Newsgroups: sybase.public.easerver.j2ee
Subject: EJB - localInvoke vs remoteInvoke
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: cerberus.p21.com
Message-ID: <44313ab1$1@forums-2-dub>
X-Original-Trace: 3 Apr 2006 08:09:37 -0800, cerberus.p21.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 Apr 2006 08:09:38 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 Apr 2006 09:18:58 -0800
X-Trace: forums-1-dub 1144081138 10.22.108.75 (3 Apr 2006 09:18:58 -0800)
X-Original-Trace: 3 Apr 2006 09:18:58 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7651
Article PK: 208108

I have an EJB war file deployed to two different servers running EAServer
Version 5.2.0 (Build 52025). I am running a test where one EJB Session bean
calls another EJB Session bean within EAServer. For the Development server
it makes a "remoteInvoke" call as you can see in the first stack trace
below. For the Production Server the same code is making a "localInvoke"
call based on the second stack trace below. I deployed the same EJB jar
file to both servers.

Question: What would cause the one EAServer to make a local call and the
other to do a remote call?

Thanks for the help.
-Mark

Development Server
at
com.tpcx.document.dac.DocumentDac.insertFunctionalAck(DocumentDac.java:1868)
at
com.tpcx.document.bo.DocumentBOBean.insertFunctionalAck(DocumentBOBean.java:
878)
at
com.tpcx.document.bo._sk_TPCXJava_DocumentBO.remoteInvoke(_sk_TPCXJava_Docum
entBO.java:734)
at
com.tpcx.document.bo._sk_TPCXJava_DocumentBO.invoke(_sk_TPCXJava_DocumentBO.
java:195)


Production Server
at
com.tpcx.document.dac.DocumentDac.insertFunctionalAck(DocumentDac.java:1868)
at
com.tpcx.document.bo.DocumentBOBean.insertFunctionalAck(DocumentBOBean.java:
878)
at
com.tpcx.document.bo._sk_TPCXJava_DocumentBO.localInvoke(_sk_TPCXJava_Docume
ntBO.java:736)
at
com.tpcx.document.bo._sk_TPCXJava_DocumentBO.invoke(_sk_TPCXJava_DocumentBO.
java:195)
at com.sybase.CORBA.local.Socket.call(Native Method)
at com.sybase.CORBA.local.OutputStream.write(OutputStream.java:29)
at com.sybase.CORBA.iiop.Connection.invoke(Connection.java:3387)
at
com.tpcx.document.bo.DocumentBORemote_Stub.insertFunctionalAck(DocumentBORem
ote_Stub.java:535)
at
com.tpcx.edi.FunctionalAckProcessor.setStatusAndLogFA(FunctionalAckProcessor
.java:225)
at
com.tpcx.edi.FunctionalAckProcessor.logTransactions(FunctionalAckProcessor.j
ava:124)
at
com.tpcx.handler.edi.EDIInHandlerBean.processXEDI(EDIInHandlerBean.java:522)
at
com.tpcx.handler.edi.EDIInHandlerBean.processSingleMessage(EDIInHandlerBean.
java:292)
at
com.tpcx.handler.edi.EDIInHandlerBean.processMessage(EDIInHandlerBean.java:1
27)
at
com.tpcx.handler.HandlerServicesAdaptor.processMessage(HandlerServicesAdapto
r.java:30)
at
com.tpcx.handler.edi._sk_TPCXJava_EDIInHandlerServices.remoteInvoke(_sk_TPCX
Java_EDIInHandlerServices.java:131)
at
com.tpcx.handler.edi._sk_TPCXJava_EDIInHandlerServices.invoke(_sk_TPCXJava_E
DIInHandlerServices.java:84)


Sandip Ghayal Posted on 2006-07-31 13:51:39.0Z
Message-ID: <44CE08FF.3000903@sybase.com>
From: Sandip Ghayal <sghayal@sybase.com>
Reply-To: sghayal@sybase.com
Organization: Sybase Inc.
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
To: Mark Kurley <mkurley@p21.com>
Subject: Re: EJB - localInvoke vs remoteInvoke
References: <44313ab1$1@forums-2-dub>
In-Reply-To: <44313ab1$1@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: wireless-wat-1.sybase.com
X-Original-NNTP-Posting-Host: wireless-wat-1.sybase.com
Date: 31 Jul 2006 06:51:39 -0700
X-Trace: forums-1-dub 1154353899 10.25.109.130 (31 Jul 2006 06:51:39 -0700)
X-Original-Trace: 31 Jul 2006 06:51:39 -0700, wireless-wat-1.sybase.com
Lines: 81
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7697
Article PK: 208145

What home interface are you looking up on both the machines.

You might be looking up local home interface for Production machine and
remote home interface for development machine ?

Thanks,

Sandip Ghayal

Mark Kurley wrote:
> I have an EJB war file deployed to two different servers running EAServer
> Version 5.2.0 (Build 52025). I am running a test where one EJB Session bean
> calls another EJB Session bean within EAServer. For the Development server
> it makes a "remoteInvoke" call as you can see in the first stack trace
> below. For the Production Server the same code is making a "localInvoke"
> call based on the second stack trace below. I deployed the same EJB jar
> file to both servers.
>
> Question: What would cause the one EAServer to make a local call and the
> other to do a remote call?
>
> Thanks for the help.
> -Mark
>
> Development Server
> at
> com.tpcx.document.dac.DocumentDac.insertFunctionalAck(DocumentDac.java:1868)
> at
> com.tpcx.document.bo.DocumentBOBean.insertFunctionalAck(DocumentBOBean.java:
> 878)
> at
> com.tpcx.document.bo._sk_TPCXJava_DocumentBO.remoteInvoke(_sk_TPCXJava_Docum
> entBO.java:734)
> at
> com.tpcx.document.bo._sk_TPCXJava_DocumentBO.invoke(_sk_TPCXJava_DocumentBO.
> java:195)
>
>
> Production Server
> at
> com.tpcx.document.dac.DocumentDac.insertFunctionalAck(DocumentDac.java:1868)
> at
> com.tpcx.document.bo.DocumentBOBean.insertFunctionalAck(DocumentBOBean.java:
> 878)
> at
> com.tpcx.document.bo._sk_TPCXJava_DocumentBO.localInvoke(_sk_TPCXJava_Docume
> ntBO.java:736)
> at
> com.tpcx.document.bo._sk_TPCXJava_DocumentBO.invoke(_sk_TPCXJava_DocumentBO.
> java:195)
> at com.sybase.CORBA.local.Socket.call(Native Method)
> at com.sybase.CORBA.local.OutputStream.write(OutputStream.java:29)
> at com.sybase.CORBA.iiop.Connection.invoke(Connection.java:3387)
> at
> com.tpcx.document.bo.DocumentBORemote_Stub.insertFunctionalAck(DocumentBORem
> ote_Stub.java:535)
> at
> com.tpcx.edi.FunctionalAckProcessor.setStatusAndLogFA(FunctionalAckProcessor
> .java:225)
> at
> com.tpcx.edi.FunctionalAckProcessor.logTransactions(FunctionalAckProcessor.j
> ava:124)
> at
> com.tpcx.handler.edi.EDIInHandlerBean.processXEDI(EDIInHandlerBean.java:522)
> at
> com.tpcx.handler.edi.EDIInHandlerBean.processSingleMessage(EDIInHandlerBean.
> java:292)
> at
> com.tpcx.handler.edi.EDIInHandlerBean.processMessage(EDIInHandlerBean.java:1
> 27)
> at
> com.tpcx.handler.HandlerServicesAdaptor.processMessage(HandlerServicesAdapto
> r.java:30)
> at
> com.tpcx.handler.edi._sk_TPCXJava_EDIInHandlerServices.remoteInvoke(_sk_TPCX
> Java_EDIInHandlerServices.java:131)
> at
> com.tpcx.handler.edi._sk_TPCXJava_EDIInHandlerServices.invoke(_sk_TPCXJava_E
> DIInHandlerServices.java:84)
>
>