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.

Calling Jaguar EJB component from ASP

6 posts in General Discussion (old) Last posting was on 2000-04-01 22:30:52.0Z
Yuhong Liu Posted on 2000-03-29 21:43:32.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Yuhong Liu" <yliu@si-ecc.com>
From: "Yuhong Liu" <yliu@si-ecc.com>
Subject: Calling Jaguar EJB component from ASP
Date: Wed, 29 Mar 2000 16:43:32 -0500
Lines: 21
Organization: SI-ECC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 207.18.189.46
Message-ID: <347_soEpxgcm$GA.290@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25298
Article PK: 228496

Hi,

We can successfully call a Jaguar PB component from Active Server Page by
using "Generate TLB/REG..." for Jaguar Package. When we try to call a EJB
component in Jaguar, we got:

The creation of the Component mypackage/SSUtil11 failed : The invocation of
the method on the Jaguar Server failed because component implementation was
not deployed on the Jaguar Server.

Any help?

Yuhhong
yliu@si-ecc.com


Dave Wolf [Sybase] Posted on 2000-03-29 23:34:32.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Calling Jaguar EJB component from ASP
Date: Wed, 29 Mar 2000 18:34:32 -0500
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-12.sybase.com 157.133.176.12
Message-ID: <347_ncXB#fdm$GA.298@forums.sybase.com>
References: <347_soEpxgcm$GA.290@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25287
Article PK: 155405

Can I see your code please.

Dave Wolf
Internet Applications Division

"Yuhong Liu" <yliu@si-ecc.com> wrote in message
news:soEpxgcm$GA.290@forums.sybase.com...
> Hi,
>
> We can successfully call a Jaguar PB component from Active Server Page by
> using "Generate TLB/REG..." for Jaguar Package. When we try to call a EJB
> component in Jaguar, we got:
>
> The creation of the Component mypackage/SSUtil11 failed : The invocation
of
> the method on the Jaguar Server failed because component implementation
was
> not deployed on the Jaguar Server.
>
> Any help?
>
> Yuhhong
> yliu@si-ecc.com
>
>
>
>
>
>
>


Yuhong Liu Posted on 2000-03-30 16:18:42.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Yuhong Liu" <yliu@si-ecc.com>
From: "Yuhong Liu" <yliu@si-ecc.com>
Subject: Re: Calling Jaguar EJB component from ASP
Date: Thu, 30 Mar 2000 11:18:42 -0500
Lines: 74
Organization: SI-ECC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 207.18.189.46
Message-ID: <347_phMI7Pmm$GA.290@forums.sybase.com>
References: <347_soEpxgcm$GA.290@forums.sybase.com> <347_ncXB#fdm$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25221
Article PK: 228486

Here is the ASP code that call the EJB:
<%
myToken = Request.Cookies("SSAccessToken")
Response.Write myToken


Set myEJB = Server.CreateObject("mypackage.SSUtil11.4")
myEJB.Username = "jagadmin"
myEJB.Password = ""
myEJB.Host = "localhost:9000"
myEJB.Initialize()


Response.Write (myEJB.checkAccessLevel(myToken, 849, 1))

Set myEJB = Nothing

%>


And here is the error that come from the browser:

Initialize() method error '800a232d'
The creation of the Component mypackage/SSUtil11 failed : The invocation of
the method on the Jaguar Server failed because component implementation was
not deployed on the Jaguar Server.


Thanks!

