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.

Accessing Jag Objs directly from web server

7 posts in General Discussion (old) Last posting was on 2000-03-20 17:13:11.0Z
Tedd King Posted on 2000-03-17 19:15:22.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 17 Mar 2000 11:15:22 -0800
From: Tedd King <tedd.king@webzonecom.com>
X-Mailer: Mozilla 4.72 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Accessing Jag Objs directly from web server
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 7
NNTP-Posting-Host: efg1.mids.com 207.250.224.4
Message-ID: <347_38D2844A.16777D0F@webzonecom.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26188
Article PK: 156862

Is it possible to call Jag objects, residing on one box, directly from a
web server, residing on a different box without going through
PowerDynamo? If so, could you include a skeleton coding example or
direct me to a source documenting the process? Thanks.


Scott McReynolds [Sybase] Posted on 2000-03-17 18:42:50.0Z
Newsgroups: sybase.public.easerver
From: "Scott McReynolds [Sybase]" <scottmc@sybase.com>
Subject: Re: Accessing Jag Objs directly from web server
Date: Fri, 17 Mar 2000 11:42:50 -0700
Lines: 16
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: scottmc-lpt.sybase.com 157.133.56.40
Message-ID: <347_0$bpuEEk$GA.34@forums.sybase.com>
References: <347_38D2844A.16777D0F@webzonecom.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26180
Article PK: 154393

Tedd,

Yes you can do this, but you need some engine to call it. So you would
need, for example, JSP or Servlets to do this.

Scott

"Tedd King" <tedd.king@webzonecom.com> wrote in message
news:38D2844A.16777D0F@webzonecom.com...
> Is it possible to call Jag objects, residing on one box, directly from a
> web server, residing on a different box without going through
> PowerDynamo? If so, could you include a skeleton coding example or
> direct me to a source documenting the process? Thanks.
>


Tedd King Posted on 2000-03-17 21:09:44.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 17 Mar 2000 13:09:44 -0800
From: Tedd King <tedd.king@midata.com>
X-Mailer: Mozilla 4.72 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Accessing Jag Objs directly from web server
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
NNTP-Posting-Host: efg1.mids.com 207.250.224.4
Message-ID: <347_38D29F17.4E05ACFD@midata.com>
References: <347_38D2844A.16777D0F@webzonecom.com> <347_0$bpuEEk$GA.34@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26174
Article PK: 154388

Scott,

Thanks for the reply. I am using JSP's and Servlets in my application so this
is good news. Now, do you know where I might find an example or two that
implements something simular to this solution?

Tedd

"Scott McReynolds [Sybase]" wrote:

> Tedd,
>
> Yes you can do this, but you need some engine to call it. So you would
> need, for example, JSP or Servlets to do this.
>
> Scott
>
> "Tedd King" <tedd.king@webzonecom.com> wrote in message
> news:38D2844A.16777D0F@webzonecom.com...
> > Is it possible to call Jag objects, residing on one box, directly from a
> > web server, residing on a different box without going through
> > PowerDynamo? If so, could you include a skeleton coding example or
> > direct me to a source documenting the process? Thanks.
> >


Scott McReynolds [Sybase] Posted on 2000-03-17 19:20:42.0Z
Newsgroups: sybase.public.easerver
From: "Scott McReynolds [Sybase]" <scottmc@sybase.com>
Subject: Re: Accessing Jag Objs directly from web server
Date: Fri, 17 Mar 2000 12:20:42 -0700
Lines: 55
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: scottmc-lpt.sybase.com 157.133.56.40
Message-ID: <347_O72I4ZEk$GA.285@forums.sybase.com>
References: <347_38D2844A.16777D0F@webzonecom.com> <347_0$bpuEEk$GA.34@forums.sybase.com> <347_38D29F17.4E05ACFD@midata.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26170
Article PK: 156847

Tedd,

Within a servlet you would write:

// Assume a component named Loan in a package named finance
// This code is in the doPost( ) or doGet( ) method of the servlet

// Access Loan component for calculate logic
try

java.util.Properties props = new java.util.Properties( );
props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
ORB orb = ORB.init((java.lang.String[])null, props);
Loan loan = LoanHelper.narrow(orb.string_to_object("finance/Loan"));

// Invoke component method
payment = loan.calculate(amount, months);
}
catch(Exception e) {
getServletContext().log("Failed to connect to Loan component.");
}

Scott

