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.

Creating of multiple EJB instances with one call to create/ejbCreate

9 posts in General Discussion (old) Last posting was on 2000-02-11 06:52:21.0Z
<=one way=> Posted on 2000-02-11 06:52:21.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <OneWay_111@yahoo.com>
Subject: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Fri, 11 Feb 2000 01:52:21 -0500
Lines: 14
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: ip207.an11-new-york4.ny.pub-ip.psi.net 38.26.22.207
Message-ID: <347_tdXY4Egc$GA.96@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29227
Article PK: 161877

There are situations (e.g. batch-like processing) when it is known in
advance that multiple instances of an EJB will need to be created. For these
cases, it seems convenient to have an create/ejbCreate that would take
array(s) of arguments, create multiple instances of the EJB and return an
array of references to the remote interface.

This may go against the spec, I get stub compilation errors when I try to
deploy a component with the create func like that.

Any ideas? TIA.


Dave Wolf [Sybase] Posted on 2000-02-08 06:53:44.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Tue, 8 Feb 2000 01:53:44 -0500
Lines: 33
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: robocop-5-pool11.sybase.com 130.214.144.140
Message-ID: <347_vHuH4Ggc$GA.223@forums.sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29225
Article PK: 161876

Well two things.

1) As long as your parameter implements java.io.Serializable it should be
ok. Arrays shouldnt be an issue.

2) You could I guess have your bean return an array of remote interfaces,
but Im not sure how you would do this via create and Id have to think about
what you would really get. Can you give me a better idea what your trying
to do?

Dave Wolf
Internet Applications Division

<=one way=> <OneWay_111@yahoo.com> wrote in message
news:tdXY4Egc$GA.96@forums.sybase.com...
> There are situations (e.g. batch-like processing) when it is known in
> advance that multiple instances of an EJB will need to be created. For
these
> cases, it seems convenient to have an create/ejbCreate that would take
> array(s) of arguments, create multiple instances of the EJB and return an
> array of references to the remote interface.
>
> This may go against the spec, I get stub compilation errors when I try to
> deploy a component with the create func like that.
>
> Any ideas? TIA.
>
>
>
>


Himagiri Mukkamala Posted on 2000-02-08 07:19:28.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 07 Feb 2000 23:19:28 -0800
From: Himagiri Mukkamala <himagiri@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 36
NNTP-Posting-Host: cyclones.sybase.com 130.214.20.34
Message-ID: <347_389FC380.638C3841@sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29221
Article PK: 161873

How about, u create ur own factory component which has a
method which calls create multiple # of times on the bean u
want and returns a list of remote references

just a thought
himagiri

"Dave Wolf [Sybase]" wrote:
>
> Well two things.
>
> 1) As long as your parameter implements java.io.Serializable it should be
> ok. Arrays shouldnt be an issue.
>
> 2) You could I guess have your bean return an array of remote interfaces,
> but Im not sure how you would do this via create and Id have to think about
> what you would really get. Can you give me a better idea what your trying
> to do?
>
> Dave Wolf
> Internet Applications Division
>
> <=one way=> <OneWay_111@yahoo.com> wrote in message
> news:tdXY4Egc$GA.96@forums.sybase.com...
> > There are situations (e.g. batch-like processing) when it is known in
> > advance that multiple instances of an EJB will need to be created. For
> these
> > cases, it seems convenient to have an create/ejbCreate that would take
> > array(s) of arguments, create multiple instances of the EJB and return an
> > array of references to the remote interface.
> >
> > This may go against the spec, I get stub compilation errors when I try to
> > deploy a component with the create func like that.
> >
> > Any ideas? TIA.
> >
> >
> >
> >

--
Himagiri Mukkamala - EA Server Engineering,
Sybase Inc., 510.922.5477


Dave Wolf [Sybase] Posted on 2000-02-08 07:32:30.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Tue, 8 Feb 2000 02:32:30 -0500
Lines: 58
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: robocop-5-pool11.sybase.com 130.214.144.140
Message-ID: <347_kgc2icgc$GA.295@forums.sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com> <347_389FC380.638C3841@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29220
Article PK: 154773

