Re: How do you tell orion not to autocommit?

2002-05-25 Thread prasanth sb

Hi Keith,
 If you are using Bean managed persistence, then get the connection 
object using jndi lookup, then use connection.setAutocommit(false). I am not 
aware how to do this in container managed persistence.Can some great guys 
explain this?Wish you a good day.
thanks,
Prasanth
"God gives you more than you expect"




>From: "Keith Kwiatek" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: How do you tell orion not to autocommit?
>Date: Wed, 17 Apr 2002 07:16:48 -0400
>
>Hello,
>
>I am running orion with a datasource and  some jsp's with some jdbc beans.
>When I insert/update/delete it seems to be set to autocommit. How do I tell
>orion not to autocommit?
>
>Thanks,
>Keith
>
>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





RE: XSL and Sitemesh on Orion

2002-04-29 Thread prasanth sb

Dearest elephantwalker and other dearest friends,
   I have a doubt in this xsl rendering.
I used xalan and xerces parser which orion uses for xml to html rendering. I 
used my own xsl servlet to port my code to any application server which is 
not having an xsl servlet. But I am ending up in one trouble. Transformation 
is working fine. But if I need to output as xml,
I will use response.setContentType("text/xml"); this works fine in servlets. 
But when I use the same in jsps in an ear file, this donot happen. Can we 
change the content type of jsp's?

thanks,
Prasanth.