--Yuhong

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:ncXB#fdm$GA.298@forums.sybase.com...
> Can I see your code please.
>
> Dave Wolf
> Internet Applications Division
>
> "Yuhong Liu" <yliu@si-ecc.com> wrote in message
> news:soEpxgcm$GA.290@forums.sybase.com...
> > Hi,
> >
> > We can successfully call a Jaguar PB component from Active Server Page
by
> > using "Generate TLB/REG..." for Jaguar Package. When we try to call a
EJB
> > component in Jaguar, we got:
> >
> > The creation of the Component mypackage/SSUtil11 failed : The invocation
> of
> > the method on the Jaguar Server failed because component implementation
> was
> > not deployed on the Jaguar Server.
> >
> > Any help?
> >
> > Yuhhong
> > yliu@si-ecc.com
> >
> >
> >
> >
> >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-03-31 12:56:18.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Calling Jaguar EJB component from ASP
Date: Fri, 31 Mar 2000 07:56:18 -0500
Lines: 121
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: PPPa22-ResaleDialinx8003-1R7203.saturn.bbn.com 4.54.150.51
Message-ID: <347_8Nb#pExm$GA.307@forums.sybase.com>
References: <347_soEpxgcm$GA.290@forums.sybase.com> <347_ncXB#fdm$GA.298@forums.sybase.com> <347_phMI7Pmm$GA.290@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25122
Article PK: 154221

Calling EJB's is slightly different with the COM proxy. Here is an example
using VB


Dim orb As orb
Dim session As session
Dim manager As manager
Dim factory As factory
Dim poHome As purchaseOrderHome
Dim po As purchaseOrder

On Error GoTo ErrorHandler

' Create and initialize the ORB
Set orb = New orb
orb.init ""