I was thinking of that. You could probobly do an Enumeration huh?

Dave Wolf
Internet Applications Division

Himagiri Mukkamala <himagiri@sybase.com> wrote in message
news:389FC380.638C3841@sybase.com...
> How about, u create ur own factory component which has a
> method which calls create multiple # of times on the bean u
> want and returns a list of remote references
>
> just a thought
> himagiri
>
> "Dave Wolf [Sybase]" wrote:
> >
> > Well two things.
> >
> > 1) As long as your parameter implements java.io.Serializable it should
be
> > ok. Arrays shouldnt be an issue.
> >
> > 2) You could I guess have your bean return an array of remote
interfaces,
> > but Im not sure how you would do this via create and Id have to think
about
> > what you would really get. Can you give me a better idea what your
trying
> > to do?
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > news:tdXY4Egc$GA.96@forums.sybase.com...
> > > There are situations (e.g. batch-like processing) when it is known in
> > > advance that multiple instances of an EJB will need to be created. For
> > these
> > > cases, it seems convenient to have an create/ejbCreate that would take
> > > array(s) of arguments, create multiple instances of the EJB and return
an
> > > array of references to the remote interface.
> > >
> > > This may go against the spec, I get stub compilation errors when I try
to
> > > deploy a component with the create func like that.
> > >
> > > Any ideas? TIA.
> > >
> > >
> > >
> > >
>
> --
> Himagiri Mukkamala - EA Server Engineering,
> Sybase Inc., 510.922.5477


<=one way=> Posted on 2000-02-08 15:51:39.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <OneWay_111@yahoo.com>
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Tue, 8 Feb 2000 10:51:39 -0500
Lines: 82
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: oppenheimer163.oppenheimerfunds.com 216.44.5.163
Message-ID: <347_5bSVb1kc$GA.295@forums.sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com> <347_389FC380.638C3841@sybase.com> <347_kgc2icgc$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29199
Article PK: 161852

1. Factory as a separate component should work though I am trying to reduce
the number of intercomponent calls.
2. Enumeration also results in stub compilation errors during component
deployment.
3. Basically, what I am trying to is very simple:
Suppose, there is an AccountEJB that has the following create function in
its AccountHome
public Account create(String account_id) throws ...;

I would like to be able to define an additional create func something like
the following:
public Enumeration create(String account_id[]) throws ...;
or
public Account[] create(String account_id[]) throws ...;

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:kgc2icgc$GA.295@forums.sybase.com...
> I was thinking of that. You could probobly do an Enumeration huh?
>
> Dave Wolf
> Internet Applications Division
>
> Himagiri Mukkamala <himagiri@sybase.com> wrote in message
> news:389FC380.638C3841@sybase.com...
> > How about, u create ur own factory component which has a
> > method which calls create multiple # of times on the bean u
> > want and returns a list of remote references
> >
> > just a thought
> > himagiri
> >
> > "Dave Wolf [Sybase]" wrote:
> > >
> > > Well two things.
> > >
> > > 1) As long as your parameter implements java.io.Serializable it should
> be
> > > ok. Arrays shouldnt be an issue.
> > >
> > > 2) You could I guess have your bean return an array of remote
> interfaces,
> > > but Im not sure how you would do this via create and Id have to think
> about
> > > what you would really get. Can you give me a better idea what your
> trying
> > > to do?
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > > news:tdXY4Egc$GA.96@forums.sybase.com...
> > > > There are situations (e.g. batch-like processing) when it is known
in
> > > > advance that multiple instances of an EJB will need to be created.
For
> > > these
> > > > cases, it seems convenient to have an create/ejbCreate that would
take
> > > > array(s) of arguments, create multiple instances of the EJB and
return
> an
> > > > array of references to the remote interface.
> > > >
> > > > This may go against the spec, I get stub compilation errors when I
try
> to
> > > > deploy a component with the create func like that.
> > > >
> > > > Any ideas? TIA.
> > > >
> > > >
> > > >
> > > >
> >
> > --
> > Himagiri Mukkamala - EA Server Engineering,
> > Sybase Inc., 510.922.5477
>
>


