Multiple Obj models in 1 environment

I'm looking for a streamlined code sample that shows multiple objects displayed in the same space.
I'm in over my head, learn best by examining the source of other examples, and currently only finding code that loads a single obj file. When I try to expand onto this example to include other obj's I end up displaying nothing.

my problem was using cloneNode() instead of cloneTree().

Similar Messages

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Best way to know correct forecast model - process chain set up with multiple forecast models

    Hi Experts,
    I need your help in selecting best forecast model for our company. We have some of the models already used for our company, and because of multiple models used it is taking very long time for process chain to finish. There is no existing documentation available on which model was used why initially. Please help me to make out forecasting process smooth.
    - What is the best way to know, which forecast model is correct and should be used for our forecasting process.
    - In case multiple forecasting models are really required to be used, please suggest ways to optimally schedule them in process chain.
    - At times we get messages like "not enough data available" for specific model - any way to avoid this.
    - How to optimally use parallel processing profiles forecasting process in process chain.
    - Things which should be avoided.
    Request your help, please share your experiences.
    Regards
    NB

    Hi Neelesh,
    There are many points you need to consider to redesign forecast process for your company/client.
    You need to select the best suited forecast model first depending on the business. This has to be well tested & agreed by business users. Complexity will be an outcome of this exercise with business users. Best id to give then a brief intro on all available models & then help them selection the best one as per their requirement.
    Auto selection models are generally more time taking & should be used only when you have no idea at all on the business/demand pattern.
    Run time will depend how you are clubbing the CVCs to get the forecast generated & also parallel processing. For parallel processing profile you will need to do trial & error testing along with help from Basis team on how many free dial up processes are available.
    Even you can run many forecast calculations in parallel if the product/cvcs are totally different. - As per my personal experience maximum run time reduction can be achieved here.
    Daily run is not advisable except only for businesses where you have too much dynamism in demand planning i.e. you expect the demands to be changed overnight. Most of the companies run forecast on monthly basis or at weekly basis at the max.
    "Not Enough data" will be a problem if you are having the irrelevant models used in forecast profiles. This means users are not bothered to maintain the needed data for he forecast calculations or they are not aware at all of the situation. Running such models on daily basis is not advised at all. Better users should use interactive forecasting & saving the results in such cases.
    Just to give a crude example we get forecast calculated on monthly basis for approximately 4 lac cvcs in less than 3 hrs using moving avg, seasonal linear regression, seasonal trend, croston models. We use parallel profiles also everywhere with 10 blocks & 500 cvc/block.
    Hope this helps. Let me know if you have nay more questions & also the results using any of this.
    Regards,
    Rahul

  • Can't set Shade GOURAUD on imported Obj models

    Hi,
    I'm importing an obj model, but I can't get the shading model to be Gouraud. It's always flat.
    Here is a short code snippet where I try to make the model use Gouraud shading:
    ObjectFile objectFile = new ObjectFile();
    Scene scene = null;
    try {
    scene = objectFile.load(filepath);
    (...) // catch block
    Hashtable allReferences = scene.getNamedObjects();
    Enumeration enumeration = allReferences.keys();
    while (enumeration.hasMoreElements()) {
    String key = (String) enumeration.nextElement();
    Appearance appearance = new Appearance();
    ColoringAttributes coloringAttributes = new ColoringAttributes();
    coloringAttributes.setShadeModel(ColoringAttributes.SHADE_GOURAUD);
    appearance.setColoringAttributes(coloringAttributes);
    Material material = new Material();
    material.setDiffuseColor(1f, 1f, 1f);
    appearance.setMaterial(material);
    if (allReferences.get(key) instanceof Shape3D) {
    Shape3D ref = (Shape3D) allReferences.get(key);
    ref.setCapability(Shape3D.ALLOW_APPEARANCE_OVERRIDE_WRITE);
    ref.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    ref.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    ref.setCapability(Shape3D.ALLOW_APPEARANCE_OVERRIDE_READ);
    ref.setAppearance(appearance);
    Thanks in advance

    I think this is the culprit:
    3) check the key of the imported file with a software instrument, and switch the project's key accordingly
    If the "follow tempo & pitch" box is checked, this might change the sample's pitch and throw GB off.
    Try to determine the sample's key before you import it, set the GB project's key accordingly, and then import the sample. That should assign it the correct key!

  • Trouble loading .OBJ model

    Hello all,
    I can't seem to load a .OBJ model with this code. The code is not returning any exceptions, but the window gives me nothing but a black screen. The model is nothing more than a cube, and I am entering a valid file location.
    public class Model3d
        private String location;
        private SceneBase s;
        public Model3d(String fileLocation)
            location = fileLocation;
            s = (SceneBase)getScene();
        public SceneBase getSceneBase()
              TransformGroup tg = new TransformGroup();
              Transform3D transform = new Transform3D();
              Vector3f vector = new Vector3f(0, 0, 0);
              transform.setTranslation(vector);
              tg.setTransform(transform);
              s.addViewGroup(tg);
              return s;
        private Scene getScene()
            try
                ObjectFile of = new ObjectFile(ObjectFile.RESIZE);
                Scene s = of.load(new FileReader(location));
                return s;
            catch(java.io.FileNotFoundException e)
                System.out.println("lol");
                e.printStackTrace();
                return null;
    }When I call:
    su = new SimpleUniverse();
    BranchGroup group = new BranchGroup();
    group.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
    group.addChild(new Model3d("C:\\square.obj").getSceneBase().getSceneGroup());
    su.getViewingPlatform().setNominalViewingTransform();
    su.addBranchGraph(group);I get a black screen. Help? Thanks in advance.

    Hi,
    Sorry for the delay
    I found this at Java Tips and changed it to work on my computer. Just change dlamp.obj (appears once) to square.obj. I think it'll work if you place the file in the same folder as your java file as well as the C:// drive.
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.GraphicsConfiguration;
    import java.io.FileNotFoundException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.media.j3d.Alpha;
    import javax.media.j3d.AmbientLight;
    import javax.media.j3d.Background;
    import javax.media.j3d.BoundingSphere;
    import javax.media.j3d.BranchGroup;
    import javax.media.j3d.Canvas3D;
    import javax.media.j3d.DirectionalLight;
    import javax.media.j3d.RotationInterpolator;
    import javax.media.j3d.Transform3D;
    import javax.media.j3d.TransformGroup;
    import javax.vecmath.Color3f;
    import javax.vecmath.Point3d;
    import javax.vecmath.Vector3f;
    import com.sun.j3d.loaders.IncorrectFormatException;
    import com.sun.j3d.loaders.ParsingErrorException;
    import com.sun.j3d.loaders.Scene;
    import com.sun.j3d.loaders.objectfile.ObjectFile;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.behaviors.vp.OrbitBehavior;
    import com.sun.j3d.utils.universe.PlatformGeometry;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import com.sun.j3d.utils.universe.ViewingPlatform;
    public class ObjLoad extends Applet {
    private boolean spin = false;
    private boolean noTriangulate = false;
    private boolean noStripify = false;
    private double creaseAngle = 60.0;
    private URL filename = null;
    private SimpleUniverse u;
    private BoundingSphere bounds;
    public BranchGroup createSceneGraph() {
    // Create the root of the branch graph
    BranchGroup objRoot = new BranchGroup();
    // Create a Transformgroup to scale all objects so they
    // appear in the scene.
    TransformGroup objScale = new TransformGroup();
    Transform3D t3d = new Transform3D();
    t3d.setScale(0.7);
    objScale.setTransform(t3d);
    objRoot.addChild(objScale);
    // Create the transform group node and initialize it to the
    // identity. Enable the TRANSFORM_WRITE capability so that
    // our behavior code can modify it at runtime. Add it to the
    // root of the subgraph.
    TransformGroup objTrans = new TransformGroup();
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    objScale.addChild(objTrans);
    int flags = ObjectFile.RESIZE;
    if (!noTriangulate)
    flags |= ObjectFile.TRIANGULATE;
    if (!noStripify)
    flags |= ObjectFile.STRIPIFY;
    ObjectFile f = new ObjectFile(flags,
    (float) (creaseAngle * Math.PI / 180.0));
    Scene s = null;
    try {
    s = f.load(filename);
    } catch (FileNotFoundException e) {
    System.err.println(e);
    System.exit(1);
    } catch (ParsingErrorException e) {
    System.err.println(e);
    System.exit(1);
    } catch (IncorrectFormatException e) {
    System.err.println(e);
    System.exit(1);
    objTrans.addChild(s.getSceneGroup());
    bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
    if (spin) {
    Transform3D yAxis = new Transform3D();
    Alpha rotationAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE, 0, 0,
    4000, 0, 0, 0, 0, 0);
    RotationInterpolator rotator = new RotationInterpolator(
    rotationAlpha, objTrans, yAxis, 0.0f,
    (float) Math.PI * 2.0f);
    rotator.setSchedulingBounds(bounds);
    objTrans.addChild(rotator);
    // Set up the background
    Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);
    Background bgNode = new Background(bgColor);
    bgNode.setApplicationBounds(bounds);
    objRoot.addChild(bgNode);
    return objRoot;
    private void usage() {
    System.out
    .println("Usage: java ObjLoad [-s] [-n] [-t] [-c degrees] <.obj file>");
    System.out.println(" -s Spin (no user interaction)");
    System.out.println(" -n No triangulation");
    System.out.println(" -t No stripification");
    System.out
    .println(" -c Set crease angle for normal generation (default is 60 without");
    System.out
    .println(" smoothing group info, otherwise 180 within smoothing groups)");
    System.exit(0);
    } // End of usage
    public void init() {
    if (filename == null) {
    // Applet
    try {
                   filename = new URL("file","","dlamp.obj");
    } catch (MalformedURLException e) {
    System.err.println(e);
    System.exit(1);
    setLayout(new BorderLayout());
    GraphicsConfiguration config = SimpleUniverse
    .getPreferredConfiguration();
    Canvas3D c = new Canvas3D(config);
    add("Center", c);
    // Create a simple scene and attach it to the virtual universe
    BranchGroup scene = createSceneGraph();
    u = new SimpleUniverse(c);
    // add mouse behaviors to the ViewingPlatform
    ViewingPlatform viewingPlatform = u.getViewingPlatform();
    PlatformGeometry pg = new PlatformGeometry();
    // Set up the ambient light
    Color3f ambientColor = new Color3f(0.1f, 0.1f, 0.1f);
    AmbientLight ambientLightNode = new AmbientLight(ambientColor);
    ambientLightNode.setInfluencingBounds(bounds);
    pg.addChild(ambientLightNode);
    // Set up the directional lights
    Color3f light1Color = new Color3f(1.0f, 1.0f, 0.9f);
    Vector3f light1Direction = new Vector3f(1.0f, 1.0f, 1.0f);
    Color3f light2Color = new Color3f(1.0f, 1.0f, 1.0f);
    Vector3f light2Direction = new Vector3f(-1.0f, -1.0f, -1.0f);
    DirectionalLight light1 = new DirectionalLight(light1Color,
    light1Direction);
    light1.setInfluencingBounds(bounds);
    pg.addChild(light1);
    DirectionalLight light2 = new DirectionalLight(light2Color,
    light2Direction);
    light2.setInfluencingBounds(bounds);
    pg.addChild(light2);
    viewingPlatform.setPlatformGeometry(pg);
    // This will move the ViewPlatform back a bit so the
    // objects in the scene can be viewed.
    viewingPlatform.setNominalViewingTransform();
    if (!spin) {
    OrbitBehavior orbit = new OrbitBehavior(c,
    OrbitBehavior.REVERSE_ALL);
    BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0,
    0.0), 100.0);
    orbit.setSchedulingBounds(bounds);
    viewingPlatform.setViewPlatformBehavior(orbit);
    u.addBranchGraph(scene);
    // Caled if running as a program
    public ObjLoad(String[] args) {
    if (args.length != 0) {
    for (int i = 0; i < args.length; i++) {
    if (args.startsWith("-")) {
    if (args[i].equals("-s")) {
    spin = true;
    } else if (args[i].equals("-n")) {
    noTriangulate = true;
    } else if (args[i].equals("-t")) {
    noStripify = true;
    } else if (args[i].equals("-c")) {
    if (i < args.length - 1) {
    creaseAngle = (new Double(args[++i])).doubleValue();
    } else
    usage();
    } else {
    usage();
    } else {
    try {
    if ((args[i].indexOf("file:") == 0)
    || (args[i].indexOf("http") == 0)) {
    filename = new URL(args[i]);
    } else if (args[i].charAt(0) != '/') {
    filename = new URL("file:./" + args[i]);
    } else {
    filename = new URL("file:" + args[i]);
    } catch (MalformedURLException e) {
    System.err.println(e);
    System.exit(1);
    // Running as an applet
    public ObjLoad() {
    public void destroy() {
    u.cleanup();
    // The following allows ObjLoad to be run as an application
    // as well as an applet
    public static void main(String[] args) {
    new MainFrame(new ObjLoad(args), 700, 700);

  • Single EAR multiple WAR model - faces-config not loading

    Hi
    I am deploying my application on weblogic 10.3 My application is in form of a Single-EAR-Multiple-WAR model. The application starts up correctly but when i bavigate from one module (WAR) to another (WAR), it doesnt initializes the managed beans. It is not able to load the faces-config from the second WAR.
    can anyone please let me know ehat am i missing?
    Thanks a lot
    -Ankur

    Hi,
    This is not an issue caused by having multiple wars inside same ear.
    This looks like a runtime exception when trying to render the jsp (The jsp is compiled to a sevlet and the inside the service method of the servlet you are getting this exception). Double check you jsp for the possible cause of this exception.
    Thanks,
    Gopinath Ramasamy

  • How to connect to the  multiple system in the same environment

    Hi Everyone ,
    We are integrating SAP EP and BOE . We are facing SSO problem ,as there are 2 system in same environment .
    Suppose we have XX1 and XX2 as BW backend system . IF Default entry on server is kept blank then we get :
    "u2022  Account information not recognized: No SAP system was passed as part of the user name and there was no default system defined. User credential validation cannot continue. " error.
    Whereas if we give XX1 as defaut system on server , then SSO is not happening we as are XX2 users .
    Anyone has any idea on how to connect to multiple backend system in the same environment .
    Edited by: shivani  mishra on May 20, 2010 11:22 AM

    Hi,
    As you can see in the help link below:
    http://help.sap.com/saphelp_nw70/helpdata/en/45/2f873d1ca96d7be10000000a114a6b/content.htm
    There is a trust system and the trusted systems. One system can trust in many other systems. You have just to configure it exporting and importing the certificates as explained in the link.

  • Licensing of apps for multiple iPads in an enterprise environment

    I have 21 iPads in an enterprise environment, syncing to one iPad.  Am I violating licensing terms.? These are 21 iPads used by 21 board members on each Friday.  Do I need to purchase this app 21 times?  If so how?

    Yes, you may be. The applicable terms of sale are these:
    (ii) If you are a commercial enterprise or educational institution, you may download and sync an App Store Product for use by either (a) a single individual on one or more iOS Devices you own or control or (b) multiple individuals, on a single shared iOS Device you own or control. For example, a single employee may use the Product on both the employee's iPhone and iPad, or multiple students may serially use the Product on a single iPad located at a resource center or library.
    If these iPads are under your own control and you just loan them out for the board meetings, then that might fall under clause (a), though I'm no lawyer and I don't speak for Apple.
    If these iPads are kept by the board members for their use, then your company needs to purchase the app twenty-one times, and the only way at present to do that is through twenty-one different iTunes Store accounts. So each board member should probably buy through his or her own iTunes Store account, and get reimbursed by the company if appropriate. I know this is awkward; perhaps Apple will come up with a better mechanism in the future.
    Regards.
    Message was edited by: Dave Sawyer

  • Multiple relationship modeling

    Hello,
    I am hitting a bug/issues/misunderstanding on my side with data modeller 4.0.0.833 (I had this issue in the previous versions too).
    I was trying to model multiple relationships from a entity to a detail entity and am hitting some problems. I have the following situation (simplified) :
    Party Entity : Party ID (PID), Party Name
    Transaction Entity : Trans ID (PID), cost (number)
    I then create 2 1-to-many relationship from party to transaction:
    Party -> Transaction (1 to many)
    Party -> Transaction (1 to many)
    This creates 2 FKs on the transaction entity called (Party ID and Party ID1). I rename this attributes in the transaction entity as "From Party" and "To Party"
    I then do a engineer to relational model.
    This then ignores the attribute names in the transaction entity I had given ("From party" and "to party") and creates 2 new columns - "Party_Party_ID" and "Party_Party_ID1".
    Is there a way I can preserve the names I had given in the logical model for the FKs when engineered to Physical? Or is this a bug?
    Secondly, Is it possible in the Relation properties dialog box (by double clicking the relationship lines in the logical model) in the target cardinality section to select the FKs I had created ("From Party" and "to Party") so that I could document correctly which is the "from" and which is the "to".
    Thanks in advance.
    AK

    Hi AK,
    you have 2 options:
    1) clear "Apply name translation" check box in engineering dialog
    2) use proper setting for naming template and names in your model (as Dimitar suggested) - naming templates are available in design properties dialog>"Settings>Naming standards">templates"
    2.1 change naming template for "Column Foreign key" to {relationship}
    2.2 Rename your relationships as "From Party" and "To Party"
    3.1 Check "Apply name translation" check box in engineering dialog
    Philip

  • Issues with multiple Files with multiple subdbs on a single environment.

    I'm having an issue with Berkeley DB 4.2 on 32-bit platforms, regarding multiple physical files with multiple subdatabases in a single database environment. Specifically, when I open a subdatabase for a physical file, Berkeley DB thinks that it is using the same subdatabase in a different physical file.
    I'm doing the following:
    1. Create and open a db enviornment.
    2. Move file1 to the common area.
    3. Open, get and close the subdatabases in file1.
    4. Move file2 to the common area.
    5. Open, get and close the subdatabases in file2.
    6. remove file2 from the common area
    7. Move file3 to the common area.
    8. Open a subdatabase from file3. About 1/2 the time, the fetches
    return data from file2, not from file3.
    It's possible that at some earlier time (i.e. before step 1 of this
    test case), file1, file2 and file3 were the same file. I noticed
    that there is something called env->fileid_reset, but that is not
    in 4.2.52.
    Any ideas?

    Looks like I've resolved the issue

  • Multiple Workspace configuration in single environment

    Hello Gurus,
    Just a small doubt here.
    Can we have multiple workspace configured within a single environment.? If Yes, how ?
    Thanks and Regards,
    Saurabh

    Hello Gurus,
    Still looking for the answer for the same.
    Thanks
    Saurabh

  • Creating Multiple Logical Models?

    My boss wants me to model how all his APEX webbased applications interact, how they share data, by using Oracle's DataModeler software in SQL Developer environment.
    So, I did a data import of the similarly named tables for each application, and each one is now its own RELATIONAL MODEL. These are just displaying as yellow entities (tables) with their corresponding column and datatypes inside.
    I know to rightclick on the model in the browser to select ENGINEER TO LOGICAL MODEL, but I need to display a logical model for EACH applications related tables, but when I 'engineer to logical model' for each of the apps they all just keep adding a SINGLE logical model, when I want them to have their OWN logical model.
    tl;dr: How do I create simplified logical models for seperate apps

    A logical data model will help you (and other stakeholders) understand the business and data requirements (in other words, the information needs) from a business perspective, irrespective of DBMS technology. An LDM is an analysis artefact. This is great to validate your understanding and confirm with business analysts and business reps, as well as complementing with other analysis artefacts like process models. Also very helpful to see how different systems interact, and where there is commonality and/or redundancy.
    A physical data model (i.e., relational), a.k.a., database design, defines and illustrates the structure of the data as they will be implemented in a database. A PDM is a design artefact, derived or transformed from the logical data model. Developers and DBAs will be your main audience.
    Patrick

  • Accessing the same stateful session bean from multiple clients in a clustered environment

    I am trying to access the same stateful session bean from multiple
              clients. I also want this bean to have failover support so we want to
              deploy it in a cluster. The following description is how we have tried
              to solve this problem, but it does not seem to be working. Any
              insight would be greatly appreciated!
              I have set up a cluster of three servers. I deployed a stateful
              session bean with in memory replication across the cluster. A client
              obtains a reference to an instance of one of these beans to handle a
              request. Subsequent requests will have to use the same bean and could
              come from various clients. So after using the bean the first client
              stores the handle to the bean (actually the replica aware stub) to be
              used by other clients to be able to obtain the bean. When another
              client retrieves the handle gets the replica aware stub and makes a
              call to the bean the request seems to unpredictably go to any of the
              three servers rather than the primary server hosting that bean. If the
              call goes to the primary server everything seems to work fine the
              session data is available and it gets backed up on the secondary
              server. If it happens to go to the secondary server a bean that has
              the correct session data services the request but gives the error
              <Failed to update the secondary copy of a stateful session bean from
              home:ejb20-statefulSession-TraderHome>. Then any subsequent requests
              to the primary server will not reflect changes made on the secondary
              and vice versa. If the request happens to go to the third server that
              is not hosting an instance of that bean then the client receives an
              error that the bean was not available. From my understanding I thought
              the replica aware stub would know which server is the primary host for
              that bean and send the request there.
              Thanks in advance,
              Justin
              

              If 'allow-concurrent-call' does exactly what you need, then you don't have a problem,
              do you?
              Except of course if you switch ejb containers. Oh well.
              Mike
              "FBenvadi" <[email protected]> wrote:
              >I've got the same problem.
              >I understand from you that concurrent access to a stateful session bean
              >is
              >not allowed but there is a
              >token is weblogic-ejb-jar.xml that is called 'allow-concurrent-call'
              >that
              >does exactly what I need.
              >What you mean 'you'll get a surprise when you go to production' ?
              >I need to understand becouse I can still change the design.
              >Thanks Francesco
              >[email protected]
              >
              >"Mike Reiche" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Get the fix immediately from BEA and test it. It would be a shame to
              >wait
              >until
              >> December only to get a fix - that doesn't work.
              >>
              >> As for stateful session bean use - just remember that concurrent access
              >to
              >a stateful
              >> session bean is not allowed. Things will work fine until you go to
              >production
              >> and encounter some real load - then you will get a surprise.
              >>
              >> Mike
              >>
              >> [email protected] (Justin Meyer) wrote:
              >> >I just heard back from WebLogic Tech Support and they have confirmed
              >> >that this is a bug. Here is their reply:
              >> >
              >> >There is some problem in failover of stateful session beans when its
              >> >run from a java client.However, it is fixed now.
              >> >
              >> >The fix will be in SP2 which will be out by december.
              >> >
              >> >
              >> >Mike,
              >> >Thanks for your reply. I do infact believe we are correctly using
              >a
              >> >stateful session bean however it may have been misleading from my
              >> >description of the problem. We are not accessing the bean
              >> >concurrently from 2 different clients. The second client will only
              >> >come into play if the first client fails. In this case we want to
              >be
              >> >able to reacquire the handle to our stateful session bean and call
              >it
              >> >from the secondary client.
              >> >
              >> >
              >> >Justin
              >> >
              >> >"Mike Reiche" <[email protected]> wrote in message
              >news:<[email protected]>...
              >> >> You should be using an entity bean, not a stateful session bean
              >for
              >> >this application.
              >> >>
              >> >> A stateful session bean is intended to be keep state (stateful)
              >for
              >> >the duration
              >> >> of a client's session (session).
              >> >>
              >> >> It is not meant to be shared by different clients - in fact, if
              >you
              >> >attempt to
              >> >> access the same stateful session bean concurrently - it will throw
              >> >an exception.
              >> >>
              >> >> We did your little trick (storing/retrieving handle) with a stateful
              >> >session bean
              >> >> on WLS 5.1 - and it did work properly - not as you describe. Our
              >sfsb's
              >> >were not
              >> >> replicated as yours are.
              >> >>
              >> >> Mike
              >> >>
              >> >> [email protected] (Justin Meyer) wrote:
              >> >> >I am trying to access the same stateful session bean from multiple
              >> >> >clients. I also want this bean to have failover support so we want
              >> >to
              >> >> >deploy it in a cluster. The following description is how we have
              >tried
              >> >> >to solve this problem, but it does not seem to be working. Any
              >> >> >insight would be greatly appreciated!
              >> >> >
              >> >> >I have set up a cluster of three servers. I deployed a stateful
              >> >> >session bean with in memory replication across the cluster. A client
              >> >> >obtains a reference to an instance of one of these beans to handle
              >> >a
              >> >> >request. Subsequent requests will have to use the same bean and
              >could
              >> >> >come from various clients. So after using the bean the first client
              >> >> >stores the handle to the bean (actually the replica aware stub)
              >to
              >> >be
              >> >> >used by other clients to be able to obtain the bean. When another
              >> >> >client retrieves the handle gets the replica aware stub and makes
              >> >a
              >> >> >call to the bean the request seems to unpredictably go to any of
              >the
              >> >> >three servers rather than the primary server hosting that bean.
              >If
              >> >the
              >> >> >call goes to the primary server everything seems to work fine the
              >> >> >session data is available and it gets backed up on the secondary
              >> >> >server. If it happens to go to the secondary server a bean that
              >has
              >> >> >the correct session data services the request but gives the error
              >> >> ><Failed to update the secondary copy of a stateful session bean
              >from
              >> >> >home:ejb20-statefulSession-TraderHome>. Then any subsequent requests
              >> >> >to the primary server will not reflect changes made on the secondary
              >> >> >and vice versa. If the request happens to go to the third server
              >that
              >> >> >is not hosting an instance of that bean then the client receives
              >an
              >> >> >error that the bean was not available. From my understanding I
              >thought
              >> >> >the replica aware stub would know which server is the primary host
              >> >for
              >> >> >that bean and send the request there.
              >> >> >
              >> >> >Thanks in advance,
              >> >> >Justin
              >>
              >
              >
              

  • Can I use the same recovery discs to restore Windows on multiple same model laptops?

    Sir me & my brother have HP dv6 pavilion 3210us same model with preinstalled win7 Home Premium unfortunately my brothers laptop HDD change in to dynamic we can't boot to original system restore.But i have recovery media dvd seperate for my laptop can i use it for my brothers laptop to recover please help me to find out the solution

    Since the laptops are the same model-yes, you can use your Recovery Discs on both.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How to use multiple Simulink Models on on Target and One Host VI?

    My ultimate goal is to run two Simulink models simultaneously from one Real Time Target PC from one LabVIEW VI. As I understand it, this is possible but I have not found a solution or example on how to do this. For debugging and demonstration purposes, I would also like to run the same setup on my windows machine. We have had SIT (and VeriStand) working with one Simulink Model for some time now.  I have tried using the SIT connection manager and coping the code, but I have not had success doing this. We are using LV 2009 and Matlab 2009. Any thoughts or inputs would be appreciated. Thanks for your help.

    Just dawned on me to try and open two instances of Matlab, then set the SIT server on the second instance of matlab to a different port. This worked as I got two different simulink models to run. The question is, is there a better more efficent way of doing this? Any thoughts would be welcome.

Maybe you are looking for