Problem with Scheduler API

Hello Friends
I am trying this concept of Job Scheduler API of Netweaver for the first time . The problem that I am encountering is , after successfull deployment of my application DC , I cant see the job created by me in the job definations on server
I am laying down the approach that I took for the development of job : -
1) I created one EJB Module DC( sample_mdb_session ) and created one Message Driven bean
( JobBean ) and laid down the logic to be run on the execution of job
I have also included the scheduler api in the build path of my DC
2) nextly I created the required job-definition.xml and did the changes in ejb-j2ee.xml
ejb-j2ee.xml
<enterprise-beans>
<enterprise-bean>
<ejb-name>com.sap.scheduler.examples.session.JobBean</ejb-name>
<jndi-name>JobBean</jndi-name>
<resource-ref>
<res-ref-name>JobQueueFactory</res-ref-name>
</resource-ref>
<message-destination-ref>
<message-destination-ref-name>JobQueue</message-destination-ref-name>
<jndi-name>JobQueue</jndi-name>
</message-destination-ref>
</enterprise-bean>
</enterprise-beans>
job-definitons.xml
<job-definitions>
<job-definition name="JobBean"
description="Logs a string and calculates its length">
<job-definition-parameter name="UserName"
data-type="String"
direction="IN"/>
<job-definition-parameter name="NameLength"
data-type="Integer"
direction="OUT"/>
</job-definition>
</job-definitions>
3) In the application DC( sample_application_dc ) I did the required changes in application-j2ee-engine.xml
<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type= "service">
scheduler~runtime
</reference-target>
</reference>
<modules-additional>
<module>
<entry-name>demo.sap.com~sample_mdb_session.jar</entry-name>
<container-type>scheduler~container</container-type>
</module>
</modules-additional>
</application-j2ee-engine>
The document that i had reffered to construct everything was actually dealing with an EJB project and a respective .ear project, things were working fine till the time I was dealing with local EJB projects but as soon as I started working with DCs , the problems occured
And when i deployed the application on the server it is deployed successfully , but I cant see the job in job definitions in SAP Netweaver Administrator > java scheduler section
What i am doubting is that the changes that i did in the xmls are not apt , so If any one on the forum has done the scheduling job earlier can please send the required xml code as that may help in solving the problem

hi,
i hope u follow this [lin k|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90a95132-8785-2b10-bda5-90d82a76431e]
and the architecture and sample application [this |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8ab5056-0e01-0010-5581-d3e51724ee21]
thanks and regards
bvr

