Can any backup do this?

I've bought a 320GB hard drive for my MacBook Pro. I'd like to do a clean install on the drive. But I'd also like to restore from a backup all the applications and preferences that did not come with the operating system.
Is this pie-in-the-sky dreaming or can it be done?

I didn't see that option in Time Machine. If you mean to use Time Machine to pick and choose what folders you want replaced, that is exactly what I did. I restored the Applications, User info and the Library folder. The Library folder on my install couldn't be replaced because of permissions, so I just copied most of the folders from my Time Machine backup to my new install.
It's gone pretty smoothly, although I'm going to have to re-install my Creative Suite 3 apps. Not a big deal.
I remember in OS9 whenever you did a clean install you could copy all the new extensions, preferences, etc. into their respective old folders, thus replacing all the native files but not touching the files that came with app installs. Then, you'd copy everything back to the clean install. You'd have the fresh installs and any data that was needed for apps, prefs, etc.
But I have no nostalgia for OS 6-7-8-9. Good riddance.

Similar Messages

  • CAn any one supply this script

    Hi can any one supply this script for
    installing Oracle 11i...
    adautostg.pl
    In order to create a staging area...
    Help me guys...

    I had check the version of perl in linux
    perl -v
    output is
    this perl is, v5.8.0
    but in the StartCD/Disk1/rapidwizard/...the adautostg.pl
    file is not available...
    so it could not able to start
    still I tried by ./rapidwiz

  • Can any body answer this-Want to set the cursor position in textfield.

    i want my cusor position in textfield at the initial position which will come by default.
    but when i'm using the textfields in an inner class i'm getting the cursor position at the end of the text in text filed.pls can any body answer this.
    thanks in advance.
    if want run this example.
    import java.awt.*;
    import java.awt.event.*;
    class Testing extends JFrame implements ActionListener
         Container cnt;
         JButton jd;
         JTextField jt1;
         JTextField jt2;
         Testing()
              cnt = getContentPane();
              cnt.setLayout(new FlowLayout());
              jd = new JButton("OK");
              //jd.setBounds(50,50,100,30);
              cnt.add(jd);
              jd.addActionListener(this);
         public void actionPerformed(ActionEvent ae)
              Object but = ae.getSource();
              System.out.println("in action 00000");
              if(but.equals(jd))
                   System.out.println("in action ");
                   call();
                   return;
         void call()
              System.out.println("in action 1111111111");
              Inner inn = new Inner();
              inn.jdlg.show();
         public static void main(String s[])
              JFrame jf = new Testing();
              jf.setSize(200,200);
              jf.show();
         class Inner
              JDialog jdlg;
              //JTextField jt1;
              //JTextField jt2;
              Container cnt;
              Inner()
                   jdlg = new JDialog();
                   JLabel jla = new JLabel("Label");
                   jt1 = new JTextField();
                   jt2 = new JTextField(5);
                   cnt = jdlg.getContentPane();
                   cnt.setLayout(new FlowLayout());
                   cnt.add(jt1);
                   cnt.add(jt2);
                   jt1.setText("aaaaaaaa");
                   jt2.setText("bbbbbbbb");
                   System.out.println("the text "+jt1.getText());
                   jdlg.setSize(200,200);

    JTextFiled.setCaretPosition(0);

  • Can any one solve this problem

    when i sent request to the jsp using struts1.1 this error occurred. i couldn't understand this error. can any one let me know when such error comes and let me Know how to solve this error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:279)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:653)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:246)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.ClassNotFoundException: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:649)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:246)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.

    Its problem related to your configuration files. check struts config file

  • Can any one debug this code????

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.geom.*;
    import java.util.*;
    public class AppletTest2 extends JApplet implements ActionListener,MouseMotionListener,WindowListener{
    JFrame fr = new JFrame("Visual Tool -- Work Flow Editor");
         JPanel panel1 = new JPanel();
         JPanel panel2 = new JPanel();
         JButton sButton = new JButton("Source");
         JButton rButton = new JButton("Redirection");
         JButton dButton = new JButton("Destination");
         JButton connect = new JButton("Connect");
         BasicStroke stroke = new BasicStroke(2.0f);
         int flag = 1 ;
         Vector lines = new Vector();
         JButton sBut,rBut,dBut;
    int x1 = 0 ;
         int y1 = 0 ;
         int x2 = 0 ;
         int y2 = 0;
         int x3 = 0;
         int y3 = 0;
         int i=0;
         int j=0;
         int k=0;
         int l = 100;
    int b = 50;
    public void init(){
              /*********Frame ******************/
    fr.getContentPane().setLayout(new BorderLayout());
         fr.setSize(700,500);
              fr.getContentPane().add(panel1,BorderLayout.CENTER);
              fr.getContentPane().add(panel2,BorderLayout.SOUTH);
              fr.addWindowListener(this);
              /*****************PANEL 1*********************/
              panel1.setLayout(null);
    panel1.setBounds(new Rectangle(0,0,400,400));
              panel1.setBackground(new Color(105,105,205));
    /************************PANEL 2 *************/
              panel2.setLayout(new FlowLayout());
              panel2.setBackground(new Color(105,205,159));
              panel2.add(sButton);
              panel2.add(rButton);
              panel2.add(dButton);
              panel2.add(connect);
              connect.setToolTipText("Use this button after selecting From and To position to connect");
              /***************************LISTENER********************/
    sButton.addActionListener(this);
              rButton.addActionListener(this);
              dButton.addActionListener(this);
              connect.addActionListener(this);
              fr.setVisible(true);     
              fr.setResizable(false);
         } // init clse
    /************************** START METHOD **********************************************/
              public void start(){                                 
                   System.out.println("inside start");
                   paint(panel1.getGraphics());
    /*******************************APPLET METHODS **************************************************/
              public void stop(){}
              public void destroy(){}
    /******************************MOUSE MOTION LISTENERS METHOD*************************************/
              public void mouseMoved(MouseEvent e){System.out.println("moved");}
              public void mouseDragged(MouseEvent e){System.out.println("dragged");}
    /***************************************ACTION EVENT IMPLEMENTAION *******************************/
         public void actionPerformed(ActionEvent e){
              if (e.getSource().equals(sButton)){          
              sourceObject("Source Object");          
              else if (e.getSource().equals(rButton)){          
              redirectionObject("Redirection");
              i = i+1;
              else if (e.getSource().equals(dButton)){
              destinationObject("Destination");
                   j= j+1;
              else if (e.getSource().equals(connect)){
                   System.out.println("am inside connect");                
                   paint(panel1.getGraphics());               
    else if(e.getSource().equals(sBut)){
                   System.out.println("am s button");                
                   x1 = sBut.getX() + l;
                   y1 = sBut.getY() + (b/2);
              else if(e.getSource().equals(rBut)){
                   System.out.println("am r button");               
                   x2 = rBut.getX() ;
                   y2 = rBut.getY()+ b/2;
                   System.out.println("x2 : " + x2 + "y2 :" +y2 );
              else if(e.getSource().equals(dBut)){
                   System.out.println("am d button");                
                   x3 = dBut.getX();
    y3 = dBut.getY()+ b/2;
    } // action close
    /**********************Main **********************************/     
         public static void main(String args[]){
         JApplet at = new AppletTest2();
              at.init();
              at.start();
    /********************my methods starts here *******************/
         public void sourceObject(String name){     
    sBut = new JButton(name);
         panel1.add(sBut);
         sBut.setBounds(new Rectangle(20,208,l,b));     
         sBut.addActionListener(this);
    System.out.println("am inside the source object") ;
         public void redirectionObject(String name){     
         rBut = new JButton(name);
         panel1.add(rBut);
         rBut.setBounds(new Rectangle(290,208,l,b));     
    rBut.addActionListener(this);
    System.out.println("am inside the redirection :" + j) ;
    public void destinationObject(String name){     
         dBut = new JButton(name);
         panel1.add(dBut);     
    System.out.println("am inside the destination object") ;
    if (j == 0)
                   dBut.setBounds(new Rectangle(566,60,l,b));                    
                   System.out.println("am inside the destination:" + j) ;
                   } else if (j == 2)
                        dBut.setBounds(new Rectangle(566,208,l,b));     
                        System.out.println("am inside the destination :" + j) ;
                   } else if (j == 1)
    dBut.setBounds(new Rectangle(566,350,l,b));     
                        System.out.println("am inside the destination :" + j) ;
    dBut.addActionListener(this);
    /* public void connectObject(Object obj1,Object obj2){
    System.out.println("nothing");
    /************************************* PAINT **************************/
    public void paint(Graphics g){
         System.out.println("inside paint");
         Graphics2D g2 = (Graphics2D) g;
         g2.setStroke(stroke);
    if(flag == 1){
    System.out.println("inside flag");
    int np = lines.size();
                        System.out.println(np);
                             for (int I=0; I < np; I++) {                       
         Rectangle p = (Rectangle)lines.elementAt(I);
                             System.out.println("width" + p.width);
                             g2.setColor(Color.red);
                             g2.drawLine(p.x,p.y,p.width,p.height);
                             System.out.println(p.x +"" +""+ p.y + ""+ ""+ p.width+ "" + ""+ p.height);
    flag = -1;
    }else if(flag == -1){
         if(x1 != 0 && y1 != 0 && x2 != 0 && y2 != 0 ){
    // Graphics2D g2 = (Graphics2D) g;
         // g2.setStroke(stroke);
    g2.setColor(Color.red);
         g2.drawLine(x1,y1,x2,y2);
         lines.addElement(new Rectangle(x1,y1,x2,y2));     
         x1 = 0 ;y1 = 0 ;
         x2 = 0 ;y2 = 0 ;
    //     g2.drawLine(100,100,200,200);
    else if (x2 != 0 && y2 != 0 && x3 != 0 && y3 != 0 )
              // Graphics2D g2 = (Graphics2D) g;
                   // g2.setStroke(stroke);
              g2.setColor(Color.green);
                        g2.drawLine(x2,y2,x3,y3);
                        lines.addElement(new Rectangle(x2,y2,x3,y3));
                        x2 = 0; y2 = 0 ;
                        x3 = 0 ; y3 = 0 ;                    
    else if (x1 != 0 && y1 != 0 && x3 != 0 && y3 != 0)
                   //     Graphics2D g2 = (Graphics2D) g;
                   // g2.setStroke(stroke);
                   g2.setColor(Color.red);
                   g2.drawLine(x1,y1,x3,y3);
                        lines.addElement(new Rectangle(x1,y1,x3,y3));                              
                        x1 = 0; y1 = 0 ;
                        x3 = 0 ; y3 = 0 ;                    
    // repaint();
    /********************************WINDOW LISTENER IMPLEMENTATION *****************************/
    public void windowActivated(WindowEvent we) { 
              flag = 1;
              paint(panel1.getGraphics());
    System.out.println("windowActivated -- event 1");
         //start();               
         public void windowClosed(WindowEvent we) {
                                                                System.out.println("windowClosed -- 2");
         public void windowClosing(WindowEvent we){
                                                                System.out.println("windowClosing -- 3");
    public void windowDeactivated(WindowEvent we) {
                                                                     System.out.println("windowDeactivated -- 4");
    public void windowDeiconified(WindowEvent we) {
                                                                     flag = 1;
                                                                     System.out.println("windowDeiconified -- 5");          
                                                                     paint(panel1.getGraphics());           
    public void windowIconified(WindowEvent we) {           
                                                           System.out.println("windowIconified -- 6");
                                                           //paint(panel1.getGraphics());
    public void windowOpened(WindowEvent we) {             
                                                      //     flag = 1;
                                                      //     paint(panel1.getGraphics());
                                                           System.out.println("windowopened -- 7");     
    The problem am facing here is that when i minimize the frame and maximize , my old lines are getting disappared.
    For avoiding that i am storing the old coordinates and
    try to redraw , when maximize.
    but the lines are coming for flash of second and disappearing once again ?
    can any one help?
    thanks all

    You are probably seeing both a window un-iconify AND a window resize.
    Your best bet is to create an off screen buffer update that and then copy it to the screen. Just as you use the appropriate Java2d gc.createCompatibleImage(...) you should be ok. You will never have to worry about loosing your on-screen image again. Using an off screen buffer would also simplify your code as your paint would not have to be so crazy with all of those if(..) else if ... statements.

  • Can  any one Resolve this Error

    Hello All,
          i have downloaded  AppleAccordion example and imported in flex builder ide .
          i am getting an error
               Interface method get creatingContentPane in namespace mx.core:IContainer not implemented by class Header.
          i have added flexlib.swc file into my build path.
    Can any one help me.
    thanks
    Raghu.

    Hi,
    I don't know what version of FlexLib is in that source, but it's not latest.
    Download and put latest version of Flexlib to your project.
    http://code.google.com/p/flexlib/

  • Can any one change this Applet into a class that extends Jpanel.....

    Hi,
    I need this applet as a class that extends JPanel, I will be very very thankful to you if any one kindly change this Applet code into a class that extends JApplet.
    I will be very thankful to you if some one can reserve few minutes & do this favor early.
    Thanks a lot for any help.
         My Pong Code
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.awt.event.*;
    public class Class1 extends Applet implements Runnable
    {     private final int APPLET_WIDTH = 900;
         private final int APPLET_HEIGHT = 600;
         private int px = 15;
         private final int py = 560;
         private final int ph = 10;
         private final int pw = 75;
         private int old_px = px;
         private int bx = 450;
         private int by = 15;
         private final int bh = 20;
         private final int bw = 20;
         private int move_x = 2;
         private int move_y = 2;
         private boolean done = false;
         Thread t;
         private final int delay = 25;
         public void init()
         {     setBackground(Color.black);
              setSize(APPLET_WIDTH, APPLET_HEIGHT);
              requestFocus();
              addKeyListener(new DirectionKeyListener());
             (t = new Thread(this)).start();
         public void run()      {
        try      {     while((t == Thread.currentThread()) && (done == false))           {     
                   if ((bx < 15) || (bx > APPLET_WIDTH-30))                     move_x = -move_x;                                if ((by < 15) ||                    ((by > APPLET_HEIGHT-60)&&                     ((px<=bx)&&(bx<=px+pw))))
                        move_y = -move_y;
                   if (by > APPLET_HEIGHT)
                        done = true;
                                   bx = bx + move_x;
                   by = by + move_y;                                                repaint();
                   t.sleep(delay);
         catch(Exception e)      {}
         }//end run
         /*public void move_paddle(int amount)
              old_px = px;
              //if (amount > 0)
                //if (px <= APPLET_WIDTH-15)
                   px = px + amount;
              //else if (amount < 0)
               // if (px >= 15)
                   px = px + amount;
         public void paint(Graphics page)
              //     page.setColor(Color.black);
              //     page.drawRect(old_px, py, pw, ph);
                   page.setColor(Color.blue);
                   page.drawRect(px, py, pw, ph);
                   page.setColor(Color.white);
                   page.drawOval(bx, by, bw, bh);
                   if ((done == true) && (by > APPLET_HEIGHT))
                        page.drawString("LOSER!!!", APPLET_WIDTH/2, APPLET_HEIGHT/2);
                   else if (done == true)
                        page.drawString("Game Over, Man!", APPLET_WIDTH/2-10, APPLET_HEIGHT/2);
         private class DirectionKeyListener implements KeyListener               
              public void keyPressed (KeyEvent event)
                   switch (event.getKeyCode())
                   case KeyEvent.VK_LEFT:
                        old_px = px;
                        if (px >=15)
                             px -=10;
                        break;
                   case KeyEvent.VK_RIGHT:
                        old_px = px;
                        if (px+pw <= APPLET_WIDTH-15)
                             px += 10;
                        break;
                   case KeyEvent.VK_Q:
                        done = true;
                   default:
                   }  //end switch
                   repaint();
              }//end keyPressed
              public void keyTyped (KeyEvent event)
              public void keyReleased (KeyEvent event)
         }  //end class 
    }

    thank you sir for your advice.
    Its not like that I without any attempt, just past code here & asked for its conversion. I spent about 5 hours on it, can say spoil whole day but to no avail. You then just guide me, give some hint so that I do it. I will most probably wanted to do it by myself but asked for help when was just disappointed.
    I try to put all init() in default constructor of identical copy of this applet that extends JPanel. Problem.....ball tend to fell but pad not moving. Also out out was not getting ant color input. That was like my best effort.....other tried that I found by search like just do nothing only extend panel OR frame in spite of applet, start applet from within main of another class.... these are few I remember what I tried.
    I will be very very thankful to you if you can help/guide me how can I do it. Behavior of the Applet is like a normal PONG game with on pad controlled by arrow keys, & one ball colliding with walls of boundary & falling down.
    Thanks a lot again for your attention & time.

  • Can any one validate this architecture?

    I have designed an architecture for my Application using MVC framework. I need
    wise advice on my architecture.Please validate.
    The architeure is
    JSP ->Struts Action class - >Businessdelegate--> (uses)--> Service Locator--> Session Facade(session bean)-->Businessobject-->Dao
                                                                                                                         |
                                                                                                               Application Service
                                                                                                                          |
                                                                                                          External Application  &  Webservice  ****************************************************************************************
    Explanation of the above depicted sequence :
    JSP : Provides the view for the presentation layer.
    Action Class - The function of an action class is to create a Transfer object out of Form Object and invoke the corresponding business delegate method.
    Business Delegate - The business delegate calls the appropriate Service method based on the value obtained from the Transfer object.This layer uses Service locator for the JNDI look up.
    Session Bean -EJB Service (Session bean) delegates the business object coordination logic to the Business Object Layer.
    Business object Layer- All the business validations will be performed.Based on the business requirement, it will call the DAO or call Web Service Layer through Application Service layer.
    Application Layer - The Application Service layer is used to co-ordinate with the external application services and Web service layer.
    My Queries :
    1) One section of my application has just one concurrent user. Ie. the application has Administration section in which at a time only 2 users will be using the application. Is it wise to go for EJB implementation.?
    2) If EJB layer is not used? can i use a simple java interface class and an implementation class to replace the EJB layer..so that if the future requirement needs EJB implementation, then we can just introduce a home interface to convert this existing approach to a EJB.I have this thought process, I am not sure whether this is feasible? If this is feasible, how do i go about?
    3)Is there any simple approach to have a better architecture? Please advice
    4) If you look at the above layered sequence, I am calling the external application , say for example any rule engine(External application) call is via this application service layer and Web service call is also through the application layer.Do i need to have a seperate layer to differnsiate the call from the webservice and the other external application?

    I have designed an architecture for my Application
    using MVC framework. I need
    wise advice on my architecture.Please validate.You might have a look at the J2EE design patterns and find something similar to this :-)
    JSP ->Struts Action class -
    - >Businessdelegate--> (uses)--> Service Locator-->
    Session Facade(session bean)-->Businessobject-->Dao Yeah! Everyone uses the same design... I'm going to run away from Java now...
    My Queries :
    1) One section of my application has just one
    one concurrent user. Ie. the application has
    Administration section in which at a time only 2
    users will be using the application. Is it wise to go
    for EJB implementation.?You need not have the EJB for that. Anyway, all your EJB does is call another bunch of classes. It is not really achieving what a session facade is intended to do (save remote EJB calls). Besides a Business Object would be achieving the purpose of encapsulating the business logic.
    2) If EJB layer is not used? can i use a simple
    le java interface class and an implementation class
    to replace the EJB layer..so that if the future
    requirement needs EJB implementation, then we can
    just introduce a home interface to convert this
    existing approach to a EJB.I have this thought
    process, I am not sure whether this is feasible? If
    this is feasible, how do i go about?It depends on what you want to do having an EJB. Is it for scalability, concurrent database transaction handling, persistence... ??? If you require all that, I doubt you would get it in a single interface + implementing class. Anyway, you have DAOs to take care of DB layer. And your EJB doesn't serve much purpose here.
    3)Is there any simple approach to have a better
    architecture? Please adviceYes, do away with the EJB. I think Think about what you want to really do with the thing labelled as "DAO". In short, look for the core J2EE patterns and try to understand what each layer is intended to do, if it is a part of the architecture..
    4) If you look at the above layered sequence, I am
    calling the external application , say for example
    any rule engine(External application) call is via
    this application service layer and Web service call
    is also through the application layer.Do i need to
    have a seperate layer to differnsiate the call from
    the webservice and the other external application?You might have another layer of abstraction if you expect a change in requirements. Else it would be just another layer. :-)
    Disclaimer: All the replies are to the best of my knowledge! Consult someone, especially J2EE patterns.

  • Doubt in this code can any one clarify this

    this is a code in program generated by sap query
    SELECT VBRKBUKRS VBRKBZIRK VBRKFKDAT VBRKKUNAG VBRK~SPART
           VBRKVBELN VBRKVKORG VBRKVTWEG VBRKXBLNR VBRP~FKIMG
           VBRPMATKL VBRPMATNR VBRPPOSNR VBRPVBELN VBRP~VKBUR
           VBRPVKGRP VBRPVRKME VBFAERDAT VBFAMEINS VBFA~POSNN
           VBFAPOSNV VBFARFMNG VBFAVBELN VBFAVBELV VBFA~VBTYP_N
           VBFA~VBTYP_V
    INTO (VBRK-BUKRS , VBRK-BZIRK , VBRK-FKDAT , VBRK-KUNAG , VBRK-SPART
         , VBRK-VBELN , VBRK-VKORG , VBRK-VTWEG , VBRK-XBLNR , VBRP-FKIMG
         , VBRP-MATKL , VBRP-MATNR , VBRP-POSNR , VBRP-VBELN , VBRP-VKBUR
         , VBRP-VKGRP , VBRP-VRKME , VBFA-ERDAT , VBFA-MEINS , VBFA-POSNN
         , VBFA-POSNV , VBFA-RFMNG , VBFA-VBELN , VBFA-VBELV , VBFA-VBTYP_N
         , VBFA-VBTYP_V )
    FROM ( VBRK
           INNER JOIN VBRP
           ON VBRPVBELN = VBRKVBELN
           INNER JOIN VBFA
           ON VBFAPOSNV = VBRPPOSNR
           AND VBFAVBELV = VBRPVBELN )
           WHERE VBRK~BUKRS IN SP$00009
             AND VBRK~BZIRK IN SP$00012
             AND VBRK~FKDAT IN SP$00002
             AND VBRK~KUNAG IN SP$00003
             AND VBRK~SPART IN SP$00013
             AND VBRK~VBELN IN SP$00001
             AND VBRK~VKORG IN SP$00010
             AND VBRK~VTWEG IN SP$00011
             AND VBRP~MATKL IN SP$00008
             AND VBRP~VKBUR IN SP$00015
             AND VBRP~VKGRP IN SP$00014
             AND VBFA~VBTYP_N IN SP$00004
             AND VBFA~VBTYP_V IN SP$00005.
      %DBACC = %DBACC - 1.
      IF %DBACC = 0.
        STOP.
      ENDIF.
      CHECK SP$00004.
      CHECK SP$00005.
      CHECK SP$00009.
      CHECK SP$00012.
      CHECK SP$00002.
      CHECK SP$00003.
      CHECK SP$00013.
      CHECK SP$00001.
      CHECK SP$00010.
      CHECK SP$00011.
      CHECK SP$00008.
      CHECK SP$00015.
      CHECK SP$00014.
      CHECK SP$00006.
      PERFORM TEXTFIELD_REFRESH(RSAQEXCE).
      PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBRK' VBRK.
      PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBRP' VBRP.
      PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBFA' VBFA.
      PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBRP 'VBRP' 'MATKL'
              TEXT_VBRP_MATKL.
      PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBFA 'VBFA' 'VBTYP_N'
              TEXT_VBFA_VBTYP_N.
      PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBFA 'VBFA' 'VBTYP_V'
              TEXT_VBFA_VBTYP_V.
      ADD 1 TO %COUNT-VBRK.
      %LINR-VBRK = '01'.
      EXTRACT %FG01.
      %LINR-VBRK = '02'.
      EXTRACT %FG02.
      %EXT-VBRP02 = 'X'.
        EXTRACT %FGWRVBRP02.
      %LINR-VBRK = '03'.
      EXTRACT %FG03.
      %LINR-VBRK = '04'.
      EXTRACT %FG04.
      %EXT-VBFA04 = 'X'.
        EXTRACT %FGWRVBFA04.
      %LINR-VBRK = '05'.
      EXTRACT %FG05.
    ENDSELECT.
    in this code what check statement does

    Hi Avinash kodarapu,
                    The use of check statement is ...
    Terminating a Loop Pass Conditionally
    To terminate a single loop pass conditionally, use the
    CHECK <condition> statement in the statement block of
    the loop.
    If the condition is not true, any remaining statements
    in the current statement block after the CHECK statement
    are ignored, and the next loop pass starts. <condition>
    can be any logical expression.
    DO 4 TIMES.
      CHECK SY-INDEX BETWEEN 2 and 3.
      WRITE SY-INDEX.
    ENDDO.
    The output is:
             2          3
    The first and fourth loop passes are terminated without
    the WRITE statement being processed, because SY-INDEX is
    not between 2 and 3.
    So what the check statement does is that it checks if
    SPXXXXX values are null or not. If SPXXXXX values are
    null the current loop terminates and starts with next
    value for the select statement.
    Hope this helps you.
    Regards,
    Maheswaran.B

  • CAN ANY BODY SOLVE THIS.

    Hi ,
    TILL NOW ANY BODY HAS RUN APPLICATION ( calling flex
    application in url) WHICH INVOKES A SERVLET PERFORMS
    REQUEST/RESPONCE . IF YES PLEASE SOLVE MY CODE.
    ELSE
    PLEASE HELP ME WITH A SAMPLE CODE/Example.
    currently i have a login.jsp in which i am calling
    source="./login.mxml"
    code for login.jsp
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <html>
    <head>
    <title>This is calling HelloServlet</title>
    </head>
    <body>
    <form action=./HelloServlet method=POST>
    <mm:mxml source="./Login.mxml">
    </mm:mxml>
    </form>
    </body>
    </html>
    and code in login.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" >
    <mx:Panel width="382" height="315" layout="absolute"
    horizontalCenter="4" verticalCenter="2.5" fontFamily="Verdana"
    title="eCTDViewer-Login">
    <mx:Label x="25" y="49" text="UserName "/>
    <mx:TextInput x="115" y="47"/>
    <mx:Text x="25" y="98" text="Password"/>
    <mx:TextInput x="115" y="96" displayAsPassword="true"/>
    <mx:Button label="Login" horizontalCenter="-80"
    verticalCenter="42.5" textRollOverColor="#408080" />
    <mx:Button x="186" y="169" label="Cancel"
    textRollOverColor="#408080"/>
    <mx:Label x="10" y="-26" text="eCTDViewer-Login"
    width="310" height="23" enabled="true"/>
    </mx:Panel>
    </mx:Application>
    and in now i am calling login.jsp in IE 7.0 as url=
    http://localhost:8080/flex/login.jsp
    it is displaying login page exactly what i want, but after
    entering username,password when i click submit button it should go
    to HelloServlet, there in servlet i am just printing a message,
    but it is not going to HelloServlet, Please guide me how to
    do this. and what need s to be configured in web.xml,
    /**********************HelloServlet**************/
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.HttpServlet;
    public class HelloServlet extends GenericServlet {
    public void service(ServletRequest req, ServletResponse res)
    throws ServletException, IOException
    res.setContentType("text/html");
    PrintWriter pw=res.getWriter();
    System.out.println("I can into HelloServlet");
    pw.println("<B>Hello!");
    pw.println("<B>Hi!");
    pw.close();
    /***********************web.xml**************/
    <?xml version="1.0" encoding="utf-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="
    http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
    <servlet-name>login</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/login</url-pattern>
    </servlet-mapping>
    </web-app>
    waiting for reply.

    there is already reply to your request in FlexBulder
    category(even though not sure what flex builder has to do with it )
    anyways, you cant get servlet to run unless you invoke it and you
    are definitely not invoking it from flex .look at reply in
    flexbuilder category.
    it gives good example.

  • Can any one believe this tech support trying to delete legacy adobe apps!!!!!!

    Vipin: May I have your permission to connect to your computer remotely and try to solve the problem while you watch?
    ADOBE CUSTOMER: I need to know that NONE of my legacy adobe apps will be affected. CS5 suite and CS6 products will NOT be affected is that right??????????????
    info: Your chat transcript will be sent to dixxx.net at the end of your chat.
    Vipin: It will be affected.
    ADOBE CUSTOMER: WHOA! you are saying that my CS% and CS 6 apps will be hurt and not run correctly is that right?
    Vipin: We need to remove all the Adobe apps installed on your computer.
    Vipin: Is that okay.
    Vipin: May I have your permission to connect to your computer remotely and try to solve the problem while you watch?
    ADOBE CUSTOMER: There is no way I give permission to delete CS5 creative suite, CS6 video production suite or hurt them in any way what so ever. I have THOUSANDS of dollars of plugins and other workfow products that depend on them. Sorry but my only recourse is to
    ADOBE CUSTOMER: see if you have ANY loyalty to an OVER 30 years adobe customer (me) when you demand payout for the remaining 5 months of the subscription. I'm betting you will just send the bill to collections for non payment. If so, you WILL be sued for non service and non delivery of product. And yes, I am ready to spend over xxxx on a suit vs adobe because of how you have treated me. The point is I know that I am not alone, and that's sad.
    Then customer service has the gall to ....
    ME:
    1) First I need a credit for $10.81 for months October, November, and December of 2014... and January of 2015.
    2) Second I need my subscription extended at the SAME price for ONE year WHEN I START A NEW SUBSCRIPTION upon new releases of the photography CC bundle. The current one does NOT install correctly on a purpose built computer to handle Video and 3D processing. I will not tolerate you deleting legacy products that go back to CS3 and newer that I depend on to pay my bills. The forums are full of folks with the same install problems for CC 2014. That is one year free for the extreme hassle and loss of time productivity, travel expenses, and monies due to being forced to use my standalone
    PS CS6 products for core work and another copy of the CC PS for 3D work at another location with a different persons subscription for my clients jobs.
    3) You need to get PS CC installed on my new production box on its “D” drive before I will agree to anything except the above. Lightroom CC 2014 installed just fine. There is no excuse for a product like PS to fail on extraction prior to install!
    Britt from adobe:
    If you do decide to cancel, we can refund your subscription.
    If you stay with the service, we can provide 2 free months as an apology for the technical difficulties. We cannot provide a free year.
    Please let me know which you would like to do.
    Thanks,
    Britt
    Kee Jee You want me to stay with a service that provides no product? And has not provided me with a usable product since October of 2014? And now the word is out that you are raising subscription prices after the first year? Who do you think you are? You HURT peoples ability to earn a living! You cost us hours and days and months trying trying to fix your problems so we can move forward with your products? Who in the hell do you think you are? Tell you what, dont cancel a thing. A media blitz and maybe a subpoena to San Jose is the right move to protect peoples rights. Your company needs to learn a lesson in how to treat legacy customers. It seems no one has taught you that "if you take care of the customer, they will take care of adobe." Britt, care to guess how many dollars I have given adobe in almost 30 years?

    Britt, I'm still waiting for my refund!
    1) I am STILL waiting for a full refund.
    2) Second I need my subscription extended at the SAME price for ONE year WHEN I START A NEW SUBSCRIPTION upon new releases of the photography CC bundle. The current one does NOT install correctly on a purpose built computer to handle Video and 3D processing with PS. I will not tolerate adobe and your text support wanting to delete legacy products that go back to CS3 and newer that I depend on to pay my bills.
    You and your tech support was worthless in suggesting they wanted to CLEAN my ENTIRE box of ALL ADOBE products. The LEGACY Apps WORK, they are PAID FOR, and thousands of dollars of After Effects, Premiere, and medical scientific plugins for Photoshop would be invalid and not useful without the legacy installed products. I sure as hell am NOT upgrading to CC for my production bundles after the way you have treated me and many of my clients now. Instead we are pursuing alternative solutions that are not adobe.
    The forums are full of folks with the same install problems for CC 2014. That is one year free for the extreme hassle and loss of time productivity, travel expenses, and monies due to being forced to use my standalone PS CS6 products for core work and another copy of the CC PS for 3D work at another location with a different persons subscription for my clients jobs.
    3)  There is no excuse for a product like PS to fail on extraction prior to install!
    4)  Your software has a poor history in the security department and I am now dealing with the second zero-day affecting my Flash, exploiting Internet Explorer and Firefox on
    my Windows 7. You all deny that you have a problem. I am waiting for you to notify me soon on what needs updating and I need to know when you plan to push out a fix. Only then will
    I allow flash back on my systems.
    Charles Fonetnot

  • Can any one Modify this Code and reply back

    Hi,
    Iam using this UDF presently to get one return value from RFC Lookup mapping Table.
    Now I want two return values from the RFC Lookup Mapping Table.
       //write your code here
         int length=pospymtvalue.length;
         String DBTABLE = tabname[0];
                                    String lookUpField = lkpfld[0];
                                    String sapClient = "500";
                                    String hostName = "xidev";
                                    String systemNumber = "00";
                                    String userName = "user1";
                                    String password = "pass";
                                    String language = "EN";
                                    JCO.Repository mRepository;
                                    JCO.Client mConnection = JCO.createClient(
                                                   sapClient,
                                                   userName,
                                                   password,
                                                   language,
                                                   hostName,
                                                   systemNumber );
                                    // connect to SAP
                                    mConnection.connect();
                   for(int j=0;j<length;j++)
                                    String WHERE_CLAUSE = pospymt[0]" = ""'"pospymtvalue[j]"'";
                                    // create repository
                                    mRepository = new JCO.Repository( "GenericRFCMappingLookup", mConnection );
                                    // create function template to select data from any table
                                    JCO.Function function = null;
                                    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
                                    function = ft.getFunction();
                                    // Obtain parameter list for function
                                    JCO.ParameterList input = function.getImportParameterList();
                                    // Pass function parameters
                                    // set import parameters table name and RFC
                                    input.setValue( DBTABLE, "QUERY_TABLE");
                                    input.setValue( "," , "DELIMITER");
                                    //Fill the where clause of the table
                                    JCO.ParameterList tabInput = function.getTableParameterList();
                                    JCO.Table inputTable = tabInput.getTable("OPTIONS");
                                    inputTable.appendRow();
                                    inputTable.setValue(WHERE_CLAUSE,"TEXT");
                                    mConnection.execute( function );
                                    //Find the position of the field that has to be lookedUp
                                    JCO.Table lookupFieldPos = function.getTableParameterList().getTable("FIELDS");
                                    int pos = -1;
                                    for (int i = 0; i < lookupFieldPos.getNumRows(); i++)
                                              lookupFieldPos.setRow(i);
                                              if (lookupFieldPos.getString("FIELDNAME").equals(lookUpField))
                                              pos = i;
                                    //Get the exact lookupvalue from the position obtained above
                                    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
                                    for (int i = 0; i < valueSet.getNumRows(); i++)
                                              valueSet.setRow(i);
                                              String resultSet [] = valueSet.getString("WA").split(",(?=(?:[\"]*\"[\"]\")(?![^\"]*\"))");
                                              result.addValue(resultSet[pos]);
                                  mConnection.disconnect();
    Regards
    Bopanna

    Hi Boppana,
    For loop at the end will return more than one values if it has more than one value for the input values.
    chirag.

  • Can any one answer this?

    All,
    Can we have any limit for using nested loop in PL/SQL?
    Regards
    ND

    user8900449 wrote:
    The recurssion no doubt is elegant but the only problem arises when you are doing some sql or dml inside it.
    Because it will end up opening as many cursors as your recursion revolves around.That depends on the scope of the cursor - whether it remains open for the duration of the procedure's lifetime, or whether it is closed before recursion occurs.
    Simple (and ugly) example using implicit cursors (cursor is created and destroyed before the recursive call is made in the current active code unit), thus a single open cursor exist (per call) for the lifespan of the entire recursive call.
    SQL> create or replace procedure Nest( levelNo number ) is
      2          i       integer;
      3  begin
      4          if levelNo > 0 then
      5                  select levelNo-1 into i from dual;
      6                  Nest( i );
      7          end if;
      8  end;
      9  /
    Procedure created.
    SQL>
    SQL> exec Nest(1000000)
    PL/SQL procedure successfully completed.
    So be careful in recursion along with sql operation inside it.Agreed. But why would one want to use open SQL cursors in recursion? (i.e. each recursion creating a cursor with scope that spans the recursive call)
    There are nested loop joins (courtesy of the CBO), hierarchical query support and so on. Using PL to solve a SQL problem (like doing manual nested loops in PL) is always a problem - not just an issue with PL recursion.

  • Can any one do this

    3 5 14 22 30 44
    6 12 15 16 31 44
    11 17 21 29 30 40
    26 35 38 43 47 49
    3 5 9 13 14 38
    2 3 27 29 39 44
    9 17 32 36 42 44
    2 5 21 22 25 32
    7 17 23 32 38 42
    6 16 20 30 31 47
    4 16 25 26 31 43
    1 7 37 38 42 46
    15 18 29 35 38 48
    16 19 21 29 36 45
    5 8 10 18 31 33
    11 12 17 26 32 42
    2 13 22 27 29 46
    9 18 19 24 31 41
    4 17 41 42 44 49
    22 25 30 32 41 43
    14 17 22 24 42 47
    1 4 6 23 26 49
    8 18 20 33 36 38
    9 15 22 31 34 48
    5 14 17 35 43 48
    7 16 25 26 28 41
    15 16 17 28 32 46
    12 13 25 37 44 45
    1 21 29 31 32 40
    12 15 26 44 46 49
    Determine how frequently (i.e. how often) each of the winning numbers occurs. For this you will need another array (i.e. a �frequency array�) to store how often each of the winning numbers occurs. For example you can see from the data file that the winning number 9 has occurred 4 times, so that the frequency of 9 is 4. In this case the frequency array element 9 will contain 4. Write java code to determine an array of frequencies. Test your code by providing output of the frequency array.
    Note: The first element (a[0]) is effectively redundant!
    does anyone in here know how to do this I haven't got a clue!!
    Please help!!

    for loops dude..
    use for loops to seee how many times a number occurs, and then record it into a vector or something.
    PS. Dont post homework questions on here. Think about the question try it and then ask us for help getting around more specific problems like why is the count always higher than it should be, or what should i use to record the occurence of something.
    Then people will answer you.

  • Can any one fix this problem

    Hello i have recently have asked here before about a burning problem that I have encountered. I was told that i needed enough detail for someone to help me. So I will write what the problem is in a 45 page essay. Ok maybe not that detailed. Well first of all i downloaded three videos from my jvc camcorder into imovies. BTW I have a brand new macbook like a month old so yeah everything is new. Well i edited the movies and wanted to burn them in idvd. i dont have a superdrive but bought an external dvd burner from sony. I then made a slideshow of pics in imovie. So i have a total of three medias that i want to burn in idvd. The first video which is a ceremony is 34:37. The second video is a reception is 35:26 long. The third video which is a slideshow is only 4:36. Now twice i have burn a dvd successfully. When this has happen its only the ceremony video and the slideshow that get burned. using an old wedding silver theme. So i tried many times with the three videos there and it gives me the multiplexing error. So at least I know it burns dvds its just i cant get all three of them in there. I am new to mac world and i know for sure though that i didnt do anything different from the two videos.

    Before you start the burn process, turn off all energy savers, screen savers, drive sleep, etc.
    Any of these will interfere/halt the rendering/MUXing process. Generally you end up with a coaster instead of a playable DVD.
    how much free HD space do you have?
    On my system, 1-1/2 hours video needs approx 35gb space to render.
    Below that, if fails or generates errors.
    Older versions of iDVD and iMovie were not happy with 8bit audio.
    Had to redo the import in 16 bit. Don't know if 08 fixed that issue.
    Might want to create slideshow as a slideshow inside of iDVD instead of as a movie in iMovie.

Maybe you are looking for

  • Difference between Target Content and Homepage Pagelet

    Hello All, I am new to PS Portal Structure. Currently I am using PS HRMS 9.0 and PT - 8.49. what is the difference between Target Content and Homepage Pagelet? Thanks!

  • Problem in UIX with Layouts

    Hi, I am trying to modify a UIX page which has some components. I have to add another drop down component to it, which should have farily long tip text and an information icon just besides the drop down. The present components have been arranged in a

  • Project Server 2013 Task Reassignment Privileges Off? (Works in Timesheet)

    Version: Project Server 2013 I'm trying to give our users access to reassign tasks.  I turned on "Reassign Task" on the Global Permissions and gave them security to "Assign Resource" on all their categories. I've tested this, and the "Reassign" featu

  • Set cursor on screen

    hi, i want to set cursor on screen field. i used SET CURSOR FIELD field_name command on PBO ,but it is not working. if any body has solution then please reply me.... Thanks Regards Rakesh

  • Change to source system not possible

    Our source system has a RFC problem conection, and when I try to change the parameters I have this meessage Change to source system not possible Message no. RSAR743 Diagnosis The change to RFC parameters is not possible for source systems with manual