Weblogic Time API

List,
jversion: jdk1.2.2
wlversion: 5.1sp7
Someone posted a message last year regarding the weblogic time api. I am
having a similar error and wanted to know if anyone has resolved this
issue.
I'm simply running the ServerTime.java application located in the
weblogic/examples/time folder.
I get the following on the wl console log when i run the test app:
----------------------wl log-----------------------------------------
Fri Apr 20 13:36:08 CDT 2001:<I> <RJVM> Signaling peer
-3940176906498944186C199.82.241.17 gone:
weblogic.rjvm.PeerGoneException:
- with nested exception:
[java.net.SocketException: Connection reset by peer]
Fri Apr 20 13:36:08 CDT 2001:<I> <CliCon-#|myserver|0.987791533919>
Connection to client for ClientContext - id:
'#|myserver|0.987791533919', bound: 'true', dead: 'false' has been
unexpectedly lost because weblogic.rjvm.PeerGoneException:
- with nested exception:
[java.net.SocketException: Connection reset by peer].
Initiating hard disconnect.
-----end of log-----------------------------
Thanks in advance for any assistance given.
-Mario

The key is that there are three or four interfaces that you need and it
really only makes sense to have one class and implement them all on it.
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
+1.617.623.5782
WebLogic Consulting Available
"Robert Patrick" <[email protected]> wrote in message
news:[email protected]..
Hi,
I have to admit that the examples aren't as clear about showing the
functionality as they should be. However, I think that if you take theexamples
as a starting point and play with them a little, you will see that it'snot too
difficult to use this API.
Robert
Nenad Sokolovic wrote:
Hi everyone,
I am currently evaluating BEA Weblogic server 5.1 and I would like to
make a
component that
would perriodicaly send e-mails to users (once a day at predefined time,for
example). I have found
few examples for Weblogic Time API usage in BEA Weblogic documentation,but
reading their code
and explanation did not help me at all...
I would appreciate any help...
Thanks, Nenad