"Tedd King" <tedd.king@midata.com> wrote in message
news:38D29F17.4E05ACFD@midata.com...
> Scott,
>
> Thanks for the reply. I am using JSP's and Servlets in my application so
this
> is good news. Now, do you know where I might find an example or two that
> implements something simular to this solution?
>
> Tedd
>
> "Scott McReynolds [Sybase]" wrote:
>
> > Tedd,
> >
> > Yes you can do this, but you need some engine to call it. So you would
> > need, for example, JSP or Servlets to do this.
> >
> > Scott
> >
> > "Tedd King" <tedd.king@webzonecom.com> wrote in message
> > news:38D2844A.16777D0F@webzonecom.com...
> > > Is it possible to call Jag objects, residing on one box, directly from
a
> > > web server, residing on a different box without going through
> > > PowerDynamo? If so, could you include a skeleton coding example or
> > > direct me to a source documenting the process? Thanks.
> > >
>


Carson Hager[Team Sybase] Posted on 2000-03-19 18:08:29.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Accessing Jag Objs directly from web server
Date: Sun, 19 Mar 2000 18:08:29 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 73
NNTP-Posting-Host: user-33qs0hq.dialup.mindspring.com 199.174.2.58
Message-ID: <347_38d5171d.2735393@forums.sybase.com>
References: <347_38D2844A.16777D0F@webzonecom.com> <347_0$bpuEEk$GA.34@forums.sybase.com> <347_38D29F17.4E05ACFD@midata.com> <347_O72I4ZEk$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26109
Article PK: 156111

Scott -

That's not going to work in his implementation due to the fact that
his servlet engine is not the same Jag machine. He will need to
connect as a standard Java client.

Tedd -

Check out the Jag docs on connecting using a Java client. It will
give the code to connect using the SessionManager object.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Fri, 17 Mar 2000 12:20:42 -0700, "Scott McReynolds [Sybase]"

<scottmc@sybase.com> wrote:

>Tedd,
>
>Within a servlet you would write:
>
>// Assume a component named Loan in a package named finance
>// This code is in the doPost( ) or doGet( ) method of the servlet
>
>// Access Loan component for calculate logic
> try
>
> java.util.Properties props = new java.util.Properties( );
> props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> ORB orb = ORB.init((java.lang.String[])null, props);
> Loan loan = LoanHelper.narrow(orb.string_to_object("finance/Loan"));
>
> // Invoke component method
> payment = loan.calculate(amount, months);
> }
> catch(Exception e) {
> getServletContext().log("Failed to connect to Loan component.");
> }
>
>Scott
>
>"Tedd King" <tedd.king@midata.com> wrote in message
>news:38D29F17.4E05ACFD@midata.com...
>> Scott,
>>
>> Thanks for the reply. I am using JSP's and Servlets in my application so
>this
>> is good news. Now, do you know where I might find an example or two that
>> implements something simular to this solution?
>>
>> Tedd
>>
>> "Scott McReynolds [Sybase]" wrote:
>>
>> > Tedd,
>> >
>> > Yes you can do this, but you need some engine to call it. So you would
>> > need, for example, JSP or Servlets to do this.
>> >
>> > Scott
>> >
>> > "Tedd King" <tedd.king@webzonecom.com> wrote in message
>> > news:38D2844A.16777D0F@webzonecom.com...
>> > > Is it possible to call Jag objects, residing on one box, directly from
>a
>> > > web server, residing on a different box without going through
>> > > PowerDynamo? If so, could you include a skeleton coding example or
>> > > direct me to a source documenting the process? Thanks.
>> > >
>>
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com


Scott McReynolds [Sybase] Posted on 2000-03-20 17:13:11.0Z
Newsgroups: sybase.public.easerver
From: "Scott McReynolds [Sybase]" <scottmc@sybase.com>
Subject: Re: Accessing Jag Objs directly from web server
Date: Mon, 20 Mar 2000 10:13:11 -0700
Lines: 114
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: scottmc-lpt.sybase.com 157.133.56.40
Message-ID: <347_l5cinApk$GA.111@forums.sybase.com>
References: <347_38D2844A.16777D0F@webzonecom.com> <347_0$bpuEEk$GA.34@forums.sybase.com> <347_38D29F17.4E05ACFD@midata.com> <347_O72I4ZEk$GA.285@forums.sybase.com> <347_38d5171d.2735393@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26072
Article PK: 156077

Oops,

