Want to initiate a batch job in the web server
Hello all!
I am using a tomcat server, Mysql database and jsp to perform some data manipulation. I would like to create a java class which could be initiated at specific intervals. My question is, even if we create a class which makes use of Java timer, where to keep the file(which folder in the web server) and what is the syntax to make sure that the file gets invoked without any user/administrator interaction?
Is anyone listening???????????????????????????????????????????????????????????????????????
Similar Messages
-
Creating a batch job for the sapscript
Hi folks,
I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do that?
Here is the FM that I using in the print program.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
COPIES = 1
COVER_PAGE = SPACE
DATA_SET = 'LIST8S'
DEPARTMENT = C_CHAR_UNKNOWN
DESTINATION = C_CHAR_UNKNOWN
EXPIRATION = C_NUM1_UNKNOWN
IMMEDIATELY = C_CHAR_UNKNOWN
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
LAYOUT = C_CHAR_UNKNOWN
LINE_COUNT = C_INT_UNKNOWN
LINE_SIZE = C_INT_UNKNOWN
LIST_NAME = C_CHAR_UNKNOWN
LIST_TEXT = C_CHAR_UNKNOWN
MODE = 'CURRENT'
NEW_LIST_ID = 'X'
NO_DIALOG = C_FALSE
RECEIVER = C_CHAR_UNKNOWN
RELEASE = C_CHAR_UNKNOWN
REPORT = 'ZSAPFORM'
SAP_COVER_PAGE = C_CHAR_UNKNOWN
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
IMPORTING
OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = i_pri_params
VALID = w_valid
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4
IF SY-SUBRC = 0 and w_valid ne space.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write: / 'Pri params ', i_pri_params.
Thanks,
SKHi folks,
I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do that?
Here is the FM that I using in the print program.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
COPIES = 1
COVER_PAGE = SPACE
DATA_SET = 'LIST8S'
DEPARTMENT = C_CHAR_UNKNOWN
DESTINATION = C_CHAR_UNKNOWN
EXPIRATION = C_NUM1_UNKNOWN
IMMEDIATELY = C_CHAR_UNKNOWN
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
LAYOUT = C_CHAR_UNKNOWN
LINE_COUNT = C_INT_UNKNOWN
LINE_SIZE = C_INT_UNKNOWN
LIST_NAME = C_CHAR_UNKNOWN
LIST_TEXT = C_CHAR_UNKNOWN
MODE = 'CURRENT'
NEW_LIST_ID = 'X'
NO_DIALOG = C_FALSE
RECEIVER = C_CHAR_UNKNOWN
RELEASE = C_CHAR_UNKNOWN
REPORT = 'ZSAPFORM'
SAP_COVER_PAGE = C_CHAR_UNKNOWN
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
IMPORTING
OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = i_pri_params
VALID = w_valid
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4
IF SY-SUBRC = 0 and w_valid ne space.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write: / 'Pri params ', i_pri_params.
Thanks,
SK -
Track the changes to the batch jobs in the PRD system.
Hello Basis Guru's,
Need your help in a Query. --> Is there any best practice that can be implemented to trace all the changes done to batch jobs in the past 3 months and going forward. Be it in its scheduling or its variant changes etc, i would like to track the changes to the batch jobs in the PRD system.
Any pointers would be really helpful.
Thanks in advance.
Rgds,
SriHello Raghu,
Third party tools can only help you but not SAP. . A lot of us may think that for example if a Job 'X' runs daily then SAP considers this job as a single object.However actually SAP will treat each run of a job seperately infact as seperate jobs. If you would have noticed each job in SAP has a job id which is unique. So actually each run is unique. Now change logs can exist for only those objects that get changed. But change logs can not exist for objects that are newly created everytime !!
If you would have noticed you can two jobs with the name A but running two different reports/variants whatver. This is because job name is not that important it is the job id.
Every time a job runs a new entry gets stored in TBTCO,TBTCP etc.. tables. It is not that the existing entires are updated.However yes when a job is scheduled periodically there is some kind of a link that is created in the job series but it does not showo up in any of the tables!!
As far as 3rd party tool is concerned I can name a tool like UC4. UC4 has its own database in which the job name will always be unique. For that you can easily find change logs. I think Chronicle (Redwood Scheduler) also supports this.
Regards.
Ruchit. -
How to start a batch job through a web service call
I have a batch job created Data Services that I would like to be able to start through a web service call.
I have exposed the batch job as a Web Service through the mangement console.
The Integrators guide is not the clearest piece of documentation that I have ever read so I'm now having a little trouble.
In C# I'm issuing the following statements:
DataServices.Batch_JobsClient batchClient = new DataServices.Batch_JobsClient();
batchClient.Open();
DataServices.Testjob_Match_GlobalVariables myVar = new DataServices.Testjob_Match_GlobalVariables();
myVar.ptd_FilePath = "D:
Jobs
Test";
batchClient.Testjob_Match(myVar);
That all executes without error -- but the job is not started. Obviously I'm missing a step here but I can not figure out what is needed to acutally start the job execution from the Integrators Guide.
Any help would be appricated.first test invoking the batch job webservice using SoapUI
does your client application logs the SOAP message that is sent to DS WebServer ?
Check the %LINK_DIR%\lg\webservices.log if there is any errors logged in it ? -
I want to open ppt or pptx from the web, save them as PDFs, and take notes on the pdfs for school. All from the ipad, I don't want to have to go back to my computer to e-mail or convert it.
Apple's iWork apps
http://www.apple.com/iwork/
3rd party Microsoft equivalent apps
http://www.polarisoffice.com/en/iOS.asp
http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1
Others, including cloud based
Microsoft Office Web Apps:These are versatile apps since they can be used on or off the cloud. Expect a simplified experience to the full version of Microsoft Office suite.
OnLive: Access both a degree of Windows desktop functionality and full Windows versions of Microsoft Office Suite.
CloudOn: This was one of the first solutions for iOS productivity. Syncing with Dropbox, CloudOn offers a more complete Windows desktop. The tradeoff is it also offers a more pared-down version of Word, Excel, and PowerPoint.
rollApp: Offers Open Office programs for iOS, also utilizing Dropbox.
LogMeIn: Remotely access your home computer's desktop from your iOS device. This solution requires coordination of logins, settings, and hookups. The free version does not offer file transfer, but you can get a separate, free app for that.
Google Docs: Now featuring Google Drive for iOS, users no longer have to battle with pressing the Refresh periodically to initiate syncing. This makes collaboration much smoother, resulting in a stronger office productivity product. -
Running a batch file on a web server
hi,
i am facing a problem regarding running a batch file(with a java command in that file) on a web server.
i am having a batch file which is running a chatapplication (this file is having a single line -- "java ChatServer 8080")
i want to execute this command ( file ) on my web server
can u help me plz ( i think u can)
thanx 4 reading my problem...
-ashishthanx 4 replying
but as i am a developer and i am developing the aplication for a client, so should i speak to the client for this or can i do this without interrupting them?
-ashish -
How can you display a dynamically loaded vi to the Web Server?
I am working with LabView 6.1 and the Web Server. I can call a subvi and have it display on a remote machine using a browser with no problem. But what I would like to do is dynamically load and run a vi and have it display on the remote computer using only a browser. I have tried a small example of a front panel that invokes the run vi method (and fp.open prop) on another vi when a button is pressed, but the invoked vi is displayed only on the local computer. Is there any way of viewing dynamically loaded vi's on a remote machine without having a copy of LabView running on it?
If i understand your question correctly, you want to monitor vi that are dynamically loaded on a remote machine without having LabVIEW installed on the machine from witch you want the monitor. I don't think it's possible how ever a good reference book would be Internet applications in LabVIEW. You can find it on BARNES&NOBLE.
Hope i could help -
On a Mac Mini server with OS X Lion 10.7.2, I am unalbe to get the web server working on port 80. It switches automatically to port 443 (https).
This situation complicates the access to FileMaker Web publishing, as I don't want my clients having to use https.
How can I change that? Does anyone know?
Thanks for any replyin the server: I checked the SSL certificate. Tried several configuration.
Well, that's a problem for a start.
Your port 80 connection should NOT use SSL. Port 80 is the standard HTTP port, not HTTPS and most applications that connect to port 80 will not expect to use SSL
If you want to run a site under both HTTP and HTTPS then you create two sites, one on port 80 without SSL and one on port 443 with SSL -
Step by Step of how to Install and configure the Web Server Core 2008 R2
I encoutred a couple of problems installing a Web Server Core 2008 R2 edition including the remote connection and for people who are encountring the error :
"The WinRM client cannot complete the operation within the time specified" or the error : " Could not connect to the specified
computer. Details: Unable to connect to the remote server " I think those couple of video will be helpfull,
so I decided to record and share this experience with you by producing the server core from A to Z to avoid the headache that I encountred
during my experience. The lab environment is vmware but you can use hyper v or even physical lab if you want as the steps are the
same
http://www.youtube.com/playlist?list=PLzayUN5B2cXMoyziV4oUs94P6EZT6QVmc
watch?v=5z1NiWUJdGU Wipe generation
watch?v=Q3BoLkWWAC4 hard disk preparation
watch?v=lOPvy-cn0Uk server core installation
watch?v=gTnOUJfRkDg configure the web server
watch?v=0ofvknXMNsc install .net framework in the webserver
watch?v=K4ADBzZeM6E install the web server role
watch?v=oGHC0sbe17Y remote control the server
watch?v=SpzAsRkjV40 continue the remote configuration
watch?v=XjPD8U_y29I Create and alias for the web server
watch?v=Pim1T6z6DJM Configure a Win 7 machine to control
Enjoy the vids
The complexity resides in the simplicity Follow me at: http://smartssolutions.blogspot.comHi MASNSN,
Thanks for your sharing =) -
How to use the web server tips (connected/disconnected)?
Using the web server tips into a VI to know when a client is connected or disconnected.
Hello Everyone
I want to use the tips that appear when a remote user gets control of my VI via web server. That way I will be able to trigger some other operations as soon as the user gets in or out my VI. How can I extract the information that contains that (user has or has not control). I hope you can help me.
Regards
Marco RomanThere is a VI method called Remote Panel Client Connections. It returns an array of clusters with connection information and also has a Controller output. If the controller output is -1, no clients are connected.
-
Selective Cache-control in the web server
I am using weblogic 8.1 as the app server and Sun one 6.1 as the web server
In my obj.conf of the web server we have this
PathCheck fn="set-cache-control" control="private"
This caches all the pages.
But I don't want some pages to be cached in our site.
For this, I tried setting "no-cache" for the "Cache-control " of the response hedear, in corresponding jsps. But the webserver configuration is overriding this.
This configuration set in the webserver should be applicable for all the modules except for some urls .
can anybody tell me how to make this selective cache-control configuration in the obj.conf of sun one web server.
or if there is any way to prevent the set up in jsp from being overridden this webserver ?
Also it would be great if anybody can explain, what are the services handled by the web server and the the app-server and how they interact with each other....It's unfortunate that JSPs running in WebLogic can't override the default Cache-Control directives in Web Server. That's probably a bug in the WebLogic plugin. (It is possible for JSPs running directly on Web Server to override the default Cache-Control directives.)
As with any obj.conf directive, you can configure Cache-Control directives on a path-by-path basis. For example, the following would set Cache-Control: no-cache for /foo/*.jsp and Cache-Control: private for all other URIs:<Object ppath="/foo/*.jsp">
PathCheck fn="set-cache-control" control="no-cache"
</Object>
<Object name="default">
PathCheck fn="set-cache-control" control="private"
</Object>Information on obj.conf syntax, including how to configure separate objects for separate paths, can be found in the Syntax and use of obj.conf chapter of the NSAPI Programmer's Guide at http://docs.sun.com/source/817-6252/npgobjcn.html.
I'm not sure what you mean by "what are the services handled by the web server and the the app-server and how they interact with each other". However, it's worth noting that Sun ONE Web Server 6.1 is fully capable of running JSPs by itself; there's no need for a separate WebLogic server. -
Can I do automatic page refresh? How many of them can the web server take?
I'd like to ask this question in both short and (if you be so kind) in long form:
Short: Can a portion of my APEX page be set to refresh automatically ones every few minute? Not the whole page, just a portion. Would I have to use frames for that? Can they be invisible?
Long: I'd like to create a web interface, which would allow multiple users to track duration of some tasks. More importantly it has to allow other users to see each other's progress (which task somebody is on, how long he has been on it down to several minutes). I understand to server side of it. However, the client side presents a problem of information refresh. I want users to be able to sit without touching their mouses or keyboard and see changes for other users as they happen.
What do I mean by "as they happen?" Ideally, I'd like to present changes in real time. My brief research of Push HTTP technology, pointed toward Comet or Flash. However, I don't know much about web development and as of now, cannot commit too much time to learning new technologies.
The second best option, is to update information every couple of minutes. Two question arise here. First is the "short" question - please see above.
Let's say the page sections can be refreshed automatically. Then I have a question about the load. If I potentially get thousands of simultaneous users, each sending a refresh request every 2-3 minutes, how bad would be the load on the web server and on the network throughput. The amount of data passed can be small, but I am very concerned about the load on web server and the traffic. (I am planning to do virtual hosting with a web hosting company). Somehow I am not concerned about the load on the database (maybe I should be). All calculations will be put in a stored procedure, at least I can optimize it.
Any other suggestions on how to approach this client refresh issue?
Thanks a lot.These answers are helpful but I still need more info. The first answer suggests putting html refresh tag. But that would refresh the whole page, wouldn't it? I just need to refresh one region. Can it be done with html tag?
I reviewed the Javascript code in the example referenced in the second answer. It showed that I can refresh a region using Javascript. It looks very nice. However, I need to refresh with data pulled from the database. I am not familiar with AJAX (need to lear JavaScript first) and I know that JavaScript cannot query database on its own. So I am not sure that this example is relevant.
What I need is: Only 1 region of the page needs to be refreshed every 5 minutes. The rest should "stay put." Everytime the refresh is performed the database will be queried for new data by means of stored db procedure. Do I need to jump through hoops to do that or is it fairly straightforward thing to do?
Thank you for your time. -
What the IP address does the Web Server get?
Hi all,
We have a scenario like this:
Client>Proxy(like squid)........>Web Server( 6.1 SP7)>Application
We know that the Web Server will get the remote IP address, and set as proxy-ip in HTTP Header.
But, what the exact remote IP address does the Web Server get? The IP of the Proxy? or The IP of the original client?
If we want to get the original client IP in the Application, what do we need to do?
Thanks!
ShenLook at the documentation for customized logging
http://docs.sun.com/app/docs/doc/821-1497/gdsxf?l=en&a=view
Basically, you configure a custom log file format in SJSWS
And instead of using the variable: %Ses->client.ip%
you will use something like the variable: %Req->headers.X-Forwarded-For% -
VIP Failover at the web server level??
Oracle10gR2
RHEL 4 AS 64bit
Hi,
I wanted to know is the VIP failover at the web server level also? For example, we are running Apex and that uses Apache/HTTP webserver, if that were to go down on one node, would it failover to the other node? Or is it not at the webserver level?
Thank you.Yes, thank you for the documentation.
However, I had one question about an action script that is in the following documentation:
http://www.oracle.com/technology/products/database/clustering/pdf/Using_Oracle_Clusterware_to_protect_Oracle_Application_Server.pdf
In there in APPENDIX B is a script called webcache_action.scr. I modified this script to use in our environment to start and stop the http_server process. We have been having some problems with it...mainly when it fails over, it shuts down the http server, then brings it back up, then down again. This is happening in a production system so it's a big issue. My question is can you explain to me why that is happening and maybe also explain what the script is doing? Maybe I'm missing something. Do I even need to have the stop part in the script? All we need to do is when it fails over to startup the http server on the node, that's it! Any help would be appreciated.
#!/bin/bash
SCRIPT=$0
ACTION=$1
# Action (start, stop or check)
ORA_OWNER=oracle
# ORACLE installation owner
ORA_HTTP_HOME=/opt/app/oracle/product/10.2.0/http_1
# ORACLE_HOME of HTTP Server
RET1=1
# Internal return values ( do not change )
RETVAL=1
# Script return value
# Main section of Action Script - starts, stops, or checks an application
# This script is invoked by CRS when managing the application associated
# with this script.
# Argument: $1 - start | stop | check
# Returns: 0 - successful start, stop, or check
# 1 - error
# Start section - start the process and report results
case $1 in
'start')
ulimit -n 65536
ulimit -u unlimited
echo "DATE: `date`" >> /tmp/e
echo "ulimit: `ulimit -n`" >> /tmp/e
echo "ulimit: `ulimit -u`" >> /tmp/e
# A) START - HTTP Server:
$ORA_HTTP_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server 1>/dev/null 2>&1
RET1=$?
# Prepare return values:
if [ ${RET1:-0} -eq 0 ]; then
RETVAL=0
else
RETVAL=1
fi
# Stop section - stop the process and report results
'stop')
# A) STOP - HTTP Server:
$ORA_HTTP_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server 1>/dev/null 2>&1
RET1=$?
# Prepare return values:
if [ ${RET1:-0} -eq 0 ]; then
RETVAL=0
else
RETVAL=1
fi
echo "usage: $0 {start stop}"
esac
echo "RETURN: $RETVAL" >> /tmp/e
# Return value to CRS daemon:
echo "RETVAL: $RETVAL" >> /tmp/e
if [ $RETVAL -eq 0 ]; then
exit 0
else
exit 1
fi
#exit 0 -
Force the web server url to hit the particular jboss instance(slot)
Is there a way we can force the web server url to hit the particular jboss instance(slot)? I remember we can do in DAS by passing the drp port in the webserver url.
Edited by: 865729 on 20-Jun-2011 01:30This isn't the best forum for this question (you might get better results posting this to the JBoss coummunity: [http://community.jboss.org|http://community.jboss.org] ) but I think you can accomplish this by putting a dummy jsessionid in the URL (on the first request so that no jsessionid exists) and appending the jvmroute of the instance you want to hit. The jvmroute is what determines which instance mod_jk routes the request to so theoretically this should work.
- George
Maybe you are looking for
-
Org. Data and BP in CRM 5.0
When I create an new Org. Model in 5.0 there were no Business Partner created and assigned. CRM 4.0 automatically created an BP with Role Organisation. Any idea? Thanks
-
My "4" won't turn on. It won't charge when connected to a charger or to the computer. It's never been dropped, or had any water damage. It looks like its brand new! The warranty ran on on Feb 23rd, help!!!
-
Multiple entries in a Z table with same key fields
Hi I do have a ZTABLE, with 3 key fields defined earlier. It consists of around 1 lakh records. Later onwards, two of the non keyfields have been made to key fields. This table is being populated with records at the time of saving a ztransaction. But
-
Looking for some way to reset sound on JavaW?
Hi, I'm having a strange problem with a java applet. When I browse away from a page with an applet on in a browser, Javaw.exe keeps looping a second long clip of whatever sound was playing before I browsed away. Interestingly, this problem does not o
-
Instead of Update Trigger error
Hi all, I've been trying to solve this issue from past 4 to 5 days..I am unable to solve...Can someone please help.... I hhave a requirement in which I need to update 4 tables from a single form...I created a view which will get the required fields a