Dave Wolf [Sybase] Posted on 2000-02-09 22:05:51.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Wed, 9 Feb 2000 17:05:51 -0500
Lines: 97
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: 158.159.8.17
Message-ID: <347_TCYMQp0c$GA.305@forums.sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com> <347_389FC380.638C3841@sybase.com> <347_kgc2icgc$GA.295@forums.sybase.com> <347_5bSVb1kc$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29046
Article PK: 161399

Ive found the JDBC OCI Driver to be VERY VERY VERY VERY VERY VERY VERY VERY
VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY (ok we get the
point) unstable in a multithreaded environment. Please use the JDBC THIN
driver instead.

Dave Wolf
Internet Applications Division

<=one way=> <OneWay_111@yahoo.com> wrote in message
news:5bSVb1kc$GA.295@forums.sybase.com...
> 1. Factory as a separate component should work though I am trying to
reduce
> the number of intercomponent calls.
> 2. Enumeration also results in stub compilation errors during component
> deployment.
> 3. Basically, what I am trying to is very simple:
> Suppose, there is an AccountEJB that has the following create function in
> its AccountHome
> public Account create(String account_id) throws ...;
>
> I would like to be able to define an additional create func something like
> the following:
> public Enumeration create(String account_id[]) throws ...;
> or
> public Account[] create(String account_id[]) throws ...;
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:kgc2icgc$GA.295@forums.sybase.com...
> > I was thinking of that. You could probobly do an Enumeration huh?
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Himagiri Mukkamala <himagiri@sybase.com> wrote in message
> > news:389FC380.638C3841@sybase.com...
> > > How about, u create ur own factory component which has a
> > > method which calls create multiple # of times on the bean u
> > > want and returns a list of remote references
> > >
> > > just a thought
> > > himagiri
> > >
> > > "Dave Wolf [Sybase]" wrote:
> > > >
> > > > Well two things.
> > > >
> > > > 1) As long as your parameter implements java.io.Serializable it
should
> > be
> > > > ok. Arrays shouldnt be an issue.
> > > >
> > > > 2) You could I guess have your bean return an array of remote
> > interfaces,
> > > > but Im not sure how you would do this via create and Id have to
think
> > about
> > > > what you would really get. Can you give me a better idea what your
> > trying
> > > > to do?
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > > > news:tdXY4Egc$GA.96@forums.sybase.com...
> > > > > There are situations (e.g. batch-like processing) when it is known
> in
> > > > > advance that multiple instances of an EJB will need to be created.
> For
> > > > these
> > > > > cases, it seems convenient to have an create/ejbCreate that would
> take
> > > > > array(s) of arguments, create multiple instances of the EJB and
> return
> > an
> > > > > array of references to the remote interface.
> > > > >
> > > > > This may go against the spec, I get stub compilation errors when I
> try
> > to
> > > > > deploy a component with the create func like that.
> > > > >
> > > > > Any ideas? TIA.
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> > > --
> > > Himagiri Mukkamala - EA Server Engineering,
> > > Sybase Inc., 510.922.5477
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-09 22:06:20.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Wed, 9 Feb 2000 17:06:20 -0500
Lines: 114
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: 158.159.8.17
Message-ID: <347_ESVshp0c$GA.305@forums.sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com> <347_389FC380.638C3841@sybase.com> <347_kgc2icgc$GA.295@forums.sybase.com> <347_5bSVb1kc$GA.295@forums.sybase.com> <347_TCYMQp0c$GA.305@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29045
Article PK: 161398

Ack I replied to the wrong thread. but you get the point.

