Re: What do I add the ApplicationLifecycleListener to?

Jay Schmidgall wrote:
I need to be able to perform some things when our app gets deployed and
undeployed, and this seems like what I need. But what do I add it to as
a listener?Your ApplicationLifecycleListener class needs to be in the $CLASSPATH or
APP-INF/lib or APP-INF/classes. I'd suggest APP-INF.
You then need to declare your listener in your ear's
META-INF/weblogic-application.xml descriptor. Here's an example:
<!DOCTYPE weblogic-application PUBLIC '-//BEA Systems, Inc.//DTD
WebLogic Application 8.1.0//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-application_2_0.dtd'>
<weblogic-application>
<listener>
<listener-class>com.bea.applife.Listener</listener-class>
</listener>
</weblogic-application>
And how does it get created before my app is even deployed?It's probably more accurate to say that it's the first thing called
during deployment. Essentially the application files are distributed to
the managed servers, application-wide classloaders are established etc,
and then the preStart callback is called on any listeners before the
Modules (eg webapp, ejb etc) are initialized.
-- Rob
>
: jay

In general, the classes in APP-INF/classes can reference other classes
loaded by the application classloader. This commonly includes jar files
in APP-INF/lib and EJBs. By default, classes in web-applications are
loaded by child classloaders so they would not be seen.
-- Rob
Jay Schmidgall wrote:
Rob Woollen wrote:
Your ApplicationLifecycleListener class needs to be in the $CLASSPATH
or APP-INF/lib or APP-INF/classes. I'd suggest APP-INF.Thanks for the pointer!
This APP-INF is new to me so I'll have to look into that. Are there any
issues with something in APP-INF/classes refering to other classes in my
EAR?
: jay