' Create the Manager, Session and Factory Objects
Set manager =
orb.string_to_object("iiop://localhost:9000").Narrow_("SessionManager/Manage
r")
Set session = manager.createSession("jagadmin", "")
Set factory = session.lookup("bookStore/purchaseOrder")

' Narrow the factory to the EJB Home interface. This returns the handle
to
' the Home interface which can be used to instantiate EJ Beans
Set poHome = factory.Narrow_("bookStore/purchaseOrderHome")

' Call the Create method on the Home interface
Set po = poHome.Create("ejbDVT_SF1")

' Invoke a method on the EJB
po.deletePurchase


Dave Wolf
Internet Applications Division

"Yuhong Liu" <yliu@si-ecc.com> wrote in message
news:phMI7Pmm$GA.290@forums.sybase.com...
>
> Here is the ASP code that call the EJB:
> <%
> myToken = Request.Cookies("SSAccessToken")
> Response.Write myToken
>
>
> Set myEJB = Server.CreateObject("mypackage.SSUtil11.4")
> myEJB.Username = "jagadmin"
> myEJB.Password = ""
> myEJB.Host = "localhost:9000"
> myEJB.Initialize()
>
>
> Response.Write (myEJB.checkAccessLevel(myToken, 849, 1))
>
> Set myEJB = Nothing
>
> %>
>
>
> And here is the error that come from the browser:
>
> Initialize() method error '800a232d'
> The creation of the Component mypackage/SSUtil11 failed : The invocation
of
> the method on the Jaguar Server failed because component implementation
was
> not deployed on the Jaguar Server.
>
>
> Thanks!
>
> --Yuhong
>
>
>
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:ncXB#fdm$GA.298@forums.sybase.com...
> > Can I see your code please.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Yuhong Liu" <yliu@si-ecc.com> wrote in message
> > news:soEpxgcm$GA.290@forums.sybase.com...
> > > Hi,
> > >
> > > We can successfully call a Jaguar PB component from Active Server Page
> by
> > > using "Generate TLB/REG..." for Jaguar Package. When we try to call a
> EJB
> > > component in Jaguar, we got:
> > >
> > > The creation of the Component mypackage/SSUtil11 failed : The
invocation
> > of
> > > the method on the Jaguar Server failed because component
implementation
> > was
> > > not deployed on the Jaguar Server.
> > >
> > > Any help?
> > >
> > > Yuhhong
> > > yliu@si-ecc.com
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>


Yuhong Liu Posted on 2000-03-31 21:08:45.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Yuhong Liu" <yliu@si-ecc.com>
From: "Yuhong Liu" <yliu@si-ecc.com>
Subject: Re: Calling Jaguar EJB component from ASP
Date: Fri, 31 Mar 2000 16:08:45 -0500
Lines: 130
Organization: SI-ECC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 207.18.189.46
Message-ID: <347_k3GPrW1m$GA.298@forums.sybase.com>
References: <347_soEpxgcm$GA.290@forums.sybase.com> <347_ncXB#fdm$GA.298@forums.sybase.com> <347_phMI7Pmm$GA.290@forums.sybase.com> <347_8Nb#pExm$GA.307@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25035
Article PK: 228445

Thanks Dave. That works!

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:8Nb#pExm$GA.307@forums.sybase.com...
> Calling EJB's is slightly different with the COM proxy. Here is an
example
> using VB
>
>
> Dim orb As orb
> Dim session As session
> Dim manager As manager
> Dim factory As factory
> Dim poHome As purchaseOrderHome
> Dim po As purchaseOrder
>
> On Error GoTo ErrorHandler
>
> ' Create and initialize the ORB
> Set orb = New orb
> orb.init ""
>
> ' Create the Manager, Session and Factory Objects
> Set manager =
>
orb.string_to_object("iiop://localhost:9000").Narrow_("SessionManager/Manage
> r")
> Set session = manager.createSession("jagadmin", "")
> Set factory = session.lookup("bookStore/purchaseOrder")
>
> ' Narrow the factory to the EJB Home interface. This returns the handle
> to
> ' the Home interface which can be used to instantiate EJ Beans
> Set poHome = factory.Narrow_("bookStore/purchaseOrderHome")
>
> ' Call the Create method on the Home interface
> Set po = poHome.Create("ejbDVT_SF1")
>
> ' Invoke a method on the EJB
> po.deletePurchase
>
>
> Dave Wolf
> Internet Applications Division
>
> "Yuhong Liu" <yliu@si-ecc.com> wrote in message
> news:phMI7Pmm$GA.290@forums.sybase.com...
> >
> > Here is the ASP code that call the EJB:
> > <%
> > myToken = Request.Cookies("SSAccessToken")
> > Response.Write myToken
> >
> >
> > Set myEJB = Server.CreateObject("mypackage.SSUtil11.4")
> > myEJB.Username = "jagadmin"
> > myEJB.Password = ""
> > myEJB.Host = "localhost:9000"
> > myEJB.Initialize()
> >
> >
> > Response.Write (myEJB.checkAccessLevel(myToken, 849, 1))
> >
> > Set myEJB = Nothing
> >
> > %>
> >
> >
> > And here is the error that come from the browser:
> >
> > Initialize() method error '800a232d'
> > The creation of the Component mypackage/SSUtil11 failed : The invocation
> of
> > the method on the Jaguar Server failed because component implementation
> was
> > not deployed on the Jaguar Server.
> >
> >
> > Thanks!
> >
> > --Yuhong
> >
> >
> >
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:ncXB#fdm$GA.298@forums.sybase.com...
> > > Can I see your code please.
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > "Yuhong Liu" <yliu@si-ecc.com> wrote in message
> > > news:soEpxgcm$GA.290@forums.sybase.com...
> > > > Hi,
> > > >
> > > > We can successfully call a Jaguar PB component from Active Server
Page
> > by
> > > > using "Generate TLB/REG..." for Jaguar Package. When we try to call
a
> > EJB
> > > > component in Jaguar, we got:
> > > >
> > > > The creation of the Component mypackage/SSUtil11 failed : The
> invocation
> > > of
> > > > the method on the Jaguar Server failed because component
> implementation
> > > was
> > > > not deployed on the Jaguar Server.
> > > >
> > > > Any help?
> > > >
> > > > Yuhhong
> > > > yliu@si-ecc.com
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-04-01 22:30:52.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Calling Jaguar EJB component from ASP
Date: Sat, 1 Apr 2000 17:30:52 -0500
Lines: 143
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-16.sybase.com 157.133.176.16
Message-ID: <347_zqFMaqCn$GA.52@forums.sybase.com>
References: <347_soEpxgcm$GA.290@forums.sybase.com> <347_ncXB#fdm$GA.298@forums.sybase.com> <347_phMI7Pmm$GA.290@forums.sybase.com> <347_8Nb#pExm$GA.307@forums.sybase.com> <347_k3GPrW1m$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25004
Article PK: 154139

Kickin :)

Dave Wolf
Internet Applications Division

"Yuhong Liu" <yliu@si-ecc.com> wrote in message
news:k3GPrW1m$GA.298@forums.sybase.com...
> Thanks Dave. That works!
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:8Nb#pExm$GA.307@forums.sybase.com...
> > Calling EJB's is slightly different with the COM proxy. Here is an
> example
> > using VB
> >
> >
> > Dim orb As orb
> > Dim session As session
> > Dim manager As manager
> > Dim factory As factory
> > Dim poHome As purchaseOrderHome
> > Dim po As purchaseOrder
> >
> > On Error GoTo ErrorHandler
> >
> > ' Create and initialize the ORB
> > Set orb = New orb
> > orb.init ""
> >
> > ' Create the Manager, Session and Factory Objects
> > Set manager =
> >
>
orb.string_to_object("iiop://localhost:9000").Narrow_("SessionManager/Manage
> > r")
> > Set session = manager.createSession("jagadmin", "")
> > Set factory = session.lookup("bookStore/purchaseOrder")
> >
> > ' Narrow the factory to the EJB Home interface. This returns the handle
> > to
> > ' the Home interface which can be used to instantiate EJ Beans
> > Set poHome = factory.Narrow_("bookStore/purchaseOrderHome")
> >
> > ' Call the Create method on the Home interface
> > Set po = poHome.Create("ejbDVT_SF1")
> >
> > ' Invoke a method on the EJB
> > po.deletePurchase
> >
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > "Yuhong Liu" <yliu@si-ecc.com> wrote in message
> > news:phMI7Pmm$GA.290@forums.sybase.com...
> > >
> > > Here is the ASP code that call the EJB:
> > > <%
> > > myToken = Request.Cookies("SSAccessToken")
> > > Response.Write myToken
> > >
> > >
> > > Set myEJB = Server.CreateObject("mypackage.SSUtil11.4")
> > > myEJB.Username = "jagadmin"
> > > myEJB.Password = ""
> > > myEJB.Host = "localhost:9000"
> > > myEJB.Initialize()
> > >
> > >
> > > Response.Write (myEJB.checkAccessLevel(myToken, 849, 1))
> > >
> > > Set myEJB = Nothing
> > >
> > > %>
> > >
> > >
> > > And here is the error that come from the browser:
> > >
> > > Initialize() method error '800a232d'
> > > The creation of the Component mypackage/SSUtil11 failed : The
invocation
> > of
> > > the method on the Jaguar Server failed because component
implementation
> > was
> > > not deployed on the Jaguar Server.
> > >
> > >
> > > Thanks!
> > >
> > > --Yuhong
> > >
> > >
> > >
> > >
> > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > news:ncXB#fdm$GA.298@forums.sybase.com...
> > > > Can I see your code please.
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > "Yuhong Liu" <yliu@si-ecc.com> wrote in message
> > > > news:soEpxgcm$GA.290@forums.sybase.com...
> > > > > Hi,
> > > > >
> > > > > We can successfully call a Jaguar PB component from Active Server
> Page
> > > by
> > > > > using "Generate TLB/REG..." for Jaguar Package. When we try to
call
> a
> > > EJB
> > > > > component in Jaguar, we got:
> > > > >
> > > > > The creation of the Component mypackage/SSUtil11 failed : The
> > invocation
> > > > of
> > > > > the method on the Jaguar Server failed because component
> > implementation
> > > > was
> > > > > not deployed on the Jaguar Server.
> > > > >
> > > > > Any help?
> > > > >
> > > > > Yuhhong
> > > > > yliu@si-ecc.com
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>