Dave Wolf
Internet Applications Division

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:TCYMQp0c$GA.305@forums.sybase.com...
> Ive found the JDBC OCI Driver to be VERY VERY VERY VERY VERY VERY VERY
VERY
> VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY (ok we get the
> point) unstable in a multithreaded environment. Please use the JDBC THIN
> driver instead.
>
> Dave Wolf
> Internet Applications Division
>
> <=one way=> <OneWay_111@yahoo.com> wrote in message
> news:5bSVb1kc$GA.295@forums.sybase.com...
> > 1. Factory as a separate component should work though I am trying to
> reduce
> > the number of intercomponent calls.
> > 2. Enumeration also results in stub compilation errors during component
> > deployment.
> > 3. Basically, what I am trying to is very simple:
> > Suppose, there is an AccountEJB that has the following create function
in
> > its AccountHome
> > public Account create(String account_id) throws ...;
> >
> > I would like to be able to define an additional create func something
like
> > the following:
> > public Enumeration create(String account_id[]) throws ...;
> > or
> > public Account[] create(String account_id[]) throws ...;
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:kgc2icgc$GA.295@forums.sybase.com...
> > > I was thinking of that. You could probobly do an Enumeration huh?
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > Himagiri Mukkamala <himagiri@sybase.com> wrote in message
> > > news:389FC380.638C3841@sybase.com...
> > > > How about, u create ur own factory component which has a
> > > > method which calls create multiple # of times on the bean u
> > > > want and returns a list of remote references
> > > >
> > > > just a thought
> > > > himagiri
> > > >
> > > > "Dave Wolf [Sybase]" wrote:
> > > > >
> > > > > Well two things.
> > > > >
> > > > > 1) As long as your parameter implements java.io.Serializable it
> should
> > > be
> > > > > ok. Arrays shouldnt be an issue.
> > > > >
> > > > > 2) You could I guess have your bean return an array of remote
> > > interfaces,
> > > > > but Im not sure how you would do this via create and Id have to
> think
> > > about
> > > > > what you would really get. Can you give me a better idea what
your
> > > trying
> > > > > to do?
> > > > >
> > > > > Dave Wolf
> > > > > Internet Applications Division
> > > > >
> > > > > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > > > > news:tdXY4Egc$GA.96@forums.sybase.com...
> > > > > > There are situations (e.g. batch-like processing) when it is
known
> > in
> > > > > > advance that multiple instances of an EJB will need to be
created.
> > For
> > > > > these
> > > > > > cases, it seems convenient to have an create/ejbCreate that
would
> > take
> > > > > > array(s) of arguments, create multiple instances of the EJB and
> > return
> > > an
> > > > > > array of references to the remote interface.
> > > > > >
> > > > > > This may go against the spec, I get stub compilation errors when
I
> > try
> > > to
> > > > > > deploy a component with the create func like that.
> > > > > >
> > > > > > Any ideas? TIA.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > > --
> > > > Himagiri Mukkamala - EA Server Engineering,
> > > > Sybase Inc., 510.922.5477
> > >
> > >
> >
> >
>
>


Glenn Santa Cruz Posted on 2000-02-10 00:12:46.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 09 Feb 2000 18:12:46 -0600
From: Glenn Santa Cruz <glenn_santacruz@dailyaccess.com>
Organization: Daily Access Concepts
X-Mailer: Mozilla 4.7 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 98
NNTP-Posting-Host: 12.6.74.30
Message-ID: <347_38A2027E.21751BC5@dailyaccess.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com> <347_389FC380.638C3841@sybase.com> <347_kgc2icgc$GA.295@forums.sybase.com> <347_5bSVb1kc$GA.295@forums.sybase.com> <347_TCYMQp0c$GA.305@forums.sybase.com> <347_ESVshp0c$GA.305@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29039
Article PK: 161394

I remember reading somewhere that the JDBC OCI driver was a bit
unstable. Could you please verify that? ;)

Glenn

