cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling a Deployed WebDynpro Java Application

Former Member
0 Kudos

Hi All

My requirement is , i have a WebDynrpo Java Application deployed on the server, now i want to schedule the same application every 5 mins, is there any way to achieve my requirement.

I have used Adaptive Web Service model and Adaptive RFC model in my application, i need to pass the data returned by web service into SAP system every 5 mins.

Thanks

Chaitanya.A

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We also faced similar problem for maintaining consistency..

But our server team written a servlet and provided one URL.. That servlet accesses data from our local DB and stores them into SAP System. From WebDynpro we just call that URL in external window..

Schedule time information is also maintained in our local DB only

Regards

LakshmiNarayana

Former Member
0 Kudos

Hi Narayana

Thank you for prompt reply,

can you please provide me little more information , how you achieved this

Regards

Chaitanya.A

Former Member
0 Kudos

HI,

1: From our UI we used to set Schedule time, this time will be

stored in one Table in our local database. we can change it if needed

2: The data will be stored in local DB since that scheduled time temporarily

3: We just bound the URL of servlet to LinkToURL.

4: The servlet will interact with database, gets the time,

when time elapses it will store data from our DB to SAP system

Once we click on it, the servlet will be in running only...

But Iam not able to produce code here..sorry for it.

Regards

LakshmiNarayana

Edited by: Lakshmi Narayana Chowdary Namala on Jun 18, 2008 3:00 PM

Former Member
0 Kudos

HI Narayana

But in my scenario there is no concept of eventing / click , it is completely based on time

Thank you

Chaitanya.A

Former Member
0 Kudos

Hi,

In our scenario, One table will be there with three columns.. Hrs,

mins,secs

Above the table two buttons Start, Stop are there

User enters values and select "SaveTime"

Once we press start, the servlet will run on back at server even though we looged off, until we press stop button..

Regards

LakshmiNarayana

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Have you tried with KM Scheduler available in portal?

I am not that sure that WD application can be scheduled there.

Give a try by checking the parameters

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj

I tried KM Scheduler

As far as i know , KM scheduler is for PAR files [Portal Applications], not for EAR [WebDynrpo java]

Webdynpro Gurus please correct me if i am wrong,

Thank you

Chaitanya.A

Former Member
0 Kudos

Hi,

Scheduling using WebDynpro is not at all a good idea and it may not be possible, your requirement is completely dependent on time. WebDynpro used mainly for user interfaces. better to use km scheduler or j2ee servlets to achieve your scenario.

You can use webservice proxy to consume webservice n retrieve data from webservice.

same as use SAP Enterprise Connector or JCO to submit details to SAP System.

Regards,

Naga

Former Member
0 Kudos

Hi Nagaraju

Thank you..

Can you share some documents related to servlets and JCO

Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi,

[Servlets|http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html]

[JCO|http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm]

[Scheduling in java using Timer class|http://www.onjava.com/pub/a/onjava/2004/03/10/quartz.html]

Regards,

Naga

Former Member
0 Kudos

Hi,

Try using TimedTriggeredUIElement.

Write the code for refreshing backend data in onAction method , and specify dely time as 5 mins.

Regards,

Apurva

Former Member
0 Kudos

Hi Apurva

Thank you for reply,

TimedTrigger will not work once we close the application, it will be active only till application is open,

i want my application to be active and run in the background always .

Thanks

Chaitanya.A