Similar Messages

  • Weblogic.time.scheduler

    Anyone know why weblogic.time.scheduler is deprecated in 6.1 ?
    and what is suggested to be used in place ?
    Thanks.

    In the next release, we're planning on providing an implementation of
    the JMX timer APIs which will provide a non-proprietary interface for
    accomplishing the same functionality. You should be able to use JMX
    APIs in the server today via the java.management.timer.Timer class. In
    the next release, we plan to have a version of this that is better
    integrated in the server, and provides higher performance.
    -Don
    Lily Hsiao wrote:
    Anyone know why weblogic.time.scheduler is deprecated in 6.1 ?
    and what is suggested to be used in place ?
    Thanks.

  • WebLogic Time Service

    Hi,
    I've created a time service on the server, which gets activated on
    startup and repeatly occurs at some given interval. However, I need to
    stop the timer and restart it again when the time interval is changed.
    Is it possible to do that without bringing down the server?
    Thanks,
    TomyD

    Mario -
    I believe the way it works is you call the schedule () method of your WL
    Time Services implementing object first. For example:
    // Obtain a T3Services factory
    T3ServicesDef t3 = getT3Services ();
    // Request a ScheduledTrigger from the factory. Use
    // this class for scheduling and execution
    std = t3.time().getScheduledTrigger(this, this);
    // Start the ball rolling
    std.schedule();
    Your schedule method would specify the point of time in the future in
    which you are interested.
    Your trigger method, when invoked, should set some instance variable in
    your class. Your schedule method will be invoked after your trigger
    method completes. When your schedule method is invoked, it should check
    the instance variable and if it has been set, the schedule method should
    return 0 to prevent the trigger from being called again.
    Make sure that the schedule method is correctly setting the returned
    long.
    Oh --- your class should be implementing the Schedulable and Triggerable
    interfaces, in case you were using something else. I agree that the
    documentation for this feature seems pretty confusing.
    Peter
    "Mario B. Jones" wrote:
    >
    List,
    As you can tell, I've been spending alot of time playing with Weblogic
    time service lately, and needless to say, I've been running into alot of
    roadblocks.
    Question.
    How in the heck do you implement the time api to perform a "one-time"
    trigger for some point of time in the future? All of the examples, api
    documentation, etc talks you through the necessary to perform
    "recurring" actions. But nothing on one time actions. I have tried
    several different variations but cannot get it done. Seems like the
    trigger will immediately fire the first time but can be delayed for
    future iterations till a specified point of time in the future using
    java.util.Date methods.
    Help!
    Thanks in advance...

  • Weblogic deployment APIs giving error for deployment on weblogic 10.3.2

    I am using weblogic deployment APIs to distribute my war file on weblogic 10.3.2 but it gives the following error on distribute
    weblogic.management.ManagementException: [Deployer:149003]Unable to access application source information in '<!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.0 Draft/EN">/app/jamagent.war' for application 'jamagent.war'. The specific error is: No application files exist.
    My sample code is below.
    DeploymentOptions options = null;     
    Target[] targets = myConnectedManager.getTargets();     
    Class wlsFactoryClass = Class.forName("weblogic.deploy.api.tools.SessionHelper");
    Method m = wlsFactoryClass.getDeclaredMethod("getDeploymentManager",new Class[]{String.class,String.class,String.class,String.class});
    m.setAccessible(true);
    WebLogicDeploymentManager myConnectedManager = (WebLogicDeploymentManager)m.invoke(wlsFactoryClass, new Object[]{hostname,port,weblogicUsername,weblogicPasswd});
    myConnectedManager.enableFileUploads();
    options = new DeploymentOptions();
    options.setName(destWarName);
    ProgressObject po = myConnectedManager.distribute(targets, new File("/tmp/jamagent_orig.war), null,options);
    The header of web.xml is
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    Can someone help why this is happening? I am not including weblogic-application.xml in the war file as i think this is not required for a war file. Is that the reason?
    Edited by: user790199 on Dec 28, 2009 7:37 AM

    Hi,
    The DTD used in "web.xml" should not cause any issue ...though it's the OLD "web.xml"...Please try to run the Following command to Generate the New Deployment Descriptors from the Existing Application:
    Step1). Open a Command Window and Run "setWLSEnv.sh" or "setWLSEnv.cmd".
    Step2). In the Command Prompt move to the Current Directory where you have placed your Application and then Run the Following Command
    java weblogic.DDConverter  -d NewDDs  jamagent.war
    Here Above Command Will read the "jamagent.war" War archive and then It will generate the New DDs in "NewDDs" directory...Which we need to replace with the OLD DDs present in our WebApplication..
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Using Data/Services to connect to NY Times API

    I'm new to flex and have been trying to use the NY Times API to import xml data.  After clicking the Data/Services tab and selecting "xml" I click the "path" button and insert my path
    http://api.nytimes.com/svc/books/v2/lists/BooksPaperback.xml?&api-key={my api key here}
    After clicking invoke I get a results set and Service Details so I know I am getting a response from the API.  However... I get this error at the top 'Parameter names can only contain letters, number and "_".'  .  I guess it doesn't like the use of 'api-key' but I'm not sure how that has an effect on the information being returned and why it matters?  Either way, I cannot click "finish" to use this data.  Is there anything I can do?  Thanks in advance to any help I receive
    NY Times API docs here: http://developer.nytimes.com/docs/best_sellers_api#h3-example-request

    Hi,
    Please refer http://forums.adobe.com/message/2837493#2837493
    hyphen('-') in parameter or return type is not supported yet because they map to AS3 variables.
    -Radhakrishna

  • Best practice using Using the WebLogic Timer Service

    Hi,
    We have a stateless session bean having a method which needs to be called lezs
    say every 10 Seconds. I think the WebLogic Timer Service (JMX) should exactly
    fit in this problem. So I would write a small class implementing the interface
    NotificationListener which will receive the notification. The listener I would
    register in my startup class.
    This brings up some questions:
    Could this class be a inner class of the SessionBean and directly calling the
    method on the bean ?
    Has it to be a more independent class gettting an initiali context, getting local
    home, etc. etc. and then executing the method on the received Stub ? If yes can
    it keep the Stub betwean the interval without releasing ?
    Has someone experiance in this area ?
    Regards
    Tomy

    Actually, it's bad practice to use break anywhere other than in conjunction with a switch statement.Presumably, if you favour:
    boolean test = true;
    while (test)
      test = foo && bar;
      if (test)
    }overfor (;;)
      if (! ( foo && bar) ) break;
    }then you also favour
    boolean test = foo && bar;
    if (test)
    }overif (foo && bar)
    }Or can you justify your statement with any example which doesn't cause more complexity, more variables in scope, and multiple assignments and tests?

  • Using Design-Time API problems

    I've been using the design time API to create an effect similar to that achieved in the examples section of the User guide for the HtmlDataTable. I'm not having any luck with my beanCreatedSetup method. I've done simething similar to the example and have created DesignBeans as table columns but in my examplecode the JSP code is not correct. In the JSP none of the children elements appear as children of the table,. I'm passing in the correct parent design bean when I call createBean, so I'm not sure what I'm doing wrong.
    My code is pretty much the same as in the example.
    Any ideas would help. Or a look at the complete source to HtmlDataTableDesignInfo.
    Don

    I was looking for a more immediate response to this specific problem, the other thread was a request for better examples in the docs. They are related, a complete example could solve my problem, but I'm nore sure there isn't a problem with the createBean() call. No matter what I do, I can't create a bean for component that get's persisted as a child component of a parent. In this case the parent DesignBean is derived from HtmlTableData and I'm trying to add children DesignBeans that are columns. After adding them they are persisted into the jsp page but not as children of the table component.
    Don

  • Java 8: Pb with new java.time api

    Hello,
    I'm trying to use the new java.time api that comes with Java 8 (I already know joda-time).
    I'm using the latest build B124.
    I've a String "01/08/2012_00:00:01", I know that the time ref. is UTC, and I want to convert it to an 'Instant';
    I tried:
    DateTimeFormatter FORMAT_DT = DateTimeFormatter.ofPattern("dd/MM/yyyy_HH:mm:ss").withZone(ZoneOffset.UTC);
    Instant instant = Instant.from(FORMAT_DT.parse("01/08/2012_00:00:01"));
    But it fails with following error:
    java.time.DateTimeException: Unable to obtain Instant from TemporalAccessor: {},ISO resolved to 2012-08-01T00:00:01 of type java.time.format.Parsed
         at java.time.Instant.from(Unknown Source)
    I don't understand what's wrong with my code, and I can't figure out how I should proceed to convert the String to an Instant ...
    Any suggestion welcome,
    Best regards,
    Bernard.

    Originally you stated this:
    I don't understand what's wrong with my code,
    So naturally we focused on how to "understand what's wrong' with your code.
    You will never learn to troubleshoot problems if you just throw your hands up in the air and ask for help just because a complex series of steps doesn't complete successfully. 
    Break the process into its individual steps and check the results of each step to identify which step is FIRST producing an error.
    When a complex or multi-step process has an error you start checking the individual steps of the process to see how far it gets successfully.
    I would expect that converting a String to an Instant should be a basic/simple need, so it should be possible to do it in two lines of code; for the time being, the only way I found is to use a LocalDateTime intermediate variable, which seems quite verbose, and I'm wondering if someone knows a better way to do it, and would be willing to share it here.
    Just a technical distinction: your latest example using a LocalDateTime intermediate variable CAN be done in one line of code by just using dot-notation to avoid creating an explicit intermediate variable. But that variable will still be created implicitly behind the scenes.
    Converting a String to an Instant might be considered a basic/simple need but the set of functionality related to dealing with times, dates, calendars, etc is extremely complex. It makes much more sense to develop the requisite functionality in modules.
    Especially when introducing new functionality such as the 'Instant' class are related package elements introduced in 1.8. That functionality builds on what came before and parsers already existing that know how to deal with all of the possible String variants and formatting options and so on.
    Since that work CAN BE done on-the-fly using dot notation and anonymous implicit intermediate classes there isn't much need to reinvent that functionality in the new classes. If certain uses become standard new methods can always be added (e.g. to the Instant class) that will 'appear' to do things in one step.
    And, being an early adopter release, you can always file a 'bug' or enhancement request from the 1.8 download page. That page has links for 'Report Bugs' and 'Feedback forum' that you can use.
    In this current forum no one can give you an 'official' answer as to why something was implemented a particular way and/or whether that implementation is a 'bug' or was designed to work that way. Only Oracle can do that.

  • Weblogic timer and ClassCastExcetion

    Hi,
    I have very strange problem. I have weblogic timer and when it's time to start the weblogic start's bean and all goes fine till get "home object" from another WLS where I get ClassCastException. Whot is funny if the same bean is started by stand alone client all works fine. I think that timer proces started by weblogic don't see classes that I'm trying to cast to. All classes are in ear file in APP-INF/lib.
    What I have to do ??
    Damian Grela

    So I'm creating the timer(weblogic.management.timer.Timer) object in method ejbCreate() in InitBean.
    Yes, when I invoke handling bean by stand alone client all works good.
    Message was edited by damian.grela at Sep 14, 2004 1:20 AM

  • Weblogic singleto with weblogic timer

    Pls give some sample for using both weblogic singleton and weblogic timer.

    weblogic sibgleton should invoke weblogic timer service?

  • WebLogic Timer services.

    WebLogic has deprecated Timer services with version 6.1 and recommend using Flux.
    What is the rationale behind that? What do other scheduling services offer over the
    standard JDK java.util.Timer class where I can kick of scheduled tasks?
    Thanks ahead of time for your response.
    Regards,
    Amit

    .... but if done from startup, a timer is not in an app and thus can't see
    the app's environment?
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]..
    Yes, that should work fine. What is the error?
    -- Rob
    Satish Yellanki wrote:
    Hi,
    I am trying to use the weblogic timer services.
    I implemented the TriggerDef interface and deployed
    the trigger using "Scheduler" and "Trigger" classes.
    (Server-side triggers.)
    However, when the trigger is run, will I be able to
    do a InitialContext() without any parameters and use
    it to do JNDI lookup? I am running into an error doing
    that and am not sure if I am doing the right thing.
    Thanks,
    Satish--
    Coming Soon: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnweblogic.com

  • Help for weblogic timer

    Please help on timer.
    Thanks a lot.
    Xiao
    I got the following error when try to use weblogic timer:
    <NT Performance Pack> NATIVE: created IoCompletionPort successfully.
    IoPort=0x00
    00024c
    Tue Aug 08 12:24:55 PDT 2000:<I> <WebLogicServer> WebLogic Server
    started
    Tue Aug 08 12:25:09 PDT 2000:<I> <ListenThread> Adding address:
    localhost/127.0.
    0.1 to licensed client list
    Tue Aug 08 12:25:09 PDT 2000:<I> <NT Performance Pack> Allocating: '2'
    NT reader
    threads
    Tue Aug 08 12:25:14 PDT 2000:<I> <CliCon-#|myserver|0.965762672267>
    Connection t
    o client for ClientContext - id: '#|myserver|0.965762672267', bound:
    'true', dea
    d: 'false' has been unexpectedly lost because
    weblogic.rjvm.PeerGoneException:
    - with nested exception:
    [java.net.SocketException: Connection reset by peer].
    Initiating hard disconnect.
    Tue Aug 08 12:25:14 PDT 2000:<I> <CliCon-#|myserver|0.965762672267>
    Removing Cli
    entContext - id: '#|myserver|0.965762672267', bound: 'false', dead:
    'false' beca
    use of hard disconnect timeout
    the code for the timer
    * CONFIDENTIAL, Copyright (C) 2000
    * This file is copyrighted by Uhere and should not be reproduced
    * in any form and/or distributed without prior consent of Uhere.
    package com.uhere.ubs.service;
    * Timer for auction
    * @author Xiao Zhou
    * @version 1.0
    * @since 1.0
    import weblogic.time.common.*;
    import weblogic.common.*;
    import weblogic.jndi.*;
    import javax.naming.*;
    import java.util.*;
    import com.uhere.ubs.utility.*;
    public class AuctionTimer implements ScheduleDef, TriggerDef {
    private T3ServicesDef services;
    private final int AUCTION_SETUPED = 0;
    private final int AUCTION_STARTED = 1;
    private final int AUCTION_CLOSING = 2;
    private long startTime = 0, endTime = 0, timeIncrement = 0;
    private int auctionItemId = 0, status = 0;
    public void setServices(T3ServicesDef services) {
    this.services = services;
    * ScheduleDef Interface
    * @param ParamSet
    * @exception ParamSetException
    * @since 1.0
    public void scheduleInit(ParamSet ps) throws ParamSetException {
    startTime = ps.getParam("startTime").asLong();
    endTime = ps.getParam("endTime").asLong();
    timeIncrement = ps.getParam("timeIncrement").asLong();
    auctionItemId = ps.getParam("auctionItemId").asInt();
    * TriggerDef interface
    * @param ParamSet
    * @exception ParamSetException
    * @since 1.0
    public void triggerInit(ParamSet ps) throws ParamSetException {
    * This method is only called internally by Weblogic schedule when
    the action will be called next time
    * @param long time
    * @return time for next triggger
    * @since 1.0
    public long schedule(long t) {
    System.out.println("signal schedule1");
    if (status == AUCTION_SETUPED) {
    System.out.println("signal schedule2");
    return startTime;
    else if (timeIncrement == 0 || t < endTime - timeIncrement) {
    status = AUCTION_CLOSING;
    return endTime;
    else
    return t + timeIncrement;
    * This method is only called internally by Weblogic scheduled
    action
    * @param Schedulable
    * @since 1.0
    public void trigger(Schedulable sched) {
    System.out.println("signal schedule3");
    if (status == AUCTION_SETUPED) {
    status = AUCTION_STARTED;
    System.out.println("start auction");
    else if (status == AUCTION_CLOSING) {
    System.out.println("close auction");
    else {
    System.out.println("signal auction");
    * external parties call this method to start the scheduled cycle of
    action.
    * @exception UBSException
    * @since 1.0
    * @param startTime
    * @param endTime
    * @param timeIncrement
    * @param auctionItemId
    public static void startTimer(long startTime, long endTime, long
    timeIncrement, int auctionItemId,
    String url) throws UBSException {
    try {
    System.out.println("signal startTime1");
    ParamSet schedParams = new ParamSet();
    schedParams.setParam("startTime", startTime);
    schedParams.setParam("endTime", endTime);
    schedParams.setParam("timeIncrement", timeIncrement);
    schedParams.setParam("auctionItemId", auctionItemId);
    Scheduler scheduler = new
    Scheduler("com.uhere.ubs.service.CommonTimer", schedParams);
    Trigger trigger = new
    Trigger("com.uhere.ubs.service.CommonTimer");
    ScheduledTriggerDef std =
    getT3Services(url).time().getScheduledTrigger(scheduler, trigger);
    std.schedule();
    System.out.println("signal startTime2");
    } catch (Exception e) {
    UBSException.handle(e, UBSException.OP_EXP);
    private static T3ServicesDef getT3Services(String wlUrl) throws
    javax.naming.NamingException {
    T3ServicesDef t3s;
    Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL, wlUrl);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    weblogic.jndi.WLInitialContextFactory.class.getName());
    Context ctx = new InitialContext(env);
    t3s = (T3ServicesDef)ctx.lookup("weblogic.common.T3Services");
    ctx.close();
    return (t3s);
    client
    static public void testTimer() {
    try {
    long time = new Date().getTime();
    AuctionTimer.startTimer(time+5000,time+20000,0,0,url);
    catch (Throwable t) { t.printStackTrace(); }

    I've used a std timer in Java
    Try the following :
    private Timer timer; // The thread
    public void startTimer(){
    timer = new Timer();
    timer.schedule(closeConnection,1000*60,1000*120);
    then run startTimer whenever you wanna hit it...
    regards,
    Dag Norland,
    Donar AS, Norway
    "Xiao Zhou" <[email protected]> wrote in message
    news:[email protected]...
    Please help on timer.
    Thanks a lot.
    Xiao
    I got the following error when try to use weblogic timer:
    <NT Performance Pack> NATIVE: created IoCompletionPort successfully.
    IoPort=0x00
    00024c
    Tue Aug 08 12:24:55 PDT 2000:<I> <WebLogicServer> WebLogic Server
    started
    Tue Aug 08 12:25:09 PDT 2000:<I> <ListenThread> Adding address:
    localhost/127.0.
    0.1 to licensed client list
    Tue Aug 08 12:25:09 PDT 2000:<I> <NT Performance Pack> Allocating: '2'
    NT reader
    threads
    Tue Aug 08 12:25:14 PDT 2000:<I> <CliCon-#|myserver|0.965762672267>
    Connection t
    o client for ClientContext - id: '#|myserver|0.965762672267', bound:
    'true', dea
    d: 'false' has been unexpectedly lost because
    weblogic.rjvm.PeerGoneException:
    - with nested exception:
    [java.net.SocketException: Connection reset by peer].
    Initiating hard disconnect.
    Tue Aug 08 12:25:14 PDT 2000:<I> <CliCon-#|myserver|0.965762672267>
    Removing Cli
    entContext - id: '#|myserver|0.965762672267', bound: 'false', dead:
    'false' beca
    use of hard disconnect timeout
    the code for the timer
    >
    * CONFIDENTIAL, Copyright (C) 2000
    * This file is copyrighted by Uhere and should not be reproduced
    * in any form and/or distributed without prior consent of Uhere.
    >
    >
    >
    >
    package com.uhere.ubs.service;
    * Timer for auction
    * @author Xiao Zhou
    * @version 1.0
    * @since 1.0
    import weblogic.time.common.*;
    import weblogic.common.*;
    import weblogic.jndi.*;
    import javax.naming.*;
    import java.util.*;
    import com.uhere.ubs.utility.*;
    public class AuctionTimer implements ScheduleDef, TriggerDef {
    private T3ServicesDef services;
    private final int AUCTION_SETUPED = 0;
    private final int AUCTION_STARTED = 1;
    private final int AUCTION_CLOSING = 2;
    private long startTime = 0, endTime = 0, timeIncrement = 0;
    private int auctionItemId = 0, status = 0;
    public void setServices(T3ServicesDef services) {
    this.services = services;
    * ScheduleDef Interface
    * @param ParamSet
    * @exception ParamSetException
    * @since 1.0
    public void scheduleInit(ParamSet ps) throws ParamSetException {
    startTime = ps.getParam("startTime").asLong();
    endTime = ps.getParam("endTime").asLong();
    timeIncrement = ps.getParam("timeIncrement").asLong();
    auctionItemId = ps.getParam("auctionItemId").asInt();
    * TriggerDef interface
    * @param ParamSet
    * @exception ParamSetException
    * @since 1.0
    public void triggerInit(ParamSet ps) throws ParamSetException {
    * This method is only called internally by Weblogic schedule when
    the action will be called next time
    * @param long time
    * @return time for next triggger
    * @since 1.0
    public long schedule(long t) {
    System.out.println("signal schedule1");
    if (status == AUCTION_SETUPED) {
    System.out.println("signal schedule2");
    return startTime;
    else if (timeIncrement == 0 || t < endTime - timeIncrement) {
    status = AUCTION_CLOSING;
    return endTime;
    else
    return t + timeIncrement;
    * This method is only called internally by Weblogic scheduled
    action
    * @param Schedulable
    * @since 1.0
    public void trigger(Schedulable sched) {
    System.out.println("signal schedule3");
    if (status == AUCTION_SETUPED) {
    status = AUCTION_STARTED;
    System.out.println("start auction");
    else if (status == AUCTION_CLOSING) {
    System.out.println("close auction");
    else {
    System.out.println("signal auction");
    * external parties call this method to start the scheduled cycle of
    action.
    * @exception UBSException
    * @since 1.0
    * @param startTime
    * @param endTime
    * @param timeIncrement
    * @param auctionItemId
    public static void startTimer(long startTime, long endTime, long
    timeIncrement, int auctionItemId,
    String url) throws UBSException {
    try {
    System.out.println("signal startTime1");
    ParamSet schedParams = new ParamSet();
    schedParams.setParam("startTime", startTime);
    schedParams.setParam("endTime", endTime);
    schedParams.setParam("timeIncrement", timeIncrement);
    schedParams.setParam("auctionItemId", auctionItemId);
    Scheduler scheduler = new
    Scheduler("com.uhere.ubs.service.CommonTimer", schedParams);
    Trigger trigger = new
    Trigger("com.uhere.ubs.service.CommonTimer");
    ScheduledTriggerDef std =
    getT3Services(url).time().getScheduledTrigger(scheduler, trigger);
    std.schedule();
    System.out.println("signal startTime2");
    } catch (Exception e) {
    UBSException.handle(e, UBSException.OP_EXP);
    private static T3ServicesDef getT3Services(String wlUrl) throws
    javax.naming.NamingException {
    T3ServicesDef t3s;
    Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL, wlUrl);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    weblogic.jndi.WLInitialContextFactory.class.getName());
    Context ctx = new InitialContext(env);
    t3s = (T3ServicesDef)ctx.lookup("weblogic.common.T3Services");
    ctx.close();
    return (t3s);
    client
    static public void testTimer() {
    try {
    long time = new Date().getTime();
    AuctionTimer.startTimer(time+5000,time+20000,0,0,url);
    catch (Throwable t) { t.printStackTrace(); }

  • Monitoring Weblogic Time Service

    Hello
    I built a number of java classes that implemented ScheduleDef and
    Triggerdef.
    Then these classes are scheduled using WebLogic Time Service.
    The question is :
    Is there a way to query WLS to find out how many of these classes are
    currently
    being scheduled? We need to find out which one are no longer running in the
    system
    so we can reschedule them. But we also need to know if one is already
    scheduled and
    therefore disallow the ability to schedule a 2nd instance in the server.
    Thanks

    They did state a reason. They expect these services to become part of J2EE.
    You can still use them, or check out something like Flux from Sims
    Computing.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "James McGovern" <[email protected]> wrote in message
    news:[email protected]..
    BEA has deprecated the time services classes without stating any reason.
    Hopefully they will step up and come up with a replacement.

  • Need information about WebLogic Server API

    Hi All,
    Can anyone please tell me what API does Oracle Weblogic Server call. I want to ask by calling which API I can get information about the state of a weblogic server and which jar contains those APIs.
    Thanks in Advance!!

    Hi Roshni,
    For List of MBean's You can follow the below Oracle link
    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13951/core/index.html
    can you pls tell me how can I retrieve of a weblogic server through a java code,
    You can follow the below link,it will be helpful
    http://middlewaremagic.com/weblogic/?p=7505
    Regards
    Fabian

  • Weblogic Timer Event Generator - How it works?

    Hello everyone!
    I have wrote simple wli-application, that subscribes to the message broker channel.
    I have deployed it to the cluster (managed servers 1 (ms1) and 2(ms2)). (I use Weblogic Server 10.3, cluster contains 1 admin server and 2 managed servers.)
    Than I have created the timer event generator (EG) via wliconsole and rule for this EG - to send message to the MB-channel every 30 seconds.
    Then I redeploy EG application via console (WLS Admin Console) from managed server 1 to cluster (m.servers 1 and 2) and start it.
    Everything started ok - I got messages to both instatnces of my application in the following way:
    15:30:00 - to instance on ms1
    15:30:30 - to instance on ms2
    15:31:00 - to instance on ms1
    15:31:30 - to instance on ms2
    ...and so on
    when I shut down ms2 - I started to receive messages to instance of my application on ms1 every 30 secodns. Here Everything is OK.
    Then I start ms 2 and got the picture like:
    15:30:00 - to instance on ms1
    15:30:30 - to instance on ms2
    15:31:00 - to instance on ms1
    15:31:30 - to instance on ms2
    ...and so on
    Then I shutdown ms1... And that's all - no messages to instance on ms2 :(
    I started ms1 and no messages on both instances - on ms1 and ms2..
    Can you explain me how Timer Event Generator works? What resources it uses? And how can I setup it to get load-balancing while both instances running and failover - when one of the instances shutdowned?
    Thanks in advance,
    Vladimir.

    Hi Vladimir, it seems like we must have different environments. I don't know if you used the latest version of wli or not...
    So, not exactly for you, but for someone who happens to read this post, and has the same problems we did...
    -- I've configured the cluster address using the IP i've assigned to the servers.
    --- it means that it is like: 192.168.70.120:8013,192.168.70.120:8113 - ip's & PORT, yes?
    Yes, that's the format we are using (http://download.oracle.com/docs/cd/E13222_01/wls/docs92/cluster/setup.html#wp751583)
    -- Configured the FrontEndHost and FrontEndPort with that same values as the AdminServer.
    --- and you have the http-proxy deployed on your admin server? 'cause front-end host and port - must be the host and port of http-proxy that performs load-balancing for requests to your processes on your managed servers.
    Actually we don't need the HTTP load balance, we only start the process via EG events, so we only benifit from load balancing on the JMS queues, but i had to configure this to be able to start the process. We had errors if we didn't configure this. We used the AdminServer address and port.
    -- Relocated the Persistent Stores and JMS Servers since some were incorrectly pointing to the AdminServer.
    ---I didn't understand about what p.stores you are talking about.. I meant that you must create new JDBC p.store with table in cgDataSource and targeted to migratable target. And than you must create a new jms-server, which hosted to this p.store.
    ...But I didn't retarget any existing p.stores......
    Once the domain was created (didn't do anything but to follow the wizard) we had the persistent stores (and underlying JMS servers) targeted to the AdminServer (obviously incorrect). So we retargeted them to the Managed Server.
    -- Created the JSP_<PROCESS> table in the database.
    --- and what is this? :)
    We had to create a table to persist the wli process state, because it is a statefull process (http://download.oracle.com/docs/cd/E13214_01/wli/docs102/dbtuning/wliTuning.html)
    The matter of fact is everything works fine, despite the exceptions i mentioned in the AdminServer, once it gets started... But it seems to have no negative impact on the application, and migration is done successfully
    I will continue to work on figuring out what the origin of those exceptions is, and if i manage to find a solution i, most surely, will post it here... One thing i find to be strange is that the exceptions start even before i have anything deployed to the Migratable Target... Once i create it and restart the server i get those messages, and we tried the Concensus configuration with NodeManager, as well as the Database configuration.
    I guess that what's really important for us now is that we do have fail over and load balancing working... :D
    I don't know if it would be abusive to ask you for that document of yours, maybe it has some clue on what's wrong in our config, but again, i understand if you can't share that =)
    By the way, i'm portuguese, but since google made the translator available, i guess i can manage russian documentation as well ;)
    I can't tell you how gratefull i am for your help, and for sharing your previous experience with the rest of us. If it wasn't for your altruism i guess i would be stuck with this for much longer... you sure saved my day... BIG BIG thank you..
    Once again, thank you and i wish you all the best !!! I just wished i could be helpfull to you sometime =)

Maybe you are looking for

  • Free goods in Retail system

    Hello Guys, I have done all required steps to maintain Free Goods (in Retail system). Maintained following condition tables: 1. Company/Material 2. Sales org/Material 3. Sales org./Distr. Channel/Material 4. Sales org./Distr. Channel/Plant/Material 5

  • Not able to create a Volume Group in the oracle VM server installation

    Hi, I am installing Oracle VM server. In the installtion ( Partition time ), i click on create custom layout and i want to create a / partition as a logical volumn under volume group. But there is no option to create a Volume group actually. So can a

  • The default disk that itunes saves videos onto is full. How can I set the default to the other disk I have installed?

    When adding a video onto iTunes I get the error message that my disk is full. I am aware of this. I have another disk(Actually same disk but it's split into two parts under computer). It has plenty of space(629 GB free). How do I set the disk that it

  • XI performance

    Hi, We are analyzing the performance in XI 3.0 and we have several questions about this subject. 1. In presentation layer, is it advisable to use XI 3.0 between a front-end and a back-end? We get a bad performance and irregular runtimes when we run t

  • ABAP Query using SQVI

    I've created a query to identify approver from linking several tables.  The result data show several duplicate record because I only want to retrieve the User ID.  Is there a way to select only Unique Record? Regards, Thomas