Similar Messages

  • Problem with scheduling planned orders in MRP

    There is a problem with scheduling planned orders in MRP. SFG is assigned to the BOM of FG. No inhouse production time maintained in the material master of SFG & FG. routing maintained for both . In OPU5 scheduling & capacity reuiremnts tickmarked for detailed scheduling. Scheduling level - via detaied scheduling. Scheduling type - backward. Adjust basic dates , adjust dep. req. to order start set. In MD02 , scheduling is via ' lead time scheduling'.
    My problem is the start date & time & finish date & time is same for planned orders of FG & SFG in the detailed scheduling tab of the planned orders. (Duration is same because of same capacity requirements on the same work centre. But how is the finish date same for both SFG & FG?)
    (Capacity requirements are being generated.)
    What could be the problem ?

    Dear,
    By scheduling the routing and maintain lot size dependent time in material is best practice and result of scheduling will be consistent.
    If you want SFG before FG you need to define lead time offset in BOM or need to maintain the floats before production.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Sales Order Stock - Problem with Schedule line

    Hi guru,
    I have a problem with my schedules line.
    We use the Sales order stock ( using MB1B with good movement  412/E) for some specific customers.
    Even if the sales order reservation works well, there is an issue with the schedule line in the order.
    Indeed when i enter the material in the order the schedule line display an availibily in 8 days even if the material is out of stock or available now....
    When i enter the same materila in a standard order(with item category without special stock E) the schedules line are good...
    What is it the most weird is that i have done the customizing by copying the standard item and i have just added the special stock E in the item category.
    If anyone can help me!!
    Thanks a lot

    hello Lakshmipathi,
    Thanks a lot for your reply.
    I tried to change the requierement class in order to put one with special stock E as you explained, but i still have my weird schedule line. When i put the item in the order it is 0 stock for today, but stock find in 12 days either if there is stock or no(unrestricted stock i mean).
    If i change the RDD in more than 12 days the stock is available for the date requested.
    If you have an idea of what could be wrong because on my case i want the schedule line to be at 0 while the sales order reservation has not been processed (via MB1B/412/E) and once the stock movement is done the schedule line has to be find.
    I dont know if im clear enought..
    To be more clear,  i want the schedule line based on the "sales order stock" and not on the "unrestricted stock".
    thanks for your help!
    Guillaume

  • Problems with BPEL API calling a BPEL workflow

    Hallo,
    i have copied my text from the Application-Server forum to this forum becouse here it is a better place for my problem.
    I have a problem with the BPEL API. I try to invoke a BPEL workflow with the BPEL API. Up to the Point where i call the BPEL workflow with the command "deliveryService.post(processName, action, nm);".
    When this command is processed i following error:
    java.lang.NoClassDefFoundError: javax/ejb/EJBException
    It looks like i am missing a jar file, but in my Development tool an at the compilation i get no errors or warnings. Only when command above is called.
    The initialization of the deliveryService works fine.
    The only point i can image an error is at the definition of the jndi for the remote connection to BPEL. There i have following entry's:
    jndiProviderUrl = "http:ormi://server:port:instance/orabpel";
    jndiFactory = "oracle.j2ee.rmi.RMIInitialContextFactory";
    jndiUsername = "xxx";
    jndiPassword = "yyy";
    I get folowing errror message:
    java.lang.NoClassDefFoundError: javax/ejb/EJBException
    at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    Please can someone tell me what i am doing wrong?
    BS
    PS: i used following tutorial to create my code for calling BPEL:
    http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial7-InvokingBPELProcesses.pdf

    got some steps more ... but now i havent any clue. Out of this message i think my ProviderURL is wrong. but i try this both and got always the same error message.
    jndiProviderUrl = "opnm:ormi://amy:6003/orabpel"
    jndiProviderUrl = "opnm:ormi://amy:6003:oc4j_soa/orabpel"
    java.lang.Exception: Erstellen von "ejb/collaxa/system/DeliveryBean"-Bean nicht erfolgreich. Es wurde folgende Exception gemeldet: "javax.naming.NamingException: Invalid provider URL
         at com.evermind.server.rmi.RMILocation.createRMILocation(RMILocation.java:80)
         at com.evermind.server.rmi.RMILocation.createRMILocation(RMILocation.java:57)
         at com.evermind.server.rmi.RMIClient.getLocations(RMIClient.java:661)
         at com.evermind.server.rmi.RMIClient.getDomain(RMIClient.java:640)
         at com.evermind.server.rmi.RMIClient.getContext(RMIClient.java:534)
         at com.evermind.server.rmi.RMIInitialContext.get(RMIInitialContext.java:44)
         at oracle.j2ee.rmi.RMIInitialContextFactory.getInitialContext(RMIInitialContextFactory.java:45)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:277)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    Please can someone help me?
    What is wrong wis my ProviderURL?
    BS

  • Problem with adobe api for LC

    Hello to all,
    I'm trying to write code that retrive a file from registry but I ALWAYS get the following error:
    root cause
    java.lang.NoClassDefFoundError: com/adobe/ebxml/registry/services/query/filter/Clause
    java.lang.Class.getDeclaredConstructors0(Native Method)
    java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
    java.lang.Class.getConstructor0(Class.java:1930)
    java.lang.Class.newInstance0(Class.java:278)
    java.lang.Class.newInstance(Class.java:261)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:72)
    org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275 )
    org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java: 78)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:534)
    What about this?
    I'm using Eclipse 3.1 (adobe has advised to me) and jboss 3.2.
    I'm very very tyred to see this error :-(((
    Any help?
    Thank you!!!!!
    I'm goind to became crazy.. ;-P
    Sorry for my poor english.
    Roberto.

    Ok, I have discarded eclipse :-) now I use Netbeans 5.0 and I don't see that error any more.
    By thw way I have some problems with adobe-registry-api.jar;
    Do anyone use this API write programs that use liveCycle registry?
    I would like get the document from registry, the version of them, and so on.
    I found some example from adobe, but also these examples have problem with data type, classes and so on.
    Every problem leads back to adobe-registry-api.jar and whichever other class is correctly used from Netbeans.
    Someone have any idea or suggestion?
    Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you! :-)
    Bye,
    Roberto.

  • Problems with Reflection API and intantiating an class from a string value

    I want to instantiate a class with the name from a String. I have used the reflection api so:
    static Object createObject(String className) {
    Object object = null;
    try {
    Class classDefinition = Class.forName(className);
    object = classDefinition.newInstance();
    } catch (InstantiationException e) {
    System.out.println(e);
    } catch (IllegalAccessException e) {
    System.out.println(e);
    } catch (ClassNotFoundException e) {
    System.out.println(e);
    return object;
    Let's say my class name is "Frame1".
    and then if i use:
    Frame1 frm = (Frame1) createObject("Frame1");
    everything is ok but i cannot do this because the name "Frame1" is a String variable called "name" and it doesn't work like:
    name frm = (name) createObject("Frame1");
    where i'm i mistaking?
    Thanks very much!

    i have understood what you have told me but here is a little problem
    here is how my test code looks like
    Class[] parameterTypes = new Class[] {String.class};
    Object frm = createObject("Frame1");
    Class cls = frm.getClass();
    cls.getMethod("pack",parameterTypes);
    cls.getMethod("validate",parameterTypes);
    everything works ok till now.
    usually if i would of had instantiated the "Frame1" class standardly the "cls" (or "frm" in the first question ) object would be an java.awt.Window object so now i can't use the function (proprietary):
    frame_pos_size.frame_pos_size(frm,true);
    this function requires as parameters: frame_pos_size(java.awt.Window, boolean)
    because my cls or frm objects are not java.awt.Window i really don't find any solution for my problem. I hope you have understood my problem. Please help. Thanks a lot in advance.

  • Problem with DOM API

    Hi,
    I use org.w3c.dom to create an XML file.
    I need to configure "xmlns" into father and child tags, because I have to send my XML to a soap webservice,
    and the server arises "error in schema XML" if I put "xmlns" only in father, not in child.
    The problem is that DOM API automatically removes the "xmlns" from child, and I didn't find a way to force it
    to use "xmlns" at any time.
    This is my XML before to generate the DOM tree:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?> 
      <nfeDadosMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao2"> 
        <enviNFe versao="2.00" xmlns="http://www.portalfiscal.inf.br/nfe"> 
          <idLote>75600</idLote> 
          <NFe xmlns="http://www.portalfiscal.inf.br/nfe"> 
            ... many internal tags ...
          </NFe> 
        </enviNFe> 
    </nfeDadosMsg>After to generate the DOM tree, NFe becomes without "xmlns", only "<NFe>".
    If I change to:
    <NFe xmlns="http://www.portalfiscal.inf.br/nfeXXX">then the DOM tree becomes fine with "xmlns" into enviNFe and NFe, but
    because the xmlns's are differents.

    If you stop thinking of that as an "xmlns attribute" and start thinking of it as what it really is, namely a namespace declaration, then you might understand the part of the DOM documentation which refers to namespaces better. You might also track down the rule which describes what a "default" namespace is and how it's inherited (and overridden) by child elements. Without that these things are just going to be a mystery to you.
    Also be sure to make your DOM be namespace-aware if you're going to use namespaces. By default it isn't. I believe it's the factory which has the setNamespaceAware method and not the parser.

  • Problem with scheduling ECMA Ver1.1 in build 4.1.3496.0 and build 4.1.3479.0

    I tried using powershell, vbscript, and c# calls and everytime the ecma is called, the ma run step finishes and never goes to the next run step.
    Basically it never returns a run status to whatever calls the schedule and just hangs.
    I have several ecmas and 2 of them behave this way, the others are packaged ecmas.
    All other schedulng with the fim ma,adma's and the packaged ecmas work fine..
    Any ideas?  Im running out of them a I have tried rebuilding the ma's.. building packages, rebuilding wmi.. doing a rollup udare and nothing works..  This also occurs in dev.Any help is appreciated.
    Thanks
    Joe Stepongzi - Identity Management Consultant ilmXframework.codeplex.com

    Exports will work if no pending exports.
    Hi Joe :) - long time!
    The above seems to me to be a clue - is it possible something is being instantiated/connection opened/etc. in your IMAExtensibleCallExport.ExportEntry call that is not being cleaned up?  Have you tried debugging, or looking closely at the process monitor
    to see what is different between when there IS and ISN'T any pending exports?  Perhaps you could temporarily modify ExportEntry to basically do nothing, or write to a file - anything but what it is doing now - and see if the problem persists.
    Bob Bradley (FIMBob @
    TheFIMTeam.com) ... now using FIM Event Broker for just-in-time delivery of FIM 2010 policy via the sync engine, and continuous compliance for FIM

  • Virusbarrier 10.6.16 update problem with scheduler

    Since Virusbarrier is updated to 10.6.16 engine (Lion) the scheduler doesn't work anymore. Who knows the solution to solve this problem? Intego helpdesk doesn't until now!

    Remove  it and replace with Sophos.  It is less intrusive, and far more compatible.

  • Problem with scheduling reports

    Hi,
    We produce reports in Crystal XI R2 and then publish to Enterprise. We have noticed a recurring and 'random' error with certain reports
    The reports run fine in Crystal and in Infoview when run on demand. However when we chose the schedule option, the report goes through the motions of running ie status = running for a suitable period of time and goes to Sucess. However when we try to open the report the 'blue bar' will go about 50% and then freeze without opening. After that Infoview hanges and we need to restart. This always happens with certain reports but other similar reports schedule fine.
    Any ideas?
    Cheers
    Clive

    That is the problem Clive.  I've had similar experiences that had me baffled.  Whenever you attempt to open the successfully scheduled report, the subreport is run.  Therefore you will have to wait for the subreports to complete before the report opens.  Sometimes this took hours, leaving me to think that it froze.  But it usually eventually comes up.  With each page you go through, the subreport is run again and again.  This is very annoying. 
    I would try modifying the type of subreports I use.  Try the report with "On Demand" subreport and "In Place" subreport.  See which one gives you better performance.  I usually only use subreports for 1 page summary reports.  Other than that they take too long.  I've had reports that I've redone because the subreport version takes too long.
    It is much easier to run these reports on demand.

  • Problem with scheduled message in SXMB_MONI

    Hi All,
    I have come accross an issue. There is a scheduled message in SXMB_MONI(with green flag). It's been there at for a long time.I can see a inbound queue name in the SXMB_MONI display. But if I am looking into the que from SMQ2, there is no pending messages in the queue. How to process this message? Can we reprocess it?
    Thanks

    Hi,
    prerequisite:
    make sure the message will not be processed in SXMB_MONI
    a) restart the message from sender system
    b) take the payload from SXMB_MONI and post it from RWB
    directly to integration engine
    test it on DEV to be sure what you're doing of course
    Regards,
    michal

  • Problem with EGO_ITEM_PUB API

    Hi All,
    We are using EGO_ITEM_PUB.PROCESS_ITEMS API to insert data into our staging table. There are about 4000 records in our staging table which will update near about 60,000 records in mtl_system_items table. This process takes about 14 hrs to make complete update. In production we have 20,000 (Staging table, which means nearly 3-5 lakhs in MTL_SYSTEM_ITEMS table) records to be updated and this will take days to complete the update process.
    Any other work around which will take less time to complete this will be feasible. Pointers in this direction will be appreciated.
    Thanks in advance
    Thanks,
    Ashu Anand

    Hi Ashu,
    Is it possible for you to use Import Item Interface program instead of API? In open interface you have parallel execution facilitiy which will allow to run many parallel processing on records having set_process_id field.
    I understand changing that code is problem but you need to do cost benefit analysis and choose.
    Sunil

  • Problem with search API -- TextSearchConstraint.SOUNDS_LIKE

    Hi All,
    Im trying to use TextSearchConstraint.SOUNDS_LIKE to find similiar data records in MDM repository.
    There are 3 records in table "MDM_BUSINESS_PARTNERS", the value of it' "name" field are: "akedemic",  "akedemci",  and "akedemic Inc." respectively.
    below is the code of setting conditions:
    TextSearchConstraint constraint = new TextSearchConstraint("akedemic", TextSearchConstraint.SOUNDS_LIKE);
    search.addSearchItem(name_dim, constraint);
    I expect to use TextSearchConstraint.SOUNDS_LIKE t get all these 3 records, but the search only returns one record "akedemic",  anyone can explain me the reason?
    Thanks & Best regards,
    Bin
    Message was edited by:
            Bin Dong

    I tried in the Data Manager Free Form Search with the values you provided.
    It returs only 2 records with Sounds like constraint.
    Note: The first value and third value you provided are the same.
    If your data is just like the example you provided, you should get 2 records back.
    For testing the Search API, you can use the Data Manager to see if the API returned results are the same as in Data Manager.
    Example:
    You can try the Sounds like constraint with the values for 2 records
    quiet
    quite
    Have the constraint as sounds like quiet
    You will get the two records back.

  • Problem with Collection API method LIMIT?

    Hi,
    I am trying to learn PL/SQL in my free time and I can't get collection_name.LIMIT to work correctly.
    declare
    type list is table of integer;
    set_a list := list(1,2,3,3);
    i pls_integer := 0;
    begin
    set_a.trim(2);
    i := set_a.limit;
    dbms_output.put_line('Trim(2) leaves ' || to_char(i) || ' spaces in list');
    end;
    The above code prints 'Trim(2) leaves spaces in list'. I first tried putting set_a.limit inside the to_char and got the same results. I tried using it in the expression for an IF statement as I have read in the book and online; something like if set_a.limit < 4 then... This returns true, while set_a.limit > 1 returns false.
    Am I doing something wrong?
    Oh, and I am using the win32_11gR2_database I got from the Oracle download page on Windows XP SP3.
    Thanks.
    Edited by: user13107973 on Aug 24, 2010 3:08 PM

    I figured it out, on closer inspection I see it is only used for varying arrays, and I was trying it on a nested table... Thanks for the advice.
    So, I am reading a horrible book full of typos called "Oracle Database 11g PL/SQL Programming" from the Oracle Press and McGraw Hill.
    BULK COLLECT INTO, page 123
    "The LIMIT statement lets you constrain the size of bulk selections, but you can only use it with explicit cursors." - NOT what I asked about.
    FORALL, page 127
    "The FORALL loop is designed to work with Oracle collections. It lets you insert, update, or delete bulk data." - NOT what I asked about.
    Collection API, page 253
    "The LIMIT method returns the highest possible subscript value in a collection. It can only return a PLS_INTEGER type and can only be used by a VARRAY datatype. It has the following prototype..."
    Edited by: user13107973 on Aug 25, 2010 12:09 PM
    Edited by: user13107973 on Aug 25, 2010 12:09 PM

  • Having problem with DirectPath API LoadStream

    Hi,
    I am attempting to use the direct path API in Oracle 8.1.7 (SUN OS 5.8) to perform large data loads. For the most part I've got the interface doing what I want it to do, however I am also doing statement caching. For instance, after a transaction has been committed (i.e. we call OCIDirPathFinish) the statement goes into a cache to be reused. It will ONLY be reused for the same table that it was originally prepared for. When a cached statement is going to be reused, I perform the following steps:
    1. call OCIDirPathColArrayReset
    2. call OCIDirPathStreamReset
    3. call OCIDirPathColArrayEntrySet for each data entry
    4. call OCIDirPathConvertToStream
    5. call OCIDirPathLoadStream
    6. call OCIDirPathDataSave
    7. call OCIDirPathFinish
    Steps 1 through 4 execute without error, however step 5 returns an ORA-01001 - invalid cursor error. The whole process will work if I perform all of the steps of preparing the DirPath context again, but I'm trying to prevent that from happening with every transaction. I tried only performing a call to OCIDirPathPrepare, but it returns with an error message telling me that my DirPath context handle is already prepared. I then thought that perhaps my stream was corrupt somehow, so I freed up the old stream handle and created a new one, but I got the same ORA-01001 error when I tried to load the stream.
    I also, tried to suppress the call to OCIDirPathFinish, but this leaves the partition that I am loading in some sort of direct path mode which seems to prevent other queries to that partition.
    Anyone have any suggestions?
    Thanks.

    Go back where you downloaded the API and read the FAQ. I think it's the question number 2.

Maybe you are looking for

  • I need help related to Sonic software

    Hi all I am working in Progres Sonic software.Here i am trying to run one sample related to JMSInboundSend which is on the sample code installed with sonic software , in which it will transfer message thorugh JMS broker.But i am getting problem while

  • It says I don't have enuf storage in iCloud acct ($100) 4all my devices?

    It says that I don not have enuf storage space 2back up all of my devices on iCloud even tho I purchased the max ($100) for a year? What do I need 2do?

  • How the protected finalize method is called by garbage collector

    Dear All, I have a double regarding the calling mechanism of finalize method. The access specifier of finalize method is protected, not only that if a class overrides this method then also the finalize method can be protected in the subclass of Objec

  • VM Thread

    Hi, I am running java application on linux for several days. The cpu now is more than 90% for more than a day. I find using the command "top -H" which is the thread that take the CPU. From the thread dump I see that it is the VM Thread. What is this

  • CIN problem: Can't reverse the PART 2 postings

    Hello Experts, We have some cases where user capture and post excise invoice during MIGO having combination of capital goods and raw material.As we know SAP does not support combination of CG and RM. we have to restrict the user to post the combinati