"Dave Wolf [Sybase]" wrote:
>
> Ack I replied to the wrong thread. but you get the point.
>
> Dave Wolf
> Internet Applications Division
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:TCYMQp0c$GA.305@forums.sybase.com...
> > Ive found the JDBC OCI Driver to be VERY VERY VERY VERY VERY VERY VERY
> VERY
> > VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY (ok we get the
> > point) unstable in a multithreaded environment. Please use the JDBC THIN
> > driver instead.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > news:5bSVb1kc$GA.295@forums.sybase.com...
> > > 1. Factory as a separate component should work though I am trying to
> > reduce
> > > the number of intercomponent calls.
> > > 2. Enumeration also results in stub compilation errors during component
> > > deployment.
> > > 3. Basically, what I am trying to is very simple:
> > > Suppose, there is an AccountEJB that has the following create function
> in
> > > its AccountHome
> > > public Account create(String account_id) throws ...;
> > >
> > > I would like to be able to define an additional create func something
> like
> > > the following:
> > > public Enumeration create(String account_id[]) throws ...;
> > > or
> > > public Account[] create(String account_id[]) throws ...;
> > >
> > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > news:kgc2icgc$GA.295@forums.sybase.com...
> > > > I was thinking of that. You could probobly do an Enumeration huh?
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > Himagiri Mukkamala <himagiri@sybase.com> wrote in message
> > > > news:389FC380.638C3841@sybase.com...
> > > > > How about, u create ur own factory component which has a
> > > > > method which calls create multiple # of times on the bean u
> > > > > want and returns a list of remote references
> > > > >
> > > > > just a thought
> > > > > himagiri
> > > > >
> > > > > "Dave Wolf [Sybase]" wrote:
> > > > > >
> > > > > > Well two things.
> > > > > >
> > > > > > 1) As long as your parameter implements java.io.Serializable it
> > should
> > > > be
> > > > > > ok. Arrays shouldnt be an issue.
> > > > > >
> > > > > > 2) You could I guess have your bean return an array of remote
> > > > interfaces,
> > > > > > but Im not sure how you would do this via create and Id have to
> > think
> > > > about
> > > > > > what you would really get. Can you give me a better idea what
> your
> > > > trying
> > > > > > to do?
> > > > > >
> > > > > > Dave Wolf
> > > > > > Internet Applications Division
> > > > > >
> > > > > > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > > > > > news:tdXY4Egc$GA.96@forums.sybase.com...
> > > > > > > There are situations (e.g. batch-like processing) when it is
> known
> > > in
> > > > > > > advance that multiple instances of an EJB will need to be
> created.
> > > For
> > > > > > these
> > > > > > > cases, it seems convenient to have an create/ejbCreate that
> would
> > > take
> > > > > > > array(s) of arguments, create multiple instances of the EJB and
> > > return
> > > > an
> > > > > > > array of references to the remote interface.
> > > > > > >
> > > > > > > This may go against the spec, I get stub compilation errors when
> I
> > > try
> > > > to
> > > > > > > deploy a component with the create func like that.
> > > > > > >
> > > > > > > Any ideas? TIA.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > > --
> > > > > Himagiri Mukkamala - EA Server Engineering,
> > > > > Sybase Inc., 510.922.5477
> > > >
> > > >
> > >
> > >
> >
> >


Dave Wolf [Sybase] Posted on 2000-02-10 00:46:52.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Creating of multiple EJB instances with one call to create/ejbCreate
Date: Wed, 9 Feb 2000 19:46:52 -0500
Lines: 136
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: 158.159.8.17
Message-ID: <347_byclPD2c$GA.223@forums.sybase.com>
References: <347_tdXY4Egc$GA.96@forums.sybase.com> <347_vHuH4Ggc$GA.223@forums.sybase.com> <347_389FC380.638C3841@sybase.com> <347_kgc2icgc$GA.295@forums.sybase.com> <347_5bSVb1kc$GA.295@forums.sybase.com> <347_TCYMQp0c$GA.305@forums.sybase.com> <347_ESVshp0c$GA.305@forums.sybase.com> <347_38A2027E.21751BC5@dailyaccess.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:29038
Article PK: 161392