Sorry I missed the different machine part. Thanks Carson.

Scott

"Carson Hager[Team Sybase]" <chager@dyn-data.com> wrote in message
news:38d5171d.2735393@forums.sybase.com...
> Scott -
>
> That's not going to work in his implementation due to the fact that
> his servlet engine is not the same Jag machine. He will need to
> connect as a standard Java client.
>
> Tedd -
>
> Check out the Jag docs on connecting using a Java client. It will
> give the code to connect using the SessionManager object.
>
>
> Carson
>
> ___________________________________________________________
>
> Carson Hager
> Team Sybase
> Dynamic Data Solutions, Inc.
> Enterprise Application Studio 3.0 Consulting and Training
> http://www.dyn-data.com
>
> DDS is now hiring EAServer consultants
> to support its exploding EAServer business!
> Please submit your resume to
> hr@dyn-data.com!
>
>
> On Fri, 17 Mar 2000 12:20:42 -0700, "Scott McReynolds [Sybase]"
> <scottmc@sybase.com> wrote:
>
> >Tedd,
> >
> >Within a servlet you would write:
> >
> >// Assume a component named Loan in a package named finance
> >// This code is in the doPost( ) or doGet( ) method of the servlet
> >
> >// Access Loan component for calculate logic
> > try
> >
> > java.util.Properties props = new java.util.Properties( );
> > props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> > ORB orb = ORB.init((java.lang.String[])null, props);
> > Loan loan =
LoanHelper.narrow(orb.string_to_object("finance/Loan"));
> >
> > // Invoke component method
> > payment = loan.calculate(amount, months);
> > }
> > catch(Exception e) {
> > getServletContext().log("Failed to connect to Loan component.");
> > }
> >
> >Scott
> >
> >"Tedd King" <tedd.king@midata.com> wrote in message
> >news:38D29F17.4E05ACFD@midata.com...
> >> Scott,
> >>
> >> Thanks for the reply. I am using JSP's and Servlets in my application
so
> >this
> >> is good news. Now, do you know where I might find an example or two
that
> >> implements something simular to this solution?
> >>
> >> Tedd
> >>
> >> "Scott McReynolds [Sybase]" wrote:
> >>
> >> > Tedd,
> >> >
> >> > Yes you can do this, but you need some engine to call it. So you
would
> >> > need, for example, JSP or Servlets to do this.
> >> >
> >> > Scott
> >> >
> >> > "Tedd King" <tedd.king@webzonecom.com> wrote in message
> >> > news:38D2844A.16777D0F@webzonecom.com...
> >> > > Is it possible to call Jag objects, residing on one box, directly
from
> >a
> >> > > web server, residing on a different box without going through
> >> > > PowerDynamo? If so, could you include a skeleton coding example or
> >> > > direct me to a source documenting the process? Thanks.
> >> > >
> >>
> >
> >
>
>
> ___________________________________________________________
>
> Carson Hager
> Team Sybase
> Dynamic Data Solutions, Inc.
> Enterprise Application Studio 3.0 Consulting and Training
>
> DDS Enterprise Application Framework
> Available Now as Open Source!
> http://www.dyn-data.com
>


James Stansell Posted on 2000-03-17 19:17:58.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 17 Mar 2000 13:17:58 -0600
From: James Stansell <stansell@wcg.net>
Organization: Williams Network <URL: http://www.williams.com/>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Accessing Jag Objs directly from web server
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
NNTP-Posting-Host: securit-v1.twc.com 151.142.252.11
Message-ID: <347_38D284E6.56D11212@wcg.net>
References: <347_38D2844A.16777D0F@webzonecom.com> <347_0$bpuEEk$GA.34@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26171
Article PK: 156848

Tedd,

Look in the Jaguar Programmer's Guide where it documents how to write various
clients for Jaguar. You basically just have a regular client that runs in the
web server environment. So, for example, with a servlet engine you would have
a Java client.

-james.

"Scott McReynolds [Sybase]" wrote:

> Yes you can do this, but you need some engine to call it. So you would
> need, for example, JSP or Servlets to do this.
>
> "Tedd King" <tedd.king@webzonecom.com> wrote in message
> news:38D2844A.16777D0F@webzonecom.com...
> > Is it possible to call Jag objects, residing on one box, directly from a
> > web server, residing on a different box without going through
> > PowerDynamo? If so, could you include a skeleton coding example or
> > direct me to a source documenting the process? Thanks.