Server side paging hughe tables.
Hi,
If I want to do a findAll () on a serious big table (million records), I need a paging mechanism, to avoid an out of memory exception.
This table has a primary key consisting of one (String) field, so no complex stuff there. Is there any easy way to do this with ejbql? I'm using weblogic 6 as the application server.
Cheers.
forget about ejbql...
ejbql is not good solution for big table
use fast lane pattern, and directly access database.
This is oracle example.
oracle hint and inline view and good index is key point.
String query= "select "+REQUEST_LIST_SELECT+" from "+TABLE_SERVICE_REQUEST +","+
" (select /*+ INDEX_DESC("+TABLE_SERVICE_REQUEST+" "+INDEX_SERVICE_REQUEST+")*/ "+
" ROWNUM NUM,SERVICE_CODE from "+TABLE_SERVICE_REQUEST+
" where ROWNUM<="+(offset+numberPerPage)+
getServiceRequestWhere(searchStart,searchEnd,keyward)+
" ) indexer "+
" where NUM>"+offset+" and indexer.SERVICE_CODE="+TABLE_SERVICE_REQUEST+".SERVICE_CODE "+
" order by SERVICE_CODE desc";
Similar Messages
-
Server-side includes from a table
The instructions are very basic and do not include instructions on how to use server-side includes from a table.
I can find nothing on Google or at Adobe on this subject, not even on the old InterAKT site.
Has anyone got a demo, tutorial etc. or just some advice please.
I have created a table in the database, embedded the script in the page but what now?
I find the server-side includes from a list easy to use but it has limitations that I hope server-side includes from a table will overcome.I found the answer, all on my own. Go to http://www.interaktonline.com/Documentation/MXKollection/108000_sever_side_includes.htm
Its a video demo and all is revealed. -
Needs a background webdynpro application running at the server side
Hi All,
We have a requirement wherein we need to have an application running all the time at the server side to capture the response coming from a web application. Based on the response that the application receives, it needs to update some backend R/3 tables.
We are thinking of a webdynpro java application.
Can anyone suggest what kind of application needs to be implemented here?
And what would be the steps required to run the application at the server side without calling the application.
Thanks & Regards,
AnuragHi Robin,
Thanks for the detailed explaination.
This may sound silly to you but I've another doubt which is as follows:
As you mentioned that the external web application will be sending requests to our Web service(in SOAP envelopes) and rest of the functionality can be achieved by our web service.
Actually, we are expecting only responses from the external web application. The thing is that we are sending the requests to the external web applications from our custom webdynpro application and in return the web application will be sending us 2 responses.
First response would be back to our WD java application URL(to the browser in which WD java app is running) which would get the response and display some message based on the response.
Second would be to this web service which you have just suggested. We are having two responses so that even if the browser in which the WD java application is running gets accidentally closed, the response from the external web application must get captured somewhere else and should not get lost in any case.
So, now since we are only expecting the response from the web application and we do not want any requests from the web application to our web service; how is this possible?
I am asking the above question because you have mentioned that the external web application has to request our Web service but we want is only this web service to capture the response coming from the Web application.
Or is it like the web application will send us the response string as request string to our Web Service and the web service will capture these response parameters as request parameters from the web application and do the further processing.
But in that case, we do not want any response to be sent by the Web Service to the external web application.
Please suggest if this is possible.
Once again, many thanks for the help so far.
Thanks & Regards,
Anurag -
Minimise Server Click in a Table view in BSP
Hello All
I have a issue related to TableView in a BSP Application
Our requirement is :
User want to edit a coolumn value for few records displayed in a Table View . as per My knowledge , when a row is selected in a table view , system go to server side and takes time . user did not liked that. He want to get it done faster that is selection of rows should be faster.
How can we achiew row selection in a tableview without server clicks....we also want to find selected rows.
can we achieve this and how ? Please let me know at the earliest.
Thanks
Rajivdon't implement the onRowSelection handler for the table view. Let the user choose the several lines and add a button called 'Choose' for e.g. Only when the button is clicked you start processing the selection.
-
Using Server Side Cookies between pages of a BSP application
Hi,
I have Page1 which will retrieve some data into a internal table. Once user performs an action I want to set a server side cookie in Page1 and then retrieve that cookie with data in Page2 of the same BSP and display it?
Is this possible using set/get server cookies?
Thanks
KiranHi Kiran,
Yes, you can.
Basically, you set a server-side cookie in the event OnInputProcessing of Page 1 (or the MVC equivalent) :
cl_bsp_server_side_cookie=>set_server_cookie(
exporting
name = 'TEST'
application_namespace = 'NONE'
username = 'NONE'
session_id = 'NONE'
data_value = <your_data_here>
data_name = 'NONE'
expiry_time_rek = 3600 ).
And, you retrieve this information in the OnInitialization event of Page 2 :
cl_bsp_server_side_cookie=>get_server_cookie(
exporting
name = 'TEST'
application_namespace = 'NONE'
username = 'NONE'
session_id = 'NONE'
data_name = 'NONE'
IMPORTING
expiry_date = w_date
expiry_time = w_time
CHANGING
data_value = <your_data_here> ).
Best regards,
Guillaume -
Server side function not get called after dispatching cairngorm event second time on same page
Hi All,
I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
and clicking of any button I do the respected functionality. For ex:
I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
I displayed a message that the record is added & update the data source.
After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
event not call the server side function - after debugging I find out that cairngorm event reach to the corresponding excutecommand function & called that function but it is not calling my server side function & I also din't get any error message .
I dont know why the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second time.
Could any of you please tell me why the cairngorm event not calling the server side function.
Thank you for your kind assistance.
Regards,
UjjwalOkay, well I think I've worked out the problem.
In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
<%@ Assembly Name="AssemblyName" %> -
SAPUI5 Export to Excel in Server side
Hi Experts,
I have a requirement to export SAPUI5 table to excel.
I tried different client side download and most of them failed in IE browser
Export sap.ui.table.Table as CSV
http://jsfiddle.net/hybrid13i/JXrwM/
Can anyone able to guide me to implement it in server side?
In my UI5 application I am having JSON data.
one way is :
I will create a "form" and will set the content in that form. And will submit that form.
$("#myForm").submit();
Now I have to route this to my java server class for converting it to excel. In that point I am struggling.
Can anyone help me?
Regards,
JacobHi,
Check if this blog Displaying backend data both as SAPUI5 Table and an Excel File helps you.
Regards,
Chandra -
How to delete server side cookie
Hy ppl.
i would like to know how i can get rid of server side cookies which date is in the past?
I've trie it with
call method cl_bsp_server_side_cookie=>DELETE_SERVER_COOKIE
but the there was no resulthi
good
Class CL_BSP_SERVER_SIDE_COOKIE provides methods for setting, getting, deleting, and managing cookies on the server.
Server-side cookies are persistent data, similar to the usual client-side cookies. However, while on the client-side, there are restrictions that limit the size of cookies to around 4 kilobytes per cookie, the number of cookies to 300 in total and 20 per server or domain, server-side cookies are subject to no such restrictions. A server-side cookie is stored on the database.
For technical reasons, each individual cookie can be stored in one of the following ways:
as a field or
as a structure or
as an internal table
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/content.htm
thanks
mrutyun^ -
Displaying server-side include in DW8
Sorry if this has been asked before? I did search and
couldn't find it (this site is painfully slow and searching is
worse)
I am trying to figure out how to make DW8 show my server-side
include files in the design view. My site uses SSI for all headers
and footers, so every page has at least 2 SSI's. They show up as
the SSI mark on the page, but not the code or graphical
representation of what is in the SSI. I need to have that code
snipet show up in my design view. The only way I have been able to
figure out how to do it, is to reinsert the SSI again from the
menu, and then delete it. Doing it that way, the original ssi that
is listed on the page will display graphicly in the design view.
I do have the option in the preferences - Invisible Elements
- Server-Side includes: and the check box is checked / enabled.
If I could, while I'm here, one other question. I have DW
code rewriting turned on, and it shows me each time I open a file,
what corrections it has made. But if I save the file, and then open
it again, it shows me the exact same corrections being done again.
Is there a trick to make DW8 save the corrections it automatically
makes to the files?
many thanks in advance.> I know that there were major changes between 4 and 8.
One of which was tightening the tolerance for bad code. CS3
is very strict
about displaying proper code.
However, your fragments below look OK.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"mmdlcab" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
bregent
> Do any of your included files include html, head or body
tags? If so,
> that's
> the problem. Having those creates invalid html which DW
will not
> render.
>
> Thats a great thought, but I just checked, and no, none
of those tags are
> in
> the files. I'll see if I can attach the code for the 2
files and see if
> that
> helps any. The header file does have my menu system
pasted into the text
> of
> the include file, but that has not caused problems
previously. FWIW, this
> worked fine in DW4 which is what I upgraded from. In
version 4, the
> headers
> and footers showed up fine in desgin view. I know that
there were major
> changes between 4 and 8.
>
> Header include file:
> ----------------------------
> <table border="0" align="center" width="750"
height="110">
> <tr>
> <td><a href="/index2.html"><img
src="/images/color_logo.gif"
> width="110"
> height="107" alt="MMDL Logo" border="0"
/></a></td>
> <td align="center" valign="middle"><a
href="/index2.html"><img
> src="/images/header4.gif" width="450" height="110"
border="0" alt="MMDL -
> The
> worlds largest steel tip dart league"
/></a></td>
> <td align="center" valign="middle"><a
href="testpage.html"></a><a
> href="
http://www.dmisports.com/darts_main.html"><img
> src="/images/dmilogo_small.gif" alt="DMI Sports"
width="110" height="77"
> border="0" longdesc="
http://www.dmisports.com"
/><br />
> <!-- <a href="
http://www.mmdl.org/dmi_flyer.pdf"
> target="_blank">League Board
</a></td>-->
> </a><a href="
http://www.mmdl.org/dmi_flyer.pdf">League
Board </a></td>
> </tr>
> </table>
> <!-- DHTML Menu Builder Loader Code START
--><script language="JavaScript"
> type="text/javascript">
> var navVer = navigator.appVersion;
> if(navVer.substr(0,3) >= 4)
> if((navigator.appName=="Netscape") &&
(parseInt(navigator.appVersion)==4))
> {
> document.write('<' + 'script language="JavaScript"
type="text/javascript"
> src="
http://www.mmdl.org/dmbmenu/nsmenu.js"><\/script\>');
> } else {
> document.write('<' + 'script language="JavaScript"
type="text/javascript"
> src="
http://www.mmdl.org/dmbmenu/iemenu.js"><\/script\>');
> }</script>
> <!-- DHTML Menu Builder Loader Code END
--><table border="0" width="550"
> height="110">
> -------------------------------------
> footer include file
> --------------------
> <table border="0" align="center">
> <tr>
> <td width="20" valign="top"
align="center"> </td>
> <td align="center" valign="middle" width="194">
> <div align="left"><a
href="mailto:[email protected]?subject=MMDL
> Darts.*..
> ">Comments? Email us</a></div>
> </td>
> <td align="center" valign="middle"
width="128"><a
> href="
http://www.mmdl.org/dmbmenu/textmenu.html">Text
> based menu</a></td>
> <td align="center" valign="middle"
width="223">© <SUP>SM</SUP>
> 2007
> Minute Man Dart League. All rights reserved.</td>
> </tr>
> </table>
> -----------------------
>
>
>
> -
How to create an object alive all the time on a server side
Hi,
I work on an Intranet with J2EE technologies. I need an object to do several tasks in background on the server side. Like start scheduled processes on a database and files, stocked on the server. What is the way to do this. I thought to use the JNDI by declaring the object in the Deployement Descriptor, and to manage a timer within.
I don't know if this works.
Anyway, my question is how to create an object on the server that is ALIVE ALL THE TIME and visible by the other objects running in the same VM.
Thank's.This may not be the correct design, but I had success doing the following:
1. Create an Stateless EJB that does a task, i.e. update a database table.
2. Create a subclass of java.util.TimerTask to call the EJB methods.
3. Kick off the TimerTask from a servlet.init method.
Seems to work pretty well to do scheduled tasks, such as refreshing lookup tables. I would imagine the same could be done with an MBean, but I haven't had time to fully understand JMX yet. (It's on the list).
As for event driven procedures, that can be done through a servlet interface.
You may also wish to review a scheduler here: http://www.part.net/quartz.html. Note, I have NOT even looked at it yet, so I have no clue if it's any good. But, it is on my list of tools to evaluate (that's a long list) someday when my head's above water. Have a look, and caveat emptor.
Hope this helps,
Perry Tew -
[Announcement: Java server-side web controls] - TICL 1.0 Final Released
Hello JSP developers,
We are pleased to announce the immediate availability of TICL (Tag Interface
Component Library) 1.0 Final Release. TICL is library of server-side user
interface components accessible through JSP tags. Like a conventional
desktop toolkit, the components maintain state and manage interaction logic
with the end-user with little or no assistance from the programmer.
Read more about TICL at http://www.kobrix.com/ticl/ticlmain.jsp.
If you are already a TICL user, check out the release notes at
http://www.kobrix.com/ticl/releasenotes.jsp for the latest changes.
More info
One of the major goals of TICL is to bring RAD-like development to the WEB
platform. Programmers can concentrate on logical functionality and build JSP
pages by placing TICL components through tags and responding to user events.
Every component is self-contained and manages interaction with the end-user.
Visual appearance of components is abstracted into a high-level styles
framework. In fact, TICL is probably the only server-side Java toolkit that
rivals Microsoft ASP.NET's web controls.
The library is tailored more towards WEB application development, rather
than content only oriented sites. It is designed to quickly build clean,
robust, well-structured and therefore highly maintainable code. It
integrates seemlessly into existing JSP applications and it will work on any
standard compliant JSP 1.1 container (e.g. Tomcat 3.2.1 and above, Resin
etc.) and with fairly recent versions of the popular browsers.
Core features are:
- A powerful and extensible server-side event model. Component-end user
interaction is encapsulated into a well defined set of server-side events.
You can of course define event listeners, develop custom events, event
filters etc.
- Predefined components like panels, tabbed panels, tree views, DHTML menus,
table views. Most can perform their interaction with the end-user at the
browser through DHTML or by making a trip back to server on every user
action (like expanding a tree node or minimizing a panel) - that is
components are either "client" or "server" managed.
- Smart browser handling. A complete framework for dealing with browser
(user agent) capabilities, including detection of dynamic properties like
connection speed, screen resolution, available plugins etc.; supporting JSP
tags; on the fly selection of component rendering based on the current user
agent.
- A high-level styles framework for complete customization of the look&feel
of components. Styles can be organized into themes. An inheritence mechanism
of style objects provides for a powerful high-level structuring. The
framework allows for a clean separation between look&feel and functional
behaviour of GUI elements. No more copy&paste, no more code cluttering with
tedious, browser-specific HTML details - consistency of look&feel can be
easily achieved by maintaining a single TICL style sheet, a simple XML file,
that is applied to all pages in your WEB application.
- Full encapsulation of HTML forms, including a file upload component,
augmented with things such as server-side command handlers, labels and DHTML
tooltips. Form fields are typed, true server-side components. Not limited to
the standard HTML form fields, they operate on a high level and custom ones
can be developed and plugged into the framework.
- A very powerful and easy to use declarative form validation mechanism
(both client and server-side). You define validation rules and handlers for
invalid forms in a clean, declarative way. The same rules you define can be
applied at the client (through automatic generation of the necessary
JavaScript) or at the server. Special purpose syntax allows you to easily
handle interdependencies between field values.
- A Data Objects framework integrated with TICL forms. Allows you to
manipulate complex aggregate structures and associate them with forms for
automatic mapping to/from form field values and data object fields (e.g.
Java beans). A type mapping framework allows you to map any form field type
to any Java type.
- An integration module for the popular Struts framework is provided also.
For example, it is possible to use the powerful TICL form tags with Struts'
ActionForms.
TICL is FREE for non-commercial and non-govermental use, and for an
unlimited evaluation period. It comes with an extensive, over 200 pages,
Reference Manual. To download it, please goto http://www.kobrix.com and
select Downloads from the TICL pulldown menu. If you are not already a TICL
user, you may need to register first.
We sincerely hope you will enjoy TICL and are looking forward to your
feedback!
Best Regards,
Borislav Iordanov
[email protected]
Kobrix Software Inc.
http://www.kobrix.comThis looks quite nice. I'm going to evaluate it now, but I wish it was open-source....
Judging from the release notes, it's been around for a while. Has anybody had any experience with this product? Is it reliable? Does it scale well? -
PDF Merge software on Server side
Hi,
Do you use any PDF Merge software on Server side that combines the many PDF files (originally from Broadcaster) into one PDF? This final PDF file should have the Table of Contents with the corresponding page numbers. Therefore, this software should stamp the page number sequentially on the final PDF.
Please recommend it and the environment where it resides (Windows server/AIX/Linux). Thanks in advance for your help.
Regards,
BaI used 2 modules from PDFlib on Linux with Perl to merge PDF files and the modules are:
1. PDFlib+PDI
2. PDFLib TET
Ba -
The query locator has timed out on the server side.
Hi
I am getting the error:The query locator has timed out on the server side.
What to do now?
AGHi
Are you using Salesforce.com for creating reports?
When joining large-sized tables, you may run into a query locator time out
error. The query locator is a server-side cursor generated by Salesforce.com
and is used to navigate the query result. It will automatically expire in 15
minutes without any activity.
In the case of joining two tables, the report processing engine will read one
table partly, and then it will process the other table. If the processing time is
longer than 15 minutes, the Crystal Reports Salesforce.com Driver will try to
read the rest of the records in the first table and the cursor in that query will
time out. In the case of joining multiple tables, the chance of running into a
query locator time issue is higher as the report processing engine might have
to return to handle the first table after finishing processing other tables,
increasing the possibility of a query locator time out error in the first table.
If you run into query locator time out issue, we recommend that you add
filters into your report to reduce the amount of records you fetch from
Salesforce.com.
However, if that is not possible, you can try to reverse the link order in the
case of joining two tables. For example, you linked table A to table B, then
you can try to link table B to table A.
Hope this helps!!
Regards
Sourashree -
Server-side authentication for web services
I was hoping to use Azure's server-side authentication for a HTML/JS web app. Some things are a bit unclear. For example, if a new user authenticates via Facebook, I want to create an associated record on the server-side and associate extra data with the
user, irrespective of the service used to log in. If they log in again, I want the client to be able to get this extra data (eg preferences) from the server. On the back-end, I also want to be able to update particular fields of this record that the user cannot
change themselves. I know how to go about this in a plain Node.js backend, but not sure how some of these basic things map to using Azure's services.Once the user logs in, you will have their information available to your server scripts. So one option is to use a custom API (or a Mobile Services Table) to insert/read/update the user data. You would protect this endpoint so that only logged-in users can
access it, and then access the
user object to obtain an ID an associate it in a table row. Lookups could be performed by similarly querying for the ID.
In terms of some fields being restricted, you could remove these from the update request itself.
Some pointers that might be helpful:
http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-get-started-data/
http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-call-custom-api/
http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-authorize-users-in-scripts/ -
Vacation messages / server side mail rules
With WebMail depreciated in OS X Server, is there a recommended (incorporated) way for users to configure vacation messages and other server side rules?
The seive rules are referenced by the imap server on OS X and it is responsible for the mail sort. The old webmail (SquirrelMail) and the newer webmail on Lion (Roundcube) were only writing the rules that the sieve engine of the server were reading. In other words, the webmail doesn't handle the sorting of the incoming messages, its built in filter settings write the rules that the server uses to sort them.
In Roundcube, that is the managesieve plugin. By default, the rules get saved in /Library/Server/Mail/Data/rules/[user UniqueID]/dovecot.sieve with the new Roundcube and older rules are default.sieve. Dovecot seems to look for one or the other and uses it.
So, and I still have to read (and if anyone can answer!) since I've not looked at this since 10.8 server has first come out: They moved the mailstor moved in ML, but does Dovecot still have sieve rules ENABLED or does that require a .conf change?
To answer your configuration question:
if you're comfortable with editing a text file, Roundrube is VERY simple to configure in my opinion. Everything is well commented in the settings files. Almost all of the settings are having it connect to your IMAP and SMTP server, same as an email client's settings. And that's it, you don't need to compile anything to use it.
You will need to setup MySQL or ProtegeSQL with it, but they have scripts that setup the tables for you, again, pretty simple. PERSONALLY, I chose to install MySQL (they have a Mac .pkg install and a System Preference Pane for it). I did not want to use the ProtegeSQL Apple supplies with OS X because we've all learned this lesson: who knows when they'll abandon THAT and leave us all scrambling for a solution again.
This way, my SQL install is indepenent, ready for the next OS upgrade without wondering if Apple will take it away, or even transportable to another platform.
Maybe you are looking for
-
IMessage issues with iPad, none with iPhone?
Hi I just got my wifi iPad 2 today. I already have an iPhone and so do a number of my contacts, so I iMessage with all of them (not regular messaging). However when I go to send them an iMessage from my iPad, it says their cell phone number is not re
-
Hitting 'Save' in EditForm opens PDF document
I created a custom document library that stores scans of invoices as PDF-A documents. The library has a custom content type with some custom fields and the list's schema also links to a custom EditForm.aspx. In the EditForm I am using a JavaScript fu
-
Please help me if you can Svet!
Svet, I am new to these forums, been reading around here for a bit and see that you seem to be a very capable person. I have one favor to ask of you sir. Can you get your hands on the original Vbios for the r6950 2GB Twin Frozr II? I saved my origina
-
How to Control Sort Order of Playlists in iTunes?
As far as I can tell, somewhere along the way iTunes stopped sorting playlists alphabetically, numbers before letters, and started sorting playlists alphabetically, letters before numbers. Or at least that's how it now happens on my iPhone; I think t
-
Can I run SUN and BEA JVM with WL9.1 on Solaris 9
Is it possible to run a WL9.1 domain on SUN JVM and another one on BEA JRockit? The reason I asked is that for the WL9.1 Sparc download, there's one for Solaris 8,9 and 10 on Sparc and there's another one for Solaris 9 with JRockit Supported. Is this