Implementing 3D Object

Implementing 3D Object
Hi, I am taking an introductory Java course at school, and I need some help with implementing one class to another.
I am trying to put Kuma.java (3D object) into KumaPanel.java (above the buttonPanel), but I have no clue how. Would it be easier if I just write one class instead of trying to link these two together?
Here are my codes:
Kuma.java:
import java.awt.Frame;
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.behaviors.vp.OrbitBehavior;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import com.sun.j3d.loaders.objectfile.ObjectFile;
import com.sun.j3d.loaders.*;
public class Kuma extends Applet
    static boolean application = false;
       public static void main(String[] args)
            application = true;
         Frame frame = new MainFrame(new Kuma(), 640, 480);
     public void init()
          setLayout(new BorderLayout());
          Canvas3D c = new Canvas3D(SimpleUniverse.getPreferredConfiguration());
         add("Center", c);
         SimpleUniverse universe= new SimpleUniverse(c); // setup the SimpleUniverse, attach the Canvas3D
         BranchGroup scene = createSceneGraph();
         universe.getViewingPlatform().setNominalViewingTransform();
        scene.compile();
        universe.addBranchGraph(scene); //add your SceneGraph to the SimpleUniverse
          //Rotate the cube
          OrbitBehavior cameraRotate = new OrbitBehavior(c);
          cameraRotate.setSchedulingBounds(new BoundingSphere());
          universe.getViewingPlatform().setViewPlatformBehavior(cameraRotate);
    public BranchGroup createSceneGraph()
         BranchGroup root = new BranchGroup();
         TransformGroup tg = new TransformGroup();
        Transform3D t3d = new Transform3D();
            try
                Scene s = null;
                ObjectFile f = new ObjectFile ();
              f.setFlags (ObjectFile.RESIZE | ObjectFile.TRIANGULATE | ObjectFile.STRIPIFY);
               if (application == false)
                    java.net.URL neuron = new java.net.URL (getCodeBase(), "walk.obj");
                    s = f.load (neuron);
                    tg.addChild (s.getSceneGroup ());
               else
                    String s1 = "walk.obj";
                    s = f.load (s1);
                    tg.addChild (s.getSceneGroup ());
           catch (java.net.MalformedURLException ex){
           catch (java.io.FileNotFoundException ex){
           // create an ambient light
           BoundingSphere bounds = new BoundingSphere (new Point3d (0.0, 0.0, 0.0), 100.0);
           Color3f ambientColor = new Color3f (1.0f, 1.0f, 1.0f);
           AmbientLight ambientLightNode = new AmbientLight (ambientColor);
           ambientLightNode.setInfluencingBounds (bounds);
           root.addChild (ambientLightNode);
           root.addChild(tg);
          t3d.setTranslation(new Vector3f(100.0f, 0.0f, -100.0f));
           return root;
KumaPanel.java:
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import java.io.File;
import java.io.IOException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class KumaPanel extends JFrame implements ActionListener, KeyListener{
     JPanel buttonPanel = new JPanel();
     public static int WIDTH = 800;
     public static int HEIGHT = 600;
     KumaPanel()
          ///Create a Content Window
          setSize(WIDTH, HEIGHT); //setting the size of the window
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//for closing the window
          setTitle("Nazo Nazo"); //title of the window
          Container contentPane = getContentPane();
          contentPane.setBackground(Color.blue); //background color of the panel
          ///Create a White Button Panel
          contentPane.setLayout(new BorderLayout());
          buttonPanel.setLayout(new FlowLayout()); //set layout type to FlowLayout
          buttonPanel.setBackground(Color.black); //background to white
          contentPane.add(buttonPanel,BorderLayout.SOUTH); //add buttonPanel on contentPanel
          ///Create First Button with Kuma Ranger on it
          ImageIcon smiley1 = new ImageIcon("kuma.jpg");
          JButton firstButton = new JButton("kuma");
          firstButton.setIcon(smiley1);
          firstButton.setBackground(Color.white);
          buttonPanel.add(firstButton);          //add button to buttonPanel
          firstButton.addActionListener(this);
          ///Create First Button with Mrs.Smile on it
          ImageIcon smiley2 = new ImageIcon("inu.jpg");
          JButton secondButton = new JButton("inu");
          secondButton.setIcon(smiley2);
          secondButton.setBackground(Color.white);
          buttonPanel.add(secondButton);          //add button to buttonPanel
          secondButton.addActionListener(this);
          ///Create First Button with Mrs.Smile on it
          ImageIcon smiley3 = new ImageIcon("usa.jpg");
          JButton thirdButton = new JButton("usa");
          thirdButton.setIcon(smiley3);
          thirdButton.setBackground(Color.white);
          buttonPanel.add(thirdButton);          //add button to buttonPanel
          thirdButton.addActionListener(this);
     public static void main(String[] args)
          KumaPanel iDemo = new KumaPanel();
          iDemo.setVisible(true);
     public void actionPerformed(ActionEvent e) {
          Container contentPane = getContentPane(); //getting the contentPane of the window
          if (e.getActionCommand().equals("inu")) {
               contentPane.setBackground(Color.green);
               System.out.println("I have pressed the GREEN smiley...");
          else if (e.getActionCommand().equals("kuma")) {
               contentPane.setBackground(Color.red);
               System.out.println("I have pressed the RED smiley...");
          else if (e.getActionCommand().equals("usa")) {
               contentPane.setBackground(Color.yellow);
               System.out.println("I have pressed the YELLOW smiley...");
          else
               System.out.println("There is an error.");
     @Override
     public void keyPressed(KeyEvent e) {
          // TODO Auto-generated method stub
     @Override
     public void keyReleased(KeyEvent e) {
          // TODO Auto-generated method stub
     @Override
     public void keyTyped(KeyEvent e) {
          // TODO Auto-generated method stub
}Thank you!

cider wrote:
I am trying to put Kuma.java (3D object) Not exactly. It's an Applet, and this distinction is important.
into KumaPanel.java (above the buttonPanel), and this is a JFrame, another important distinction.
but I have no clue how. Would it be easier if I just write one class instead of trying to link these two together?In general, no. You want to keep things that are logically distinct in their own classes and files. BUT, combining what you have posted here unfortunately is like combining oil and water. Since Kuma is an Applet, it uses AWT GUI components which don't mesh well with KumaPanel's Swing components. Also, an Applet is Root container as is a JFrame. Both of them are sort of like final destinations for components and don't readily "go in" to something else. You need to combine something that is compatible with the other and easily goes into something else. For instance if Kuma where a JPanel, it would be be easy to put it into a JFrame somewhere.
I suggest that you go through the Java Swing tutorials to get a better appreciation of java GUI programming before trying to tackle something like what you are trying to do here.

Similar Messages

  • Implementation Business Objects in CAF and developing WDJ application

    Hi Experts,
    I've read some articles about SAP CE CAF from SDN and I'm making some exercises according those guidence. Right now I have a problem and want to get suggestion from you. 
    As you know, from CE 7.1.1, the CAF support importing the Business Object through EJB model. So when develop a WDJ application using caf, we can using these procedures:
    (Implementing business objects in CAF and developing WebDynpro application)
    1) Create business objects or application service.
    2) Generate EJB Implementation class for business objects or app service.
    3) Create a WebDynpro application
    4) Importing the EJB model using the template.
    5) Create the UI for the app.
    My problem is: In the business object or application serivice, if the operation parameter type is integer, after we generate the EJB class, the type will changed to String. After the WDJ UI is created, the application test failed. The integer field could not passed to the BO successfully.
    If all the parameters type are string in the operation, there's no problem.  But when I use Integer or Date, the EJB class will change the type and the WDJ app will failed.
    I've also test the scenario in CE enviroment including 7.3 also failed. So I'm a little confused which step was wrong. I don't know whether you've seen such problem before, if you could give any suggestion, it'll be very appreciated!

    Hi, Winters.
       I got the same program, try to parse into the type which you want in AS operation.
    BR.
    Louis Huang.

  • How to implement Com-Objects?

    Hello,
    I use an ActiveX software which should be implemented in LabView. Now I want to know, if it is possible to implement Com-Objects from this ActiveX software in my LabView Application. When it is possible, where can I find this Com-Objects? Of course the ActiveX components are already implemented in LabView.

    hello mobmon,
    create an "Automation refnum" - control on your frontpanel (can be found under the "Refnum" palette), then select your object or browse for it (right klick "Select ActiveX class"). after that you have to wire the control with the "Automation open" and "Close Reference" functions from the "ActiveX" palette. After that you have access to methods an properties.
    hope it works
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Implementing a object using cofiles

    Hi Folks,
    Do anyone here has an idea of what are the do's and dont's while importing an object into a server using cofiles or what kind of problems we will be facing.
    Here is a case.
    A developer has implmeneted an object (no development done from SE38 like...) by importing the cofiles into the development server.Now when I am trying to add some code it is not allowing me.What suprising is INSERT  REPLACE DELETE CANCEL buttons are showing up as in the case of a standard program.It is allowing me to insert the new code after I click on INSERT.Why is it so ?
    The imported objects are ZOBJECTS.
    Thanks,
    K.Kiran.

    Hi,
    Original System DEV
    Req 12345
    Program ZXYZ.
    Got the cofiles and the data files of the above request from the system.
    Imported these cofiles and data files into a differernt system whose Original System is EDC.But still the Original Sys(Go To>>Object Directory entry >> for this program alone is DEV and not EDC even after successful implmentation.
    After importing the objects the program is working fine.But sometimes when I am trying to make the changes to this program the extreme left side of the whole code is getting marked as XXX and not letting me change the code and showing me
    INSERT REPLACE DELETE CANCEL  buttons which is letting me change the code only when I press the corresponding button.
    Sometimes the Basis team has to manually move the request to Quality as the requests won't get moved when done through STMS.
    As per the above replies,I have to change the Original Sys from DEV to EDC ie current system but when I am trying to do that by OBJECT DIRECTORY ENTRY this field is in non editable.How to change this programs Origianl system as EDC.
    The only solution that is striking to me is to copy this program into a new program so that the Original System wil be EDC.
    Kindly Opine.
    Thanks,
    K.Kiran.

  • How to Implement Abap Object and Access Key for se24 developers.

    Hi every One,
    This is Abdul Rahman, Started Learning Abap Objects i want a simple program to be executed i.e. in Local class (Abap program)and as well in global class(class builder).
    Also i would like to know  When ,Were and Why Abap Object should be used.
    prob to Me :- When i wanted execute F8 a Class in se24 Class Builder it is asking me AcessKey , plz if this is required plz any one send Me.
    I have this key 36687663221261278694 it is already used in Abap editor , it is not accepting in se24 .
    plz help Me , waiting for response ..
    thankyou so much
    Abdul Rahman.

    Hello Abdul
    Here are my answers to your questions:
    (1) <b>Local classes</b>: <i>Do not use them.</i>
    - As long as your class is rather small (few attributes and methods), local classes  are ok yet as soon as they become larger you will loose the overview
    (2) <b>Global classes</b>: <i>Do use them.</i>
    - Make use of global classes even if they are only used for your training. The big advantage over local classes is that you will get used to the classe builder (SE24) which has a plethora of functions.
    (3) <b>Executing global classes</b>: <i>Can be done if you have defined an OO-transaction.</i>
    - An OO-transaction has a class and one of its public methods as parameters (similar like report transactions). When you all the OO-transaction an instance of you class is created and the public method is called.
    (4) <b>Where and Why use ABAP Objects?</b> <i>Everywhere. Anytime.</i>
    - ABAP objects is about stability, maintainability and re-usability of coding. These developer aims can be much more fulfilled using ABAP OO means than in classical programming.
    Regards
       Uwe
    PS: There are situations where local classes are quite appropriate and, using ABAP Unit testing, are obligatory.

  • Implementation callable object for background execution

    Hi experts,
    I am Using NWDS 7.0
    while i am trying to create background execution callable object , i didnt find the DC :caf/eu/gp/api.
    so i followed the pdf "How to Get NW04s SP7 Guided Procedure APIs for Local Development" and added the required DC's.
    The problem is that while i am selecting the  dc "caf/eu/gp/api"   the following message is displaying
    "illegal dependency: Acess list does not allow use of sap.com/caf/eu/gp/api for sap.com/bckg_co(MyComponents
    Is there any other way to add DC's ?
    pls help me out
    Thanks in advance
    kiran

    Hi Kiran,
    1. go to development Infrastructure --> select ur Software component --> in the component properties Tab > select dependencies Tab->click on Add Button.
    2. in the pop up window , select the Software component (Gp - Core) which has the  caf/eu/gp/api component and give the dependency details and click Finish.
    3. Ensure that Unrestricted acesss is granted for this component. this u can check, by selecting  caf/eu/gp/api  and select permissions tab in component properties.
    hope it helps,
    Thanks and Regards

  • Has anyone implemented JavaScript Object Notation in LabVIEW?

    Hi Guys,
    I was looking at writing an application using JSON-RPC
    http://en.wikipedia.org/wiki/JSON-RPC
    Has anyone implemented something similar, or are there any examples of this?
    I was going to write it with TCP VIs, and use string parsing to work through any responses, but if anyone had some advice, it would be appreciated.
    Cheers,
    Anthony

    Anthony,
    This sounds like a very interesting project and I would like to hear how it goes for you.
    You can of course choose to implement a JSON-RPC system using either TCP or HTTP as the transport. TCP would give you a potentially more responsive system but you would have to implement much more of the system from scratch as it were.
    As LaRisa_s was saying, if LabVIEW 8.6 is available to you, you can take advantage of the Web Services feature which will do a lot of the work for you. Your VI that runs as a web service would have to parse the data sent from the client to determine the correct VI to call and then convert the parameters and call the VI.
    You are completely correct that there is no direct support for JSON-RPC. We evaluated several Web Service and RPC mechanisms before deciding on RESTful web services for LabVIEW 8.6. In fact, if you have LV8.6 and JSON-RPC isn't a hard requirement, I would strongly recommend looking at using the RESTful mechanism that is built in. If you can use it then much less work will be required of you on the server side of your application.
    If you do need to go with JSON-RPC I would be interested to hear what factors went into the decision so we can improve LabVIEW's built in web services.
    Either way- let us know how your project goes.

  • Implementing lock object

    I've a TCode to modify a report. That TCode picks a doc no. from a table & opens up an editable ALV based on that doc. no .That doc. no. is the only primary key.
    I want that if someone is already opened that report, & if someoen else is trying to open that report, it shouldn't open & should show that -"its locked by User  XXX". I've made a lock object for that table. Please advise what to do next. How to populate the User name who has locked the report.

    used ENQUEUE function  and DEQUEUE function
    Function Modules for Lock Requests
    Activating a lock object in the ABAP Dictionary automatically creates function modules for setting (ENQUEUE_<lock object name>) and releasing (DEQUEUE_<lock object name>) locks.
    The generated function modules are automatically assigned to function groups. You should not change these function modules and their assignment to function groups since the function modules are generated again each time the lock object is activated.
    Never transport the function groups, which contain the automatically generated function modules. The generated function modules of a lock object could reside in a different function group in the target system. Always transport the lock objects. When a lock object is activated in the target system, the function modules are generated again and correctly assigned to function groups.
    Parameters of the Function Modules
    Field Names of the Lock Object
    The keys to be locked must be passed here.
    A further parameter X_<field> that defines the lock behavior when the initial value is passed exists for every lock field <field>. If the initial value is assigned to <field> and X_<field>, then a generic lock is initialized with respect to <field>. If <field> is assigned the initial value and X_<field> is defined as X, the lock is set with exactly the initial value of <field>.
    Parameters for Passing Locks to the Update Program
    A lock is generally removed at the end of the transaction or when the corresponding DEQUEUE function module is called. However, this is not the case if the transaction has called update routines. In this case, a parameter must check that the lock has been removed.
    Parameter _SCOPE controls how the lock or lock release is passed to the update program (see The Owner Concept for Locks). You have the following options:
    &#65399;        _SCOPE = 1: Locks or lock releases are not passed to the update program. The lock is removed when the transaction is ended.
    &#65399;        _SCOPE = 2: The lock or lock release is passed to the update program. The update program is responsible for removing the lock. The interactive program with which the lock was requested no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
    &#65399;        _SCOPE = 3: The lock or lock release is also passed to the update program. The lock must be removed in both the interactive program and in the update program. This is the standard setting for the DEQUEUE function module.
    Parameters for Lock Mode
    A parameter MODE_<TAB> exists for each base table TAB of the lock object. The lock mode for this base table can be set dynamically with this parameter. The values allowed for this parameter are S (read lock), E (write lock), X (extended write lock), and O (optimistic lock).
    The lock mode specified when the lock object for the table is created is the default value for this parameter. This default value can, however, be overridden as required when the function module is called.
    If a lock set with a lock mode is to be removed by calling the DEQUEUE function module, this call must have the same value for the parameter MODE_<TAB>.
    Controlling Lock Transmission
    Parameter _COLLECT controls whether the lock request or lock release should be performed directly or whether it should first be written to the local lock container. This parameter can have the following values:
    &#65399;        Initial Value: The lock request or lock release is sent directly to the lock server.
    &#65399;        X: The lock request or lock release is placed in the local lock container. The lock requests and lock releases collected in this lock container can then be sent to the lock server at a later time as a group by calling the function module FLUSH_ENQUEUE.
    Whenever you have lock mode X (extended write lock), locks should not be written to the local lock container if very many locks refer to the same lock table. In this case, there will be a considerable loss in performance in comparison with direct transmission of locks.
    Behavior for Lock Conflicts (ENQUEUE only)
    The ENQUEUE function module also has the parameter _WAIT. This parameter determines the lock behavior when there is a lock conflict.
    You have the following options:
    &#65399;        Initial Value: If a lock attempt fails because there is a competing lock, the exception FOREIGN_LOCK is triggered.
    &#65399;        X: If a lock attempt fails because there is a competing lock, the lock attempt is repeated after waiting for a certain time. The exception FOREIGN_LOCK is triggered only if a certain time limit has elapsed since the first lock attempt. The waiting time and the time limit are defined by profile parameters.
    Controlling Deletion of the Lock Entry (DEQUEUE only)
    The DEQUEUE function module also has the parameter _SYNCHRON.
    If X is passed, the DEQUEUE function waits until the entry has been removed from the lock table. Otherwise it is deleted asynchronously, that is, if the lock table of the system is read directly after the lock is removed, the entry in the lock table may still exist.
    Exceptions of the ENQUEUE Function Module
    &#65399;        FOREIGN_LOCK’: A competing lock already exists. You can find out the name of the user holding the lock by looking at system variable SY-MSGV1.
    &#65399;        SYSTEM_FAILURE: This exception is triggered when the lock server reports that a problem occurred while setting the lock. In this case, the lock could not be set.
    If the exceptions are not processed by the calling program itself, appropriate messages are issued for all exceptions.
    Reference Fields for RFC-Enabled Lock Objects
    The type of an RFC-enabled function module must be completely defined. The parameters of the generated function module therefore have the following reference fields for RFC-enabled lock objects:
    Parameters
    Reference fields
    X_<field name>
    DDENQ_LIKE-XPARFLAG
    _WAIT
    DDENQ_LIKE-WAITFLAG
    _SCOPE
    DDENQ_LIKE-SCOPE
    _SYNCHRON
    DDENQ_LIKE-SYNCHRON
    See also:
    Example for Lock Objects
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm

  • Implementing HttpURLConnection object

    HttpURLConnection httpURL = (HttpURLConnection)url.openConnection();
    InputStream linkStream = url.openStream();
    I am trying to fetch content from multiple urls, but the problem is if the url that i want to access is unavailable or it redirects, the code above hangs... so i am just wondering if there is any way to skip if the server doesn't respond.
    thanks...

    after opening the connection dont you check the response code or something?

  • How to implement a Session Object.

    Hi,
    If anybody show me any example of how to implement
    session object so that I can store any parameters such as user id and use it later on. And also if there is any good web site for reference about using session object.
    thanks

    You can use the the session.setAttribute and session.getAttribute methods.
    For example let's say you would want to store a username in the session after a user has logged on:
    String usrname = request.getParameter("username");
    session.setAttribute("myStoredUsername", usrname);
    you can then retrieve it using the get method. Remember that the entities stored inside a session object are generic objects and need to be cast to be used:
    String usrname2 = (String)session.getAttribute("username");
    Hope this helps
    Chelman

  • Value Object pattern implementation problem

    Hi All!
    I try to implement value object pattern in my bean as follows:
    /* Simplified code */
    public class Value implements Serializable {
    private String s;
    public setS(String value){
    s = value
    public getS(){return s}
    bean class:
    public class Bean extends Value implemets EntityBean {
    public Value getValue(){return this}
    Now question.
    When I try run this code I get next message
    org.omg.CORBA.MARSHAL: minor code: 0 completed: No
    org.omg.CORBA.portable.InputStream com.visigenic.vbroker.orb.GiopStubDelegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream, org.omg.CORBA.StringHolder, org.omg.CORBA.Context, org.omg.CORBA.ContextList)
    org.omg.CORBA.portable.InputStream com.visigenic.vbroker.orb.GiopStubDelegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream, org.omg.CORBA.StringHolder)
    org.omg.CORBA.portable.InputStream com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream, org.omg.CORBA.StringHolder)
    com.retailpro.cms.common.InventoryValue com.retailpro.cms.ejb._st_Inventory.getValue()
    void com.retailpro.cms.inventory.SetInventory._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void oracle.jsp.app.JspApplication.dispatchRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.JspServlet.doDispatch(oracle.jsp.app.JspRequestContext)
    void oracle.jsp.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void oracle.lite.web.JupServlet.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.MimeServletHandler.handle(oracle.lite.web.JupApplication, java.lang.String, int, oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.JupApplication.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.JupHandler.handle(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.HTTPServer.process(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    boolean oracle.lite.web.HTTPServer.handleRequest(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)
    boolean oracle.lite.web.JupServer.handle(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)
    void oracle.lite.web.SocketListener.process(java.net.Socket)
    void oracle.lite.web.SocketListener$ReqHandler.run()
    Seems like object can't be serialized.
    But when I change my getValue() to next
    public Value getValue(){
    Value result = new Value();
    result.setS(s);
    return result;
    Everything goes fine!
    Can anybody comments this situation?
    Any information will be appreciated!
    Mike
    null

    Have you tried using our Business Components for Java framework to assist in developing your EJB components. BC4J is a design pattern framework that implements the J2EE Blueprints design patterns out of the box:
    [list][*]Session-Entity Fagade
    [*]Paged-List
    [*]Unified Data Access & Logic
    [*]Value Object
    [*]Model View Controller
    [list]
    and more...
    So many things you don't have to code yourself when you use BC4J to turbocharge your development... Also, using BC4J insulates you from having to choose once and for all at the beginning of your project that you ARE USING EJB AT ALL COSTS on your project.
    Many projects discover that they don't require a distributed objects configuration, but end up paying for it in architectural complexity and EJB's assumption that all beans might be located on remote VM's.
    With BC4J, you can build an app, deploy to EJB if you need EJB for a given project, or deploy to CORBA, or just to simple Java classes for improved performance without the remoting overheads. All without touching your application code.
    Pretty cool, I think. But of course, I'm biased :-)
    Steve Muench
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications

  • Business Objects Implementation

    Hi Gurus,
    We are looking at implementing Business Objects for the purpose of using Dashboards at our company. Please help with the process of implementation.
    Regards,
    Kennedy.

    Hello
    Its depends what kind of source system are, and which tools you want to create the dashboards.
    Regards

  • Serializing object of class implementing Singleton Pattern

    hi ,
    if i've a object of a singleton pattern based class and i seriailize that and when i'm desrializing that, i 'll get the object back, but on calling getInstance() method for my singleton class, it will agian call constructor because for the class's static object reference is null, i need to avoid this, for this i've written a setInstance method, which sets the Singleton class's static refernce to the object i desialized, which is fine, but it defeats the singleton pattern
    can anybody suggest me some other way of achieving this...

    If you are trying to deserialize a Singleton implement the Object readResolve() method.
    http://java.sun.com/javase/6/docs/platform/serialization/spec/input.html#5903
    ~Ryan

  • Implementing a view Object with Multiple Updateable Dependent Entity Objects

    Hello,
         I want to implement view object with multiple updateable entity object,
         i have refered this link its good https://forums.oracle.com/thread/63721
         here they have explained with 2 table,
         but when we have more then 5 tables and each table have Primary keys , Foreign key , Sequence and  trigger created on it. Then whats steps should i want to fallow.
         if possible some please provide the link or some one help me out how to do this .
         thanks in advance
         cheers

    Has the Advanced View Object Techniques been referred?

  • Implementation Objects SAP MDM

    Hi evebory!
    Somebory already implemented objects (repository) Center of Cost, Locality, Plants, Organizacional Structure and Banks in SAP MDM 5.5 ?
    Somebory has documentation or details this implementation or Objects?
    Thanks for Help!

    Hi Pedro,
    SAP has provided with some standard business content for customer, vendor, material, article, product, employee and business partner objects.
    For these objects they have defined different field objects or tables that constitutue various organizational structure, bank details, plants, location etc. imformation.
    These business content are in .a2a file format.You need to unzip the archieve file and place it in the MDM archieve folder .then you can unarchive it from the MDM console and use this predesigned MDM repository.
    Refer to the below notes for more detail.
    MDM 5.5 - Business Content: Business Partner (SAP Note 1035773)
    MDM 5.5 - Business Content: Product (SAP Note 1252846)
    MDM 5.5 - Business Content: Customer (SAP Note 1252884)
    MDM 5.5 - Business Content: Employee (SAP Note 1268212)
    MDM 5.5 - Business Content: Material (SAP Note 1255401)
    MDM 5.5 - Business Content: Vendor (SAP Note 1252883)
    For the documentation visit
    Refer https://websmp102.sap-ag.de/~sapidb/011000358700001855352008E.
    Hope it helps.
    Thanks,
    Minaz

Maybe you are looking for

  • Need to Restore MBR

    I was trying to install a modified version of XP using Boot Camp. After partitioning the drive, I couldn't get it to install. In an act of desperation, I followed some ill-advised "support" on another forum, and ended up manually deleting the Boot Ca

  • How to connect oracle8.0.3

    how to connect the oracle database by using oracle thin driver

  • GL2, iMovie 11 and Firewire 800

    Question: Does iMovie allow you to import using a 4-pin Canon port to Firewire 800 using a Firewire 400 to 800 adapter? I have a Canon GL2 and a new iMac that only has a Firewire 800 port. My older Mac Book Pro that has a Firewire 400 port and I have

  • Problem with HR_ECM_INSERT_INFOTYPE function module

    Hi all I tried using HR_ECM_INSERT_INFOTYPE for inserting records in IT0008. I have filled my structure with all values completely. But when I pass it to this fm , casting to hexadecimal  happens inside and the amounts get distorted. All my wagetype

  • Apache with JServ or Tomcat?

    What�s your preferences in relation with JSP web server: Apache with JServ module (or another want you considerer better) or Jakarta-tomcat? I have used both, but I don�t know exactly which one I should use in my new job. Thank you everybody and good