Hahaha yeah that might be an understatement.

Dave Wolf
Internet Applications Division

Glenn Santa Cruz <glenn_santacruz@dailyaccess.com> wrote in message
news:38A2027E.21751BC5@dailyaccess.com...
> I remember reading somewhere that the JDBC OCI driver was a bit
> unstable. Could you please verify that? ;)
>
> Glenn
>
> "Dave Wolf [Sybase]" wrote:
> >
> > Ack I replied to the wrong thread. but you get the point.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:TCYMQp0c$GA.305@forums.sybase.com...
> > > Ive found the JDBC OCI Driver to be VERY VERY VERY VERY VERY VERY VERY
> > VERY
> > > VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY (ok we get the
> > > point) unstable in a multithreaded environment. Please use the JDBC
THIN
> > > driver instead.
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > > news:5bSVb1kc$GA.295@forums.sybase.com...
> > > > 1. Factory as a separate component should work though I am trying to
> > > reduce
> > > > the number of intercomponent calls.
> > > > 2. Enumeration also results in stub compilation errors during
component
> > > > deployment.
> > > > 3. Basically, what I am trying to is very simple:
> > > > Suppose, there is an AccountEJB that has the following create
function
> > in
> > > > its AccountHome
> > > > public Account create(String account_id) throws ...;
> > > >
> > > > I would like to be able to define an additional create func
something
> > like
> > > > the following:
> > > > public Enumeration create(String account_id[]) throws ...;
> > > > or
> > > > public Account[] create(String account_id[]) throws ...;
> > > >
> > > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > > news:kgc2icgc$GA.295@forums.sybase.com...
> > > > > I was thinking of that. You could probobly do an Enumeration huh?
> > > > >
> > > > > Dave Wolf
> > > > > Internet Applications Division
> > > > >
> > > > > Himagiri Mukkamala <himagiri@sybase.com> wrote in message
> > > > > news:389FC380.638C3841@sybase.com...
> > > > > > How about, u create ur own factory component which has a
> > > > > > method which calls create multiple # of times on the bean u
> > > > > > want and returns a list of remote references
> > > > > >
> > > > > > just a thought
> > > > > > himagiri
> > > > > >
> > > > > > "Dave Wolf [Sybase]" wrote:
> > > > > > >
> > > > > > > Well two things.
> > > > > > >
> > > > > > > 1) As long as your parameter implements java.io.Serializable
it
> > > should
> > > > > be
> > > > > > > ok. Arrays shouldnt be an issue.
> > > > > > >
> > > > > > > 2) You could I guess have your bean return an array of remote
> > > > > interfaces,
> > > > > > > but Im not sure how you would do this via create and Id have
to
> > > think
> > > > > about
> > > > > > > what you would really get. Can you give me a better idea what
> > your
> > > > > trying
> > > > > > > to do?
> > > > > > >
> > > > > > > Dave Wolf
> > > > > > > Internet Applications Division
> > > > > > >
> > > > > > > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > > > > > > news:tdXY4Egc$GA.96@forums.sybase.com...
> > > > > > > > There are situations (e.g. batch-like processing) when it is
> > known
> > > > in
> > > > > > > > advance that multiple instances of an EJB will need to be
> > created.
> > > > For
> > > > > > > these
> > > > > > > > cases, it seems convenient to have an create/ejbCreate that
> > would
> > > > take
> > > > > > > > array(s) of arguments, create multiple instances of the EJB
and
> > > > return
> > > > > an
> > > > > > > > array of references to the remote interface.
> > > > > > > >
> > > > > > > > This may go against the spec, I get stub compilation errors
when
> > I
> > > > try
> > > > > to
> > > > > > > > deploy a component with the create func like that.
> > > > > > > >
> > > > > > > > Any ideas? TIA.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > > --
> > > > > > Himagiri Mukkamala - EA Server Engineering,
> > > > > > Sybase Inc., 510.922.5477
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >