RE: Soap with Axis ?

2002-03-09 Thread The elephantwalker

Eddie,

You might try the a recent thread on www.elephantwalker.com. We reproduced
Bret McLaughlin's example (Java & XML, 2nd edition) with Orion and Apache
SOAP 2.2.

http://www.elephantwalker.com/rfa?id=399

Regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Saturday, March 09, 2002 11:05 AM
To: Orion-Interest
Subject: Soap with Axis ?


Hellu,

Does anyone has an example descriptor of a web service to connect a client
to a EJB through SOAP (Axis of Apache) ?

Most os the examples I find are not based on Ejb connections and on the
Atlassian site I saw a example for Apache Soap but I can't get it to work
with Orion.

Eddie






Re: Container does not passivate my beans.

2002-03-09 Thread Ray Harrison

Lachezar -
One thing you might try (at least for testing purposes) is to move up to 1.5.4 - I do 
see
passivation in this version running an example similar to yours and it doesn't run out 
of memory.
Although I don't quite understand how max-instances,instance-cache-timeout, and 
pool-cache-timeout
fit together, try varying settings on those parameters (in 1.5.4) and see how that 
works for you. 

Cheers
Ray


--- Lachezar Dobrev <[EMAIL PROTECTED]> wrote:
>   Hello.
>   Well... I'm using "Orion/1.5.2 (build 10460)" for reasons other than the
> beans.
>   Well actually I do need more that 10 million rows. No, they are not
> created withing one and the same transaction. Each one is created in a
> different transaction (the code I posted was an excerpt of a stand-alone
> client using com.evermind.server.rmi.RMIInitialContextFactory.
>   The database itself has no problems with a 1 million rows, but the
> container does not passivate/clear/rele4ase the beans with time. They keep
> growing and growing. The test beans had only an Integer primary key and no
> data fields at all. The "real-life" beans will hold 1-2K data. You can see
> the problem... 10K beans will be around 20MB data only. Too much for me.
> 
>   I tried some tune-up settings, but could not get any results except with
> the 'exclusive-write-access="false"', but in that case I get only one bean
> generated, and that shits the hell out of me. I just need to set some
> sensible time-out value, but neither instance-cache-timeout, nor
> validity-timeout, nor pool-cache-timeout, nor max-instances did the job for
> me. Non of these changed the logics. If the exclusive-write-access is true,
> a bean instance gets generated every time I create an entity. If set to
> false I get enormous lag for using the beans. That is not good. Isn't there
> any setting, that can tell orion to flush the bean instances every let's say
> 10 seconds?
> 
>   Thanks for the help anyway. A food for thought.
> 
>   Looking forward for some helper settings.
> 
>   Lachezar.
> 
> > Hi,
> > What version are you using?
> > I saw this problem in 1.0.2.2, but not 1.0.2.2.1 the same way.
> >
> > Do you really need to create 1,000,000 rows in one transaction, or will
> > it actually be many transactions?  If I create 1000 beans/transaction,
> > and call it many times, it seems I only ever have 1000 total used/pooled
> > instances.
> >
> > I did change instance-cache-timeout="1" for the entity bean I am testing.
> >
> > Another change I made (for different reasons) was to set
> > exclusive_write_acesss= "false", I don't know if that effected this at
> all.
> >
> > hope this helps,
> > Roxanne
> >
> > Lachezar Dobrev wrote:
> >
> > >  Hello.
> > >  I sent a message some days ago, to no avail. It didn't show up in the
> > >list.
> > >
> > >  My problem is, that Orion does not passivate my beans.
> > >  I have tested both CMP and BMP, with NO success...
> > >
> > >  I ran a test, which created 1 million bean instances. Orion kept up
> > >creating beans, until at last it ran out of memory (740MB).
> > >  Am i doing something wrong?
> > >
> > >  for (int i = 0; i < 100; i ++){
> > >MyHome.create(i);
> > >  }
> > >
> > >  No success... 1 million. If these are not released imagine what will
> > >happen at a later moment? I need to create beans continuously. Do I have
> to
> > >restart Orion every couple of minutes, just to clear the bean pools?
> > >
> > >  I must say I'm very disappointed. I don't see reason to use Entity
> Beans
> > >any more. I better serialize to files. THAT will do the job.
> > >
> > >  Later all.
> > >  Lachezar
> > >
> > >
> > >
> >
> > --
> >
> > ===
> > Roxanne Tapia
> > Bioscience Division (B-1)
> > Los Alamos National Laboratory
> > 505-665-0206
> > ===
> >
> >
> >
> 
> 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/




Soap with Axis ?

2002-03-09 Thread Eddie

Hellu,

Does anyone has an example descriptor of a web service to connect a client
to a EJB through SOAP (Axis of Apache) ?

Most os the examples I find are not based on Ejb connections and on the
Atlassian site I saw a example for Apache Soap but I can't get it to work
with Orion.

Eddie




Re: Deploying components common to EJB-tier and WEB-tier

2002-03-09 Thread Bill Winspur

I have been putting the shared classes in an extension that I build into
both the ear and the war.
- Original Message -
From: "Sanjay Kumar Pandey" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 10:27 PM
Subject: Deploying components common to EJB-tier and WEB-tier


> Hi,
> I'm sanjay joining you guys for the first time.
>
> Query:
> --
>
> If I have some components that are common to both web-tier and ejb-tier,
> which would be
> the ideal place to store them(other than ../j2ee/home/lib) ??
> Can I put them(the .jar file having the common components) in the same ear
> file as the .jar(for ejbs) and .war(for web components) files and be able
to
> invoke them from both the web tier and ejb tier.
> Can you please tell me how the components can be invoked if I follow this
> approach.
> Thanx in advance,
> Sanjay
>
>





Re: Container does not passivate my beans.

2002-03-09 Thread Lachezar Dobrev

  Hello.
  Well... I'm using "Orion/1.5.2 (build 10460)" for reasons other than the
beans.
  Well actually I do need more that 10 million rows. No, they are not
created withing one and the same transaction. Each one is created in a
different transaction (the code I posted was an excerpt of a stand-alone
client using com.evermind.server.rmi.RMIInitialContextFactory.
  The database itself has no problems with a 1 million rows, but the
container does not passivate/clear/rele4ase the beans with time. They keep
growing and growing. The test beans had only an Integer primary key and no
data fields at all. The "real-life" beans will hold 1-2K data. You can see
the problem... 10K beans will be around 20MB data only. Too much for me.

  I tried some tune-up settings, but could not get any results except with
the 'exclusive-write-access="false"', but in that case I get only one bean
generated, and that shits the hell out of me. I just need to set some
sensible time-out value, but neither instance-cache-timeout, nor
validity-timeout, nor pool-cache-timeout, nor max-instances did the job for
me. Non of these changed the logics. If the exclusive-write-access is true,
a bean instance gets generated every time I create an entity. If set to
false I get enormous lag for using the beans. That is not good. Isn't there
any setting, that can tell orion to flush the bean instances every let's say
10 seconds?

  Thanks for the help anyway. A food for thought.

  Looking forward for some helper settings.

  Lachezar.

> Hi,
> What version are you using?
> I saw this problem in 1.0.2.2, but not 1.0.2.2.1 the same way.
>
> Do you really need to create 1,000,000 rows in one transaction, or will
> it actually be many transactions?  If I create 1000 beans/transaction,
> and call it many times, it seems I only ever have 1000 total used/pooled
> instances.
>
> I did change instance-cache-timeout="1" for the entity bean I am testing.
>
> Another change I made (for different reasons) was to set
> exclusive_write_acesss= "false", I don't know if that effected this at
all.
>
> hope this helps,
> Roxanne
>
> Lachezar Dobrev wrote:
>
> >  Hello.
> >  I sent a message some days ago, to no avail. It didn't show up in the
> >list.
> >
> >  My problem is, that Orion does not passivate my beans.
> >  I have tested both CMP and BMP, with NO success...
> >
> >  I ran a test, which created 1 million bean instances. Orion kept up
> >creating beans, until at last it ran out of memory (740MB).
> >  Am i doing something wrong?
> >
> >  for (int i = 0; i < 100; i ++){
> >MyHome.create(i);
> >  }
> >
> >  No success... 1 million. If these are not released imagine what will
> >happen at a later moment? I need to create beans continuously. Do I have
to
> >restart Orion every couple of minutes, just to clear the bean pools?
> >
> >  I must say I'm very disappointed. I don't see reason to use Entity
Beans
> >any more. I better serialize to files. THAT will do the job.
> >
> >  Later all.
> >  Lachezar
> >
> >
> >
>
> --
>
> ===
> Roxanne Tapia
> Bioscience Division (B-1)
> Los Alamos National Laboratory
> 505-665-0206
> ===
>
>
>





java.lang.CastClassException

2002-03-09 Thread Deniz Bocek



Hi All,
I have following problem with 
orion.
In myservlet ana jsp pages i store some 
informations in the session (some object for example user object,or cusotmer 
ex)
and when i tried to access any object in the 
session some times i recieved java.lag.ClassCastException.
I know in what case this exception throwed 
but in other application servers(resin,tomcat,weblogic) i didnot recieved any 
time this exception.
My code looklies this..Let say after loggin 
the system i store the user object inthe session and all of the jsp pages i 
checks the user object is valid inthe session.
User user = (User) 
session.getAttribute("user');
commands return some times castexception.I suppose 
it return only this exceptiuon when the session is allready timeout.But normally 
if the session is expired the user object should return as null.(so i will 
understant the session expired and i will redirect the page login page 
again..)but onthe orion (only) it throws exception..Same thing is also for 
request.getAttribute("some_object_name") it also throws this exception but some 
times it workss.
And second thing in the the servlet body any 
time if you forward the response and request object with 
RequestDispatcher.forward(req,res) command 
the response and request should forwarded successfuly but when you try to 
forward them second time you will get an exception IllegalStateException.This 
normal.But on the orion you can forward them more then once time and you will 
not cacth an exception..So the code listed below make strange 
thingg.
try {
        
    Do something
    
//
}
catch (Exception ex) {
  
request.setAttribute("exception", 
ex.getMessage());   
url = 
"/error/error.jsp";   
ServletContext sc = 
getServletContext();   
RequestDispatcher rd = 
sc.getRequestDispatcher(response.encodeURL(url));   
rd.forward(request,response);
 }
url="success.jsp";
ServletContext sc = 
getServletContext();RequestDispatcher rd = 
sc.getRequestDispatcher(response.encodeURL(url));rd.forward(request,response);
 
Normaly this code procces like this if you 
cacth an exception while proccesing try body your request and response object 
forwarded the error.jsp page.you will see the error.jsp and the following code 
procced but it could not run because you allready forward them some at the secon 
time you get an exceptiopn but its not important because you saw the error.jsp 
and the other parts not works.
But in orion i forward objects to the 
error.jsp and also it forward the object also success.jsp.So you will see the 
both of page in navigator window at the same time..an it not trows this 
illagelStateException.and also if you are proccessing some operation with 
forwarded response and request object in your succes page it colud run properly 
because the response and request object not forwarded properly for second page 
in fact..
so these are the my problems..
Any comments welcome..
Thanxx..