>From: "The elephantwalker" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: XSL and Sitemesh on Orion
>Date: Mon, 22 Apr 2002 20:19:27 -0700
>
>retry ...
>-Original Message-
>From: The elephantwalker [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 22, 2002 8:59 AM
>To: Orion-Interest; [EMAIL PROTECTED]
>Subject: RE: XSL and Sitemesh on Orion
>
>
>Dear Peter,
>
>Theres a bug in sitemesh so that only jsp files work. I believe that xsl
>would have the same limitation. I reported this on sourceforge. There's an
>easy fix to this:
>
>http://sourceforge.net/tracker/index.php?func=detail&aid=534456&group_id=989
>0&atid=109890
>
>and
>
>http://sourceforge.net/tracker/index.php?func=detail&aid=534772&group_id=989
>0&atid=109890
>
>Of course you will need to make the changes in the sitemesh code, and
>re-build it, but that's a snap. I would attach the fix on elephantwalker,
>but I am unclear about the Opensymphony license...any way the links above
>give the exact changes necessary to make this work.
>
>Regards,
>
>the elephantwalker
>www.elephantwalker.com
>
>
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Peter Beck
>Sent: Monday, April 22, 2002 5:11 AM
>To: Orion-Interest
>Subject: XSL and Sitemesh on Orion
>
>
>I am using OpenSymphony Sitemesh on Orion Application Server 1.5.4.
>
>The Orion XSL servlet (default config in global-web-application.xml)
>is used to transform XML files to HTML.
>The transformation works fine, but the transformed HTML is no longer
>passed to the sitemesh filter and is displayed without layout.
>
>What can I do to make this work?
>Does anybody have a hint, please?
>
>Peter
>
>--
>Peter Beck, JOANNEUM RESEARCH Forschungsges.m.b.H.
>[EMAIL PROTECTED]
>
>
>
>


s

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx





RE: CMP 2.0 vs BMP - Which performes better?

2002-04-05 Thread prasanth sb

Hi elephantwalker,
 A big thanks for the help. This is a great support from 
elephantwalker with quick replies.God bless.
thanks,
Prasanth.




>From: "The elephantwalker" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: CMP 2.0 vs BMP - Which performes better?
>Date: Fri, 5 Apr 2002 11:54:00 -0800
>
>See my earlier post on this thread. You can use custom finders with
>_extreme_ ease in Orion. I gave an example for Oracle (since Oracle does 
>not
>_have_ the sql LIMIT statement). For other databases, you could use a LIMIT
>statement in your custom finder.
>
>Regards,
>
>the elephantwalker
>www.elephantwalker.com
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb
>Sent: Friday, April 05, 2002 7:20 AM
>To: Orion-Interest
>Subject: RE: CMP 2.0 vs BMP - Which performes better?
>
>
>Hi Jeff and other dear friends,
>  I had this doubt in my mind very earlier.
>When we load very large amount of data from the database, how it can be
>handled? If we use result sets and iterate, this is going to take a long
>time? How can we limit the number of records that is present
>in the memory at a time?
>
>thanks,
>Prasanth.
>
>
>
>
>
> >From: "Jeff Schnitzer" <[EMAIL PROTECTED]>
> >Reply-To: Orion-Interest <[EMAIL PROTECTED]>
> >To: Orion-Interest <[EMAIL PROTECTED]>
> >Subject: RE: CMP 2.0  vs BMP -  Which performes better?
> >Date: Thu, 4 Apr 2002 16:22:17 -0800
> >
> > > From: Curt Smith [mailto:[EMAIL PROTECTED]]
> > >
> > > > There are several constraints to BMP beans which make them almost
> >always
> > > > perform slower than CMP beans.  In particular, the inability to bulk
> > > > load beans from finder methods is a nearly fatal defect.
> > >
> > > I'd like to know more of the details?
> > >
> > > How does the container deal with the following finder in CMP
> > > differently than BMP?
> > >
> > > Collection remoteRefs = home.findSalaryGreaterThan ( "50,000");
> >
> >Lets assume this produces 1000 results which you then iterate through.
> >
> >With BMP beans, this will require 1001 database queries.  First the
> >finder, then 1000 selects to load each bean.
> >
> >With CMP, it's actually rather ambiguous what will happen.  Last time I
> >checked, Orion will load all the beans into an ArrayList.  Yes, lots of
> >memory consumed, but a *lot* better than 1001 database hits.  Admittedly
> >a bigger problem with orders of magnitude more objects, but even with
> >BMP you're going to choke if the finder query returns a billion rows of
> >primary key data.
> >
> >Some containers (not Orion, I don't think) allow you to specify that
> >finders should lazy-load beans.  But this brings you back to BMP
> >performance.  Some containers allow you to define "field groups" to
> >minimize the amount of data brought back (especially useful if you store
> >blobs), but not Orion.
> >
> >Personally, I don't understand why containers don't implement
> >Collections backed by the ResultSet directly.  98% of the time, the
> >client just creates an iterator and walks the results.  If the client
> >does something that the ResultSet can't support, build the full
> >Collection.
> >
> >Jeff Schnitzer
> >[EMAIL PROTECTED]
> >
>
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>
>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





RE: CMP 2.0 vs BMP - Which performes better?

2002-04-05 Thread prasanth sb

Hi Jeff and other dear friends,
 I had this doubt in my mind very earlier.
When we load very large amount of data from the database, how it can be 
handled? If we use result sets and iterate, this is going to take a long 
time? How can we limit the number of records that is present
in the memory at a time?

thanks,
Prasanth.





>From: "Jeff Schnitzer" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: CMP 2.0  vs BMP -  Which performes better?
>Date: Thu, 4 Apr 2002 16:22:17 -0800
>
> > From: Curt Smith [mailto:[EMAIL PROTECTED]]
> >
> > > There are several constraints to BMP beans which make them almost
>always
> > > perform slower than CMP beans.  In particular, the inability to bulk
> > > load beans from finder methods is a nearly fatal defect.
> >
> > I'd like to know more of the details?
> >
> > How does the container deal with the following finder in CMP
> > differently than BMP?
> >
> > Collection remoteRefs = home.findSalaryGreaterThan ( "50,000");
>
>Lets assume this produces 1000 results which you then iterate through.
>
>With BMP beans, this will require 1001 database queries.  First the
>finder, then 1000 selects to load each bean.
>
>With CMP, it's actually rather ambiguous what will happen.  Last time I
>checked, Orion will load all the beans into an ArrayList.  Yes, lots of
>memory consumed, but a *lot* better than 1001 database hits.  Admittedly
>a bigger problem with orders of magnitude more objects, but even with
>BMP you're going to choke if the finder query returns a billion rows of
>primary key data.
>
>Some containers (not Orion, I don't think) allow you to specify that
>finders should lazy-load beans.  But this brings you back to BMP
>performance.  Some containers allow you to define "field groups" to
>minimize the amount of data brought back (especially useful if you store
>blobs), but not Orion.
>
>Personally, I don't understand why containers don't implement
>Collections backed by the ResultSet directly.  98% of the time, the
>client just creates an iterator and walks the results.  If the client
>does something that the ResultSet can't support, build the full
>Collection.
>
>Jeff Schnitzer
>[EMAIL PROTECTED]
>


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx





Re: Taglib + jsp:include + sendRedirect does not work?

2002-04-05 Thread prasanth sb

Hi Anders,
   First complete the tag library and then use jsp:include.





thanks,
Prasanth





>From: Anders Callertun <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: Taglib + jsp:include + sendRedirect does not work?
>Date: Tue, 2 Apr 2002 17:31:34 +0200
>
>The following jsp-file generates this Exception:
>
>java.lang.IllegalStateException: Response has already been committed, be
>sure not to write to the OutputStream or to trigger a commit due to any
>other action before calling this method.
>
>test.jsp--
><%@taglib uri="utiltags" prefix="util" %>
>
> from="[EMAIL PROTECTED]"
> to="[EMAIL PROTECTED]"
> subject="testmail">
>   
>
>
><%
>response.sendRedirect("http://www.google.com/";);
>%>
>--
>
>If I instead of the jsp:include tag, inserts the textfile in the
>jsp-page, it works. I've tried other taglibs and used a jsp:include
>for the body, for both Orion 1.5.2 and 1.5.3 and I get the same error.
>
>Am I doing something wrong? Is it Orion? Or is this not a valid thing to
>do?
>
>
>Thanks,
>
>Anders
>


_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Re: jsp:setProperty blanks and *

2002-03-22 Thread prasanth sb

Use ?x=''&y«c I think this works.


>From: "Dave Ford" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: jsp:setProperty blanks and *
>Date: Fri, 22 Mar 2002 10:22:24 -0800
>
>Take the following query string:
>
>x=&y«c //x is empty string
>
>And the following JSP tag:
>
>
>
>Problem:
>
>myFoo.setY is called but myFoo.setX is not called. Suppose I want to change
>the value of myFoo.x to an empty string. How would I achieve this? This
>seems to make the * feature almost useless. Or am I missing something?
>
>Dave Ford
>Smart Soft - The Developer Training Company
>http://www.smart-soft.com
>
>




_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Re: JSP comment tag.

2002-03-15 Thread prasanth sb

Hi Jose,
I havent tried this. What I feel is you have given browser comment.
Try giving jsp comments and see.
jsp comments are shown below

<%%>



>From: "Jose Mena" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: JSP comment tag.
>Date: Fri, 15 Mar 2002 11:50:11 +0100
>
>Hi, I have a problem when putting comments in JSP code. Orion doesn't
>process the code inside a comment, but if i look at the sun's jsp
>reference(http://java.sun.com/products/jsp/tags/11/syntaxref11.fm1.html) it
>says that the server must process it when it's put inside a comment.
>Here you are an example extracted from the browser's source code(Explorer):
>
>
>
>as you can see it shows my code to the end user's browser without
>processing
>it.
>Do you know if there is a setting that controls the comment processing
>behaviour in orion?
>Thank you.
>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





RE: Login username and password:-LDAP DOUBT.

2002-03-10 Thread prasanth sb

Dear elephantwalker,
 Another great article. A lot of thanks for the help. I have a doubt.Is 
this ldap(light weight directory access protocol) means restricting access 
to a particular directory as we are doing with Orion
in this article?

thanks,
Prasanth.





>From: "The elephantwalker" <[EMAIL PROTECTED]>
>To: "Orion-Interest" <[EMAIL PROTECTED]>, 
><[EMAIL PROTECTED]>
>Subject: RE: Login username and password
>Date: Sun, 3 Mar 2002 15:27:17 -0800
>
>Dear Prasanth,
>
>I have put together a simple set of lessons for user security...not to be
>confused with personalization.
>
>http://www.elephantwalker.com/rfa?id=404
>
>You will need a password to see this, but its free to join the
>elephantwalker. I hope the lessons are easy to understand...after the first
>two lessons, you can configure your web application for login.
>
>Regards,
>
>the elephantwalker
>www.elephantwalker.com
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb
>Sent: Sunday, March 03, 2002 3:05 AM
>To: Orion-Interest
>Subject: Login username and password
>
>
>Dear friends,
>   I have seen in many application servers a login username and
>password popping up for the entry allowing to the site. Will some one
>help in getting the informations regarding this with orion application
>server.Wish a good day.
>thanks,
>Prasanth
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.





Re: Login username and password

2002-03-10 Thread prasanth sb

Hi Scott,
 Thanks a lot for the information.
thnks,
Prasanth


>From: Scott Farquhar <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: Re: Login username and password
>Date: Mon, 04 Mar 2002 10:04:25 +1100
>
>Prasanth,
>
>This article may help you:
>   http://kb.atlassian.com/content/atlassian/howto/securingdirectory.html
>
>Cheers,
>Scott
>
>Scott Farquhar :: [EMAIL PROTECTED]
>
>Atlassian :: http://www.atlassian.com
>  Supporting YOUR J2EE World
>
>prasanth sb wrote:
>
>>Dear friends,
>>  I have seen in many application servers a login username and
>>password popping up for the entry allowing to the site. Will some one
>>help in getting the informations regarding this with orion application
>>server.Wish a good day.
>>thanks,
>>Prasanth
>>
>>_
>>MSN Photos is the easiest way to share and print your photos:
>>http://photos.msn.com/support/worldwide.aspx
>>
>>
>>
>
>
>--
>




_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Login username and password

2002-03-03 Thread prasanth sb

Dear friends,
  I have seen in many application servers a login username and
password popping up for the entry allowing to the site. Will some one
help in getting the informations regarding this with orion application 
server.Wish a good day.
thanks,
Prasanth

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx





Re: url.openConnection() doesn't allow to pass objects or attributes

2002-02-10 Thread prasanth sb

I used doPost only but still it doesn't.


>From: "Kesav Kumar" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: Re: url.openConnection() doesn't allow to pass objects or
>attributes
>Date: Sun, 3 Feb 2002 08:23:09 -0800
>
>I just noticed one more thing with your servlet.  It seems that you are
>using doGet method in your servlet.  If you do a post request through URL
>you need to write doPost method in your servlet.
>
>-kesav kumar
>[EMAIL PROTECTED]
>
>- Original Message -
>From: "prasanth sb" <[EMAIL PROTECTED]>
>To: "Orion-Interest" <[EMAIL PROTECTED]>
>Sent: Sunday, February 03, 2002 2:51 AM
>Subject: Re: url.openConnection() doesn't allow to pass objects or
>attributes
>
>
> > I set the doOuptut parameters ,but still in orion it is not working.
> > Can you please help me in this?
> >
> >
> >
> > >From: "Kesav Kumar" <[EMAIL PROTECTED]>
> > >Reply-To: Orion-Interest <[EMAIL PROTECTED]>
> > >To: Orion-Interest <[EMAIL PROTECTED]>
> > >Subject: Re: url.openConnection() doesn't allow to pass objects or
> > >attributes
> > >Date: Sat, 26 Jan 2002 08:12:31 -0800
> > >
> > >For Posting data from through URLs you have to set doOutput to true.
> > >con.setDoOutput(true);
> > >con.setDoInput(true);
> > >
> > >Once you set the above you can get the OutputStream associated with
> > >connection and send parameters.
> > >
> > >For more info read the article at JavaWorld
> > >http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
> > >
> > >-kesav kumar
> > >
> > >- Original Message -
> > >From: "prasanth sb" <[EMAIL PROTECTED]>
> > >To: "Orion-Interest" <[EMAIL PROTECTED]>
> > >Sent: Saturday, January 26, 2002 1:27 AM
> > >Subject: url.openConnection() doesn't allow to pass objects or
>attributes
> > >
> > >
> > >Hello dear friends,
> > >   Please help me with a strange problem happening with
> > >orion. I am calling url.openConnection() to a servlet page.When I call
> > >this,
> > >the call goes to doGet method of the servlet. But it has to go to the
> > >doPost
> > >method. Second problem is I am able to read the values from the callee
> > >servlet. But I am not able to pass the values to the callee servlet.I
>am
> > >trying to pass objects in a stream.I have seen this problem reported in
>the
> > >mailing list. Can anyone help me in this?
> > >
> > >Please find the sample code,
> > >
> > >Caller Servlet
> > >
> > >URLConncetion con =url.openConnection("http://ipname:port/Servlet1";);
> > >ObjectOutputStream os = new ObjectOutputStream(con.getOutputStream());
> > >os.writeObject("string object");
> > >
> > >Callee servlet(Servlet1.java)
> > >
> > >
> > >public void doGet(HttpServletRequest req,HttpServletResponse res) {
> > >ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
> > >ois.readObject();//This line , it prints null.It wont print the string
> > >//"string object".But if I return values from the servlet1, then Caller
> > >servlet is able to read.
> > >
> > >Can some one throw some light on this.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >_
> > >Join the world's largest e-mail service with MSN Hotmail.
> > >http://www.hotmail.com
> > >
> > >
> > >
> > >
> >
> >
> > _
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> >
>


_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Re: url.openConnection() doesn't allow to pass objects or attributes

2002-02-03 Thread prasanth sb

I set the doOuptut parameters ,but still in orion it is not working.
Can you please help me in this?



>From: "Kesav Kumar" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: Re: url.openConnection() doesn't allow to pass objects or 
>attributes
>Date: Sat, 26 Jan 2002 08:12:31 -0800
>
>For Posting data from through URLs you have to set doOutput to true.
>con.setDoOutput(true);
>con.setDoInput(true);
>
>Once you set the above you can get the OutputStream associated with
>connection and send parameters.
>
>For more info read the article at JavaWorld
>http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
>
>-kesav kumar
>
>- Original Message -
>From: "prasanth sb" <[EMAIL PROTECTED]>
>To: "Orion-Interest" <[EMAIL PROTECTED]>
>Sent: Saturday, January 26, 2002 1:27 AM
>Subject: url.openConnection() doesn't allow to pass objects or attributes
>
>
>Hello dear friends,
>   Please help me with a strange problem happening with
>orion. I am calling url.openConnection() to a servlet page.When I call 
>this,
>the call goes to doGet method of the servlet. But it has to go to the 
>doPost
>method. Second problem is I am able to read the values from the callee
>servlet. But I am not able to pass the values to the callee servlet.I am
>trying to pass objects in a stream.I have seen this problem reported in the
>mailing list. Can anyone help me in this?
>
>Please find the sample code,
>
>Caller Servlet
>
>URLConncetion con =url.openConnection("http://ipname:port/Servlet1";);
>ObjectOutputStream os = new ObjectOutputStream(con.getOutputStream());
>os.writeObject("string object");
>
>Callee servlet(Servlet1.java)
>
>
>public void doGet(HttpServletRequest req,HttpServletResponse res) {
>ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
>ois.readObject();//This line , it prints null.It wont print the string
>//"string object".But if I return values from the servlet1, then Caller
>servlet is able to read.
>
>Can some one throw some light on this.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>_
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>
>


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx





url.openConnection() doesn't allow to pass objects or attributes

2002-01-26 Thread prasanth sb

Hello dear friends,
  Please help me with a strange problem happening with
orion. I am calling url.openConnection() to a servlet page.When I call this,
the call goes to doGet method of the servlet. But it has to go to the doPost
method. Second problem is I am able to read the values from the callee
servlet. But I am not able to pass the values to the callee servlet.I am
trying to pass objects in a stream.I have seen this problem reported in the
mailing list. Can anyone help me in this?

Please find the sample code,

Caller Servlet

URLConncetion con =url.openConnection("http://ipname:port/Servlet1";);
ObjectOutputStream os = new ObjectOutputStream(con.getOutputStream());
os.writeObject("string object");

Callee servlet(Servlet1.java)


public void doGet(HttpServletRequest req,HttpServletResponse res) {
ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
ois.readObject();//This line , it prints null.It wont print the string
//"string object".But if I return values from the servlet1, then Caller
servlet is able to read.

Can some one throw some light on this.



















_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com