Similar Messages

  • What do I add the ApplicationLifecycleListener to?

    I need to be able to perform some things when our app gets deployed and
    undeployed, and this seems like what I need. But what do I add it to as
    a listener? And how does it get created before my app is even deployed?
    : jay

    In general, the classes in APP-INF/classes can reference other classes
    loaded by the application classloader. This commonly includes jar files
    in APP-INF/lib and EJBs. By default, classes in web-applications are
    loaded by child classloaders so they would not be seen.
    -- Rob
    Jay Schmidgall wrote:
    Rob Woollen wrote:
    Your ApplicationLifecycleListener class needs to be in the $CLASSPATH
    or APP-INF/lib or APP-INF/classes. I'd suggest APP-INF.Thanks for the pointer!
    This APP-INF is new to me so I'll have to look into that. Are there any
    issues with something in APP-INF/classes refering to other classes in my
    EAR?
    : jay

  • I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a  , which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a +, which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    There's another way.
    Right or control click the + then click Remove Item.
    Just remembered that keyboard shortcut!
    You're welcome 

  • I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    Hey john@adobe,
    Could you please specify how exactly have you created your form.
    You might need to have Acrobat installed on your computer to convert a word document to PDF.
    Do you have Acrobat installed? If yes, what version? If no, then please try using the trial version of Acrobat DC (latest version) and access its features:
    Download Adobe Acrobat free trial | Acrobat Pro DC
    Also, let me know what kind of blue boxes are you talking about.
    If you want others to edit your PDF form, then you need to make it a fillable form by choosing 'Form Editing' option from Tools pane.
    Let me know more on this so that I can help you out.
    Regards,
    Anubha

  • What file name is for the driver of gpib-usb-b?and how to add the driver file to vb in win2000??thanks

    what file name is for the driver of gpib-usb-b?and how to add the driver file to vb in win2000??thanks

    Hi,
    Multiple files are required for the proer fnctioning of any of our GPIB products. Unfortunatly the installation is not as simple as copying a single file over. If you wish to make the installer silent, i believe this is entirely possible in a fashion similar to the details given at http://digital.ni.com/public.nsf/websearch/0730A66245E6808086256CA8006E2183?OpenDocument.
    Hope this helps out!
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • HT5052 Having trouble downloading iOS 5.0. Instead of turning of entire firewall cant I just add the program to the exceptions. If so, what do I type in?

    Trouble downloading iOS 5.0. Instead of turning off entire firewall cant I just add this program to the exceptions? If so, what do I type in?

    Add the relevant ports to your security suite
    Well known TCP and UDP ports used by Apple software products
    http://support.apple.com/kb/TS1629
    80 TCP Outbound/Inbound
    443 TCP Outbound/Inbound
    3689 TCP Outbound/Inbound

  • I'm trying to add the system date with a Label. What is wrong with the code

    import java.util.*;
    import javax.swing.*;
    public class CurrentDateApplet extends JApplet
         Calendar currentCalendar = Calendar.getInstance();
         JLabel dateLabel = new JLabel();
         JPanel mainPanel = new JPanel();
         int dayInteger = currentCalendar.get(Calendar.DATE);
         int monthInteger = currentCalendar.get(Calendar.MONTH)+1;
         int yearInteger = currentCalendar.get(Calendar.YEAR);
         public void init()
              mainPanel.add(dateLabel);
              setContentPane(mainPanel);
              dateLabel.append(currentCalendar.get(Calendar.HOUR) + currentCalendar.get
                        (Calendar.MINUTE);
    }

    As for what's wrong with the code, it would be easier if you said: it doesn't show the date (it does this instead), it doesn't compile (I get this message) etc.
    Anyway I'll assume you want to display the time in a label...
    dateLabel.append(currentCalendar.get(Calendar.HOUR) + currentCalendar.get
    (Calendar.MINUTE);This won't compile: the parentheses are mismatched, and there is simply no such thing as append(). So we could trydateLabel.setText("" + currentCalendar.get(Calendar.HOUR) + currentCalendar.get(Calendar.MINUTE));This wroks, but looks pretty nasty and it's not how you are supposed to format dates and times. Here's the unofficial party line, nicked from one of jverd's posts:
    Calculating Java dates: Take the time to learn how to create and use dates
    Formatting a Date Using a Custom Format
    Parsing a Date Using a Custom Format
    From those links you should be able to find those applicable to times like this: http://www.exampledepot.com/egs/java.text/FormatTime.html
    Using this approach you would end up with something like:import java.text.Format;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import javax.swing.JApplet;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    public class CurrentDateApplet extends JApplet
        private Date date;
        private JLabel timeLabel;
        private JPanel mainPanel;
        public void init()
            mainPanel = new JPanel();
            timeLabel = new JLabel();
            mainPanel.add(timeLabel);
            setContentPane(mainPanel);
            date = new Date();
            Format formatter = new SimpleDateFormat("HH:ss a");
            timeLabel.setText(formatter.format(date));
    }

  • When I upload any photos from iphoto or a folder it overwrites all the existing photos. is there a way to add to the existing library without deleting what's already in the library?

    When I upload photos from iphoto or any other folder it overwrites all the existing photos in my ipad. is there a way to add to the existing library without deleting what's already in the library?

    No, apart from using the emailing them, to yourself or using a third-party app such as Simple Transfer (in which case the photos will only go into the Saved Photos/Camera Roll album) or the camera connection kit (Imported album). You need to sync all the photos that you want on the iPad in one go, as only the contents of the most recent sync remains on the iPad - not including photos in a sync is how you delete them from the iPad

  • What type of add on can I download that will allow meto change the view of my emails in gmail? I would like to have them split view like outlook

    What type of add on can I download that will allow meto change the view of my emails in gmail? I would like to have them split view like outlook

    Dear Sara,
    I notice that you didn't reply to my questioning the this ambiguous stipulation of your services being extended to Adobe's rights in the use of my personal content or intellectual and creative property.
    When I returned to my "files" section in Adobe Reader where they were transferred to in converting them to PDF they had all been removed. Around 6 projects in progress plus notes and several creative design images in one instance (attached to a writing project). I have access to the files and I am downloading Cloud desktop interface.
    Does the interface of Reader in desktop automatically remove them from my online account, making them exclusively offline from here on OR must they be physically removed and so have they been removed by another party?
    Finally, since they are made copyright in the conversion, must future files be made uploaded to signify and account for them as made copyright by the process record in my personal account?
    Excuse my asking lots of questions. My work has been tampered with in the past and I am excited about this service I can avail of in protecting all of my work.
    Yours Sincerely,Liam Anthony Dalton BA, FA

  • I am trying to add the Youtube widget, but I get a black box saying blocked plugin. I have even tried to embed it from Youtube as well and it does the same thing. But when I drag the Vimeo widget over, it connects like it should. What am I doing wrong and

    I am trying to add the Youtube widget, but I get a black box saying blocked plugin. I have even tried to embed it from Youtube as well and it does the same thing. But when I drag the Vimeo widget over, it connects like it should. What am I doing wrong and how can I fix this problem?

    Make sure that both the web browser you're using and its Flash plug-in are up to date. Google Chrome has its own Flash plug-in it updates on its own. Firefox, IE and other have separate plug-ins.

  • I got a message on my iPad today saying in email account had been added to an iPhone and to click ok. There wasn't any other option but to click ok. I didn't add the account to my iPhone. What does this mean?

    I got a message on my iPad today saying in email account had been added to an iPhone and to click ok. There wasn't any other option but to click ok. I didn't add the account to my iPhone. What does this mean?

    Hi there, no I didn't. I hadn't done anything. Just turned it on up came the message.

  • Just purchased a new pc. Downloaded Itunes. Downloaded some new music. Went to add the new music to my iphone off my new computer but it wants to wipe all of my existing music which has been purchased from itunes. HELP! What should i do?

    Just purchased a new pc. Downloaded Itunes. Downloaded some new music. Went to add the new music to my iphone off my new computer but it wants to wipe all of my existing music which has been purchased from itunes. HELP! What should i do?

    Kford_red wrote:
    Feel a bit gutted as spent £££'s downloading music tonight and not been able to get the songs onto my phone so far!
    The music you just downloaded tonight to your new computer is safe. The music you purchased on your phone is safe.  You shouldn't feel gutted.  It's your other music that you should have taken better care of.  That would include any music you ripped yourself or purchased outside of iTunes.  That you can't get back.
    It has always been the user's responsibility to back up and protect downloaded music.  If you didn't have a backup of your computer before it started acting funny, that's your fault.  It would be no different than if you lost a music CD.  It would not be a record store's responsibility to replace if you lost it.  Digital music is no different.  Similarly, a phone is not a backup medium.  Phone's break, get misplaced or stolen all the time and are not a substitute for a backup copy of your music and media.
    Computers WILL break.  Hard drives WILL fail.  That's why you back up your data. 

  • What to do, to add the ivory audio units in logic? I can't see it. Thanks

    What to do, to add the ivory audio units in logic? I can't see it. Thanks

    You can't see it.
    Right.
    Readers of this post have no idea where you are looking for it.... Is it so hard give a tiny little bit of MORE INFORMATION? Or are you looking for the elusive Logic Psychic Users forum perhaps?
    1. Read documentation. It's pretty simple really, like any other 3rd party instrument or effect plugin.
    Have you run an installer? Did it say it was successful? If so, then it's there and you should be able to find it without any forum help.

  • What formula to add up the values in one column only if a box is checked in the next column?

    Hi guys,
    I am creating a spreadsheet for my wedding guestlist.
    In one column I have a number to tell me the total number of adult guests the party (e.g fried and girlfriend = 2) and then the next two colums are check boxes, one for daytime and the next for nighttime.
    What I would like to do is in a footer row under the daytime time checkbox column is to total the first colum (the total number of wedding guests in each party).
    I hope that I am explaining this ok, sorry if it is vague.
    I understand to use COUNTIF to total the number of checked boxes in the column and have been working on COUNTIF + the sum of the previous column but it's not really working.
    Any help will be greatly appreciated.
    Thanks,
    Phil

    Phil,
    Here's an example of what you might do:
    The expression in the footer of column B is:
    =SUMIF(B, TRUE, $A)
    and, the expression in the footer of column C is:
    =SUMIF(C, TRUE, $A)
    Regards,
    Jerry

  • In version 3.6 I can not open a website link from original page, I keep getting a new window that is blank and asking me to put in a web address. What has changed with the new version?

    When on a page if I click on a web link I get a new window that is blank and asks me enter a web address. This started happening with the new 3.6 version. It seems to have something to do with what I choose for the location in my privacy settings as the window changes with each setting but I still cannot get to the new site. Any ideas? I have no problem with this in IE and I have to keep opening IE when I encounter the problem on Firefox which is annoying.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

Maybe you are looking for