Swing ADF - New transaction in a java panel.

How can I create a new ADF Transaction (session/unit of work/ independant dataset) within a panel?
I have two issues that I'm trying to resolve:
1) I already have a framework that I need to use, so I cannot use the defaultly created ADF JFrames or InternalFrames. I need all the plumbing (both single window/panel and multi-window/panel views) to exist in panels so they can be properly embedded into the existing framework. I'm not sure how to seperate the frame from the ADF logic or how to start from an empty class and add the needed plumbing.
2) I need a new panel to be created under a tabset when the user initiates an action. This by itself is simple enough, the issue is in dynamically creating a new transaction per tab that is created so that each tab can be committed/rollbacked independently. The user may hop around between tabs and open/close them in random orders.
Thank you of any help and insight you can offer,
SMartel

bump.

Similar Messages

  • Swing adf set db credential from java

    Hi!
    I wrote a program on Swing adf using standart JDeveloper jdbc connection.
    Now I whant install my programm to client. But jdbc url with credential store in standart adf xml configuration files.
    I whant that than user start programm first them input connection attributes ( host,sid,user,password), and then programm initilize all View and Control.
    I I was searching answer in google,forums.oracle.com, jdeveloper books and not found answer.
    But problem often is repeated, I think answer must be included into JDeveloper help book.
    My main method with init context
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception exemp) {
    exemp.printStackTrace();
    try {
    JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
    JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
    mgr.setJClientDefFactory(null);
    BindingContext ctx = new BindingContext();
    HashMap map = new HashMap(4);
    mgr.loadCpx("view.DataBindings.cpx", map);
    final FormMain frame = new FormMain();
    frame.setBindingContext(ctx);
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width) {
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    } catch (Exception ex) {
    JUMetaObjectManager.reportException(null, ex, true);
    System.exit(1);
    }

    May be anybody know how to create configuration on java for swinf ADF, without xml files?

  • [Swing ADF] add a new row based on existing one

    Hi all,
    I start with ADF and here is my problem:
    In a swing ADF application, I'd like to allow user to create new records based on a record already present in the DB. The user selects a record in the data table and then push a button that fill in some JTextField. He can then change whatever he wants. These JTextField are in fact arguments of a method of my Application Module. Then, when a button "add", that is created by drag and drop the method, is pushed, the method of the AM is called.
    The problem is: argument are null. This occure when I fill in the gap (JTextField) programmatically (by getting the currentRow of the iterator of the table). But if the user fill in the gap himself, then arguments are not null.
    Is there someone to help me?
    Thanks a lot!
    Regards

    Hi,
    I created the method, dragged the arguments as textFields and added the method call as a button.
    I then dragged and dropped teh Departments ViewObject as a table and created a button with the following action code
    private void jButton2_actionPerformed(ActionEvent e) {
    DCIteratorBinding dciter = (DCIteratorBinding) panelBinding.get("DepartmentsView1Iterator");
    Number deptId = (Number) dciter.getCurrentRow().getAttribute("DepartmentId");
    String dname = (String) dciter.getCurrentRow().getAttribute("DepartmentName");
    Number locId = (Number) dciter.getCurrentRow().getAttribute("LocationId");
    ((JUTextFieldBinding) panelBinding.get("deptId")).setInputValue(deptId);
    ((JUTextFieldBinding) panelBinding.get("dname")).setInputValue(dname);
    ((JUTextFieldBinding) panelBinding.get("locationId")).setInputValue(locId);
    panelBinding.refresh();
    Pressing the button copies the values to the input arguments and pressing the method button sends the values to the method
    Frank

  • Getting  java.lang.IllegalStateException  while starting new transaction.

    Hi All,
    I am writing a simple web application(using netbeans visual jsf) but not able to proceed forward. I am encountering this "java.lang.IllegalStateException: Operation not allowed" when I try to start a new transaction.
    Here's my code for session bean:
        @Resource(name= "UserTransactionResource", mappedName="UserTransactionMapped")
        private UserTransaction utx;
        @PersistenceUnit(unitName = "myproj-ejbPU")
        private EntityManagerFactory emf;
        private EntityManager getEntityManager() {
            return emf.createEntityManager();
        public void save(UserProfile userprofile) throws Exception { 
            EntityManager em = getEntityManager();
            try {       
                utx.begin();
                em.joinTransaction();
                em.persist(userprofile);
                utx.commit();
            catch (Exception ex) {
                try {
                    System.out.println(ex.toString());              ---------------> prints  java.lang.IllegalStateException: Operation not allowed
                    utx.rollback();
                    throw new Exception(ex.getLocalizedMessage());
                catch (Exception e) {
                    throw new Exception(e.getLocalizedMessage());
            finally {           
                    em.close();
        }This is what is seen in glassfish server log:
    java.lang.IllegalStateException: Operation not allowed.
    java.lang.Exception: Operation not allowed.
    javax.faces.el.EvaluationException: java.lang.Exception: Operation not allowed.
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    Please help me. I am totally stuck here. I am new to both jsf and ejbs. And i was referring this link http://www.packtpub.com/article/Building-JSF-EJB3-Applications
    Thanks,
    blue_dev

    Thanks for having a look at it.
    I tried this: System.out.println(ex.getCause()); , but it only prints null.
    I have pasted part of my glassfish server log which is quite big. I am not able to figure out the root cause of this problem. But my transaction object "utx" is causing this, i guess. Maybe this server log can give some clues.
    java.lang.IllegalStateException: Operation not allowed.
    java.lang.Exception: Operation not allowed.
    javax.faces.el.EvaluationException: java.lang.Exception: Operation not allowed.
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.lang.Exception: Operation not allowed.
    WebModule[/miq-war]#{Register.submitButton_action}: java.lang.Exception: Operation not allowed.
    javax.faces.FacesException: #{Register.submitButton_action}: java.lang.Exception: Operation not allowed.
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
            at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
    Caused by: javax.faces.el.EvaluationException: java.lang.Exception: Operation not allowed.
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            ... 43 more
    Caused by: java.lang.Exception: Operation not allowed.
    executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@131a5af) threw exception
    com.sun.rave.web.ui.appbase.ApplicationException: #{Register.submitButton_action}: java.lang.Exception: Operation not allowed.
            at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:603)
            at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
    ..................................

  • New ADF Taskflow transaction acquires a new JDBC connection?

    Hi,
    I would like to know more about ADF Taskflow transaction in relation to JDBC Connection.
    tf1 ----(contains)---- page1 and call to tf2
    tf2 ----(contains)---- page2
    page1 - search objects
    page2 - edit objects
    I have two pages part of two taskflows, first taskflow does not create any transaction but the page1 in tf1 shows a searh screen for objects. I want to use transaction behavior of ADF TF for tf2 which is called in tf1.
    My tf2 contains a page for edit objects, if i set New transaction as TF transaction behavior for tf2.
    Does it really acquire a new JDBC connection?
    I really appreciate if someone can help me with this.
    Thanks,
    Sunil.

    "Is there any way to achieve 1 user ---> 1 connection ?"
    I don't claim to be an expert on answering this as there's still a lot of things I need to investigate, and other's in the forum may chime in with more informed answers, but my understanding is you need to:
    a) Use a single root AM
    b) Configure your BTFs to use "shared data control scope" and the same AM
    c) All of your BTFs should use "Use existing transaction if possible"
    Because of "c", the very first BTF called, will not have a transaction to borrow, so it will establish a new transaction and therefore a new connection.
    An alternative is, and I'm on shaky grounds here so please check this for yourself, but you could set all your BTFs to "use no transaction", which implies I believe they switch back to the model used in JDev 10g, where it's purely your AMs that determine connections/transactions.
    As for saying 250 connections sounds very high, that's really up to you. If you build an application that you need to support a user with multiple transactions, it's your requirement that causes this. IMHO Oracle has given you the flexibility to build your application anyway you want, so it's up to you to decide if you want multiple concurrent transactions per user or not.
    Finally regards the behaviour observed in WLS, note that the AM pooling options can influence the behvaiour of connections, so it's hard to say what you're seeing is correct, it depends. A suggestion is to install Oracle's Fusion Middleware Control application and use that for monitoring statistics; the FMW Control has smarts built it to help you observe the AM pooling and connection pooling. Andrejus Baranovskis has a few blog posts describing how he used this to track the pooling options.
    CM.

  • How to Use No DB connection App with task flow desined as 'New Transaction'

    Hi,
    My application is fully depend on Custom java datasource implmentation and it requires no DB connection at all. I've done necessary implementation (http://andrejusb.blogspot.in/2012/03/use-case-for-adf-bc-with-no-database.html) by creating CustomDatabaseConnectionStrategy that says
        @Override
        public ApplicationModule createApplicationModule(Hashtable env) {
          env.put(Configuration.DB_REQUIRES_CONNECTION,Boolean.FALSE);
          env.put(PropertyMetadata.ENV_DO_FAILOVER.pName, PropertyConstants.FALSE);
          return super.createApplicationModule(env);
        }My application works fine until i keep my task flow transaction as 'No Controller transaction'. Yes, I use Dynamic tab shell template as UI. But when I keep it as 'Always Begin with New Transaction' and not to share the Data control, Screen is not at all getting rendered. I get some exception (I guess the moment I try to open the task flow, it is trying to get the connection. Since there is no connection available, It gives me this error. Is it so?)
    One of my client requirement is to open the same screen under multiple tabs as a fresh screen (i.e. with different transaction. We do transaction through tuxedo transaction server). If I load a screen under first Tab with some data, added some record, deleted some record.. and If I load the same screen under another Tab, it should not refelect the same data whatever I have under first Tab.
    Requirement:
    I don't have DB connection in my app. But I should be able to define the task-flow to open with new instance of Application module whenever it is opened.
    Your help on this would be appreciated.
    Raghu

    If I understand you requirements correctly, you do not need ADF taskflow transactions but you just need fresh DataControls. If it is so, then you do not have to set the taskflow's transaction behaviour to "Always Begin with New Transaction" (e.g. keep it to "No Controller Transaction"), but set the DataControl frame to "isolated" (e.g. uncheck the "Share data controls with the calling task flow" checkbox in the taskflow's Property Inspector). In this way each taskflow instance will be started in a different DataControl frame (e.g. it will instantiate its own set of ApplicationModule instances).
    Dimitar

  • Help required building ADF-Swing/ADF-Faces using ADF Business Components

    My question is in regards to how you can go about building a light swing application to an ADF model?
    In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
    In particular can we develop these screens using ADF-Faces and also ADF-Swing?
    The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
    This would be typically deployed to an app server, like Oracle App Server 10G.
    Could you please have a look at this, as I am doing a lot of research into this.
    eg. Taking example from oracle magazine sept/oct 2006
    with slight enhancements
    package oramag.frameworks.example.common;
    import oracle.jbo.ApplicationModule;
    import oramag.frameworks.customdto.EmployeeDTO;
    public interface HRService extends ApplicationModule {
    void deleteCurrentEmpAndCommit();
    EmployeeDTO findEmployee(int employeeId); // new method
    import oramag.frameworks.customdto.EmployeeDTO;
    public class HRServiceImpl extends ApplicationModuleImpl {
    public void deleteCurrentEmpAndCommit() {
    Row empRow = getEmpView().getCurrentRow();
    if (empRow != null) {
    empRow.remove();
    getDBTransaction().commit();
    public EmployeeDTO findEmployee(int employeeId)() {
    EmployeeDTO employeeDTO = null;
    EmployeesImpl employees = getEmployees();
    employees.setNamedWhereClauseParam("EmployeeId", employeeId);
    employees.executeQuery();
    if(employees.hasNext()) {
    EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
    employeeDTO = new EmployeeDTO(employee);
    return employeeDTO;
    public EmployeesImpl getEmployees() {
    return (EmployeesImpl)findViewObject("Employees");
    Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
    Cheers
    Rodney

    The tutorial is for ADF BC used with JavaServer Faces.
    While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
    You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
    When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
    It's more of what you don't need to do :-)
    Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
    http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
    I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
    Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
    Trying to do everything with hand-coded DTO beans is really going the hard way.
    Could you help us regarding this?

  • How best 2 use Shared AM in taskflow -new transaction/isolated data control

    Hi all
    I have nearly 800 screens in my app (under 20 or so different AMs), in which I access some Common VOs to work with by applying filtering (on Secondary Rowset, on Default Rowset using View criteria) on that, Used as View Accessor VO (List of Values) & Sorting. These common VOs are not DB driven but custom java datasource implemented and once it is loaded with data, data will not change. I use Dynamic tab shell to load the screens as separate task-flows. These task-flows are defined to be opened with New Tansaction/Isolated Datacontrol. Right now these Common VOs are shuttled in a default scoped AM (Say 'LookupAM') and attached the same as nested AM for the other AMs.
    With the above design, the current behavior is whenever I load a task-flow in Dynamic tab shell, it creates a fresh instance for Shreen AM as well as LookUpAM (I tested by including println inside prepareSession() API of AM Implementation class).
    I feel I'll get benefitted in terms of memory saving/performance when I use only one instance of LookupAM for all the screens. I prepared a sample app that mimic our actual application, but made the LookupAM to be a Application scoped shared AM (lets say SharedLookupAM). I've also made all the LOV View accessors comes from this Shared AM. When I run this sample, the behavior is every time I load the task-flow, still the framework creates Am instance for both screen AM and SharedLookupAM! Why so?
    Question:
    1. Considering my application design (i.e. consuming Shared AM instance from inside the task-flow which are desinged to be opened with new transaction/isolated datacontrol), will I get benefitted in any way If i use Shared AM. If so, what are all the possible type of usages of shared AM for my design?
    2. Why framework creates instance of Shared AM everytime I load the task-flow. Does it meant task-flow settings takes the precedence over the Shared AM configuration and it overrides that?
    Thanks in advance.
    Raghu
    Edited by: Raguraman on Apr 9, 2013 3:25 AM

    Hi,
    +1. Considering my application design (i.e. consuming Shared AM instance from inside the task-flow which are desinged to be opened with new transaction/isolated datacontrol), will I get benefitted in any way If i use Shared AM. If so, what are all the possible type of usages of shared AM for my design?+
    Isolated data control settings are the most expensive settings you can have in ADF. They should be used only if the requirement for the task flow is to be atomic in that it can be committed or rolled back independently. If this is not the case for your use cases, then using shared data control is a better option to use. Note that my expectation to application scope AM is that the AM instance is created per user but that the data cache is only queried once.
    +2. Why framework creates instance of Shared AM everytime I load the task-flow. Does it meant task-flow settings takes the precedence over the Shared AM configuration and it overrides that?+
    Well, you tell it to do so. With the setting of isolated to the Data Control you explicitly tell it to open a new transaction in which case a new instance is created.
    Frank

  • Error while saving report after creating it using webi java panel?

    Hi,
    Whenever i create report through java panel & RE SDK and then try to save it i got below error
    Could not save the document to the repository for the following reason: [repo_proxy 30] InfoStore::ObjectExport::commit - (Helpers::InfoStore::ObjectExport::commit) Failed to commit objects to server :
    Invalid parent id.(hr=#0x80041e0e)(Error #-2147213810 (WIS 30567)
    Actuallly i want to  save report in User's personal category.
    For that i retrive the ID of that User's personal category then pass it to variable to save
    Code while saving
    //JavaScript
    if ("<%= strSubmit.Equals("submit")%>"=="True")
              var value = new Array();
               value[0] = "<%= strName %>"; //Given value of Report
               value[1] = "<%= strComments %>"; //Value ""
              value[2] = "<%= strkeywords %>"; //Value ""
              value[3] = "<%= strFolderId  %>"; //Value ""
              value[4] = "<%= strCategories  %>"; //Value ""
              value[5] = "<%= strPersonalCategories %>"; //Here i assign the ID of User's personal category
              value[6] = "<%= strRefreshOnOpen %>"; //Value ""
              //save the document
                window.opener.saveDocumentCall(value[0],value[1],value[2],value[3],value[4],value[5],value[6]);
                window.close();
    any help?
    Thanks in Advance
    Amol Mali

    Hi Teda,
    Thanks for the reply.
    Actually i'm setting User's PersonalCategory id to Parent ID not setting Folder ID to Parent ID.
    How can i proceed?
    Please help.
    Thanks
    Amol Mali

  • Java Panel not working

    We have BO XI R2.  When I try to create a new webi document, and after I select a universe, Infoview tries to install java each time.  I have java 1.4.04 (which it tries to install) on my system.  I have even let it uninstall java and reinstall it, but to no avail.  It just keeps coming back and saying I need to install the Java Virtual Machine.  I have tried changing my systems PATH settings, but that does not help.  I can run the HTML panel with no trouble, but would rather use the java panel.  Does anyone have any suggestions?  Thanks.
    David

    Hi,
    The first time when you create a report, it would install the Java, and by default it would be Java 1.4.
    You won't be prompted the next time, when you create the reports, and this is normal behavior.
      You can check the java version which your browser is using by going in to the tools Sun Java Console.
    The installation is needed only when you do not have proper java version for WebI.
    -Shreyash

  • Transaction Services in JAVA Cartridge

    To the Oracle WAS Development TEAM,
    Greetings for the New Year to all the members of the Development
    Team.
    I know this is not the right place to put this query but there is
    no other site where I can put my WAS query.
    I am trying to utilise transaction services in JAVA cartridge. I
    am using Oracle Web Application Server 3.0.1.0.1 on Oracle 8.0.4
    on WinNT. I upgraded my OWAS 3.0.1.0.0 to 3.0.1.0.1 without
    deinstalling the earlier version and the configurations.
    My query is: The documentation (for JAVA cartridge usage) it
    mentions that the Transaction Services can not be used for
    JAVA-PL/SQL database access. However, the Java Cartridge
    configuration page allows to define a transaction. Is there a
    problem here (between the OWAS version and that of
    documentation)?
    Can you help me with this ? Can you provide some sample code to
    illustrate this facility ?
    Please help. Your help is very much appreciated.
    Regards, DJ.
    null

    I don't think you understand Windows services. A Windows service starts when Windows starts. It doesn't need a user to be logged on when it starts, and it doesn't care when a user logs on either. It just runs as whatever user is configured.
    If you think you want the service to run as the user that happens to be logged on, then one of two things is wrong:
    1. The part of your design that requires a service is wrong.
    2. The part of your design that requires the service to run as the logged-on user is wrong.
    At any rate some part of your design is wrong. Also bear in mind that even if some user is logged on, it is possible that some other user is also logged onto the same machine via Remote Desktop or PC Anywhere or something like that.

  • SAP MII workbench - saving new transaction - role issue?

    We are using MII 12.1.4 (build 53) and have copied the SAP java roles to our own groups (ABAP Roles) in the UME, including the defined actions of the SAP roles.  We then assign the ABAP role in ABAP to the User, so that in the UME they now have the groups assigned. 
    We have run into an issue where when creating a new transaction in the MII workbench we are unable to save it.  If we add the standard SAP UME role SAP_XMII_DEVELOPER, we are now able to create and save the transaction (or whatever work).  The only difference we can see in the SAP_XMII_DEVELOPER role and our copied role is the name, all the actions in SAP_XMII_DEVELOPER are in our Group (ABAP role).
    our ABAP role (UME Group) example is:
    ZZZZ:Z_MII_DEVELOPER (has UME role AD_JU_MII_DEVELOPER assigned)
    UME Roles:
    Z_MII_DEVELOPER has the 3 actions below assigned:
         xappsxmiiumeactions     XMII_User
         xappsxmiiumeactions     XMII_Read_Only
         xappsxmiiumeactions     XMII_Developer
    SAP_XMII_DEVELOPER has the same 3 actions as above, and the onluy difference is the description, and that it doesn't have any assigned groups.
    Does the MII workbench use the hardcoded role names somewhere that would not allow us to use  our the ABAP roles (JAVA groups) or is there something else we are missing in the group?
    I have searched the best practices, forums, SAP help, OSS, etc. with no luck
    Thanks for any help,
    jake

    Hi Jake,
    I also faced the same problem recently.
    As Mike said, you need to add your role in " Transaction -> Security". Here, you will find all the available roles. Put the required role in Reader and Writer Roles windows.
    As far as your question is concerned, by default MII assigns XMII Administrators, XMII Developers and XMII Users roles (MII 12.0) as Reader to Transaction. Where as MII assigns XMII Administrators and XMII Developers roles as Writer to Transaction.
    Hope this helps!
    Best Regards,
    Kedar

  • Creating new transaction

    i have two methods in a stateless Session Bean which has methods methodA ( Required New ) and methodB( required New ). methodA internally calls methodB. If i remotely invoke methodA, does methodB will create a New Transaction other than the transaction of methodA.
    Do i need to create a new instance of the sessionBean within methodA and then call method B to achieve this so that it is a remote invocation ?
    thx
    Gus

    Hi,
    The difference amounts to calling the same session vs creating a new session for each method call.
    If you use stateless sessions then the transaction outcome would result to the same, but conceptually the first approach sounds better to me.
    Guy
    http://www.atomikos-support.com -- JTA/J2EE Java Transaction Forum

  • Transaction propogation to java helper class

              Hi
              EJB A calls EJB B and EJB B does certain numbr of updates/insert. If one them
              fails everything rollsback in second EJB. This works fine.
              But instead of EJB B being an EJB the initial design was a regular java helper
              class. EJB A creates a new instance of this java class and calls a method on this
              class. The EJB A is set to be transactional (Required). The java class get a DB
              connection from TX datasource and does the same operation as EJB B that I described
              above. I tried to throw an exception to the EJB A and catching the Exception did
              a setRollbackOnly() in EJB A and the transaction does not rollback. I was under
              the impression that even if DB operations are done in a java class they are still
              under the same transaction and thus container is still under control of it if
              it is a container managed transaction. it does not look like it is teh case.
              Is there any requirement that DB connection obtained /operation made need to be
              inside the EJB method itself and not in the java helper class. Does this means
              that the transaction gets suspended on the duration of execution of the java helper
              class. I was under the impression that they are all under the same transaction
              context and it applies to that as well. Any help on this is greatly appreciated.
              

    Well, that's the only way. The container has to start the transaction in its
              invocation wrapper for CMT EJBs and then terminate the transaction (commit or
              rollback) after the method has exited (either normally or by throwing an
              exception). Anything that happens inside the call to the business method is in
              the transaction...
              --dejan
              Toad wrote:
              > That's good to know but somewhat surprising.
              >
              > "Deyan D. Bektchiev" <[email protected]> wrote in message
              > news:[email protected]...
              > > The transaction is associate with the thread that the EJB method executes
              > in so
              > > any calls in the same threads are part of the transaction.
              > > So even if you have a separate class that functions as a connection
              > factory (in
              > > the end getting the connections from a TX datasource) those connections
              > still
              > > would be part of the transaction.
              > >
              > > You can test that if you do
              > > System.out.println(weblogic.transaction.TxHelper.getTransaction()) and you
              > > should see the current transaction.
              > >
              > >
              > > --dejan
              > >
              > > Toad wrote:
              > >
              > > > I'm thinking the key to the failure to rollback is that the helper bean
              > > > "gets a connection" which is effectively stepping outside the confines
              > of
              > > > your CMP model. How would the container know that you hand-carved a
              > > > connection or even a set of connections and executed several
              > transactions
              > > > independently? That would be no mean feat if it wasn't specifically
              > designed
              > > > in.
              > > >
              > > > "Priya Vasudevan" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > >
              > > > > Hi
              > > > >
              > > > > EJB A calls EJB B and EJB B does certain numbr of updates/insert. If
              > one
              > > > them
              > > > > fails everything rollsback in second EJB. This works fine.
              > > > >
              > > > > But instead of EJB B being an EJB the initial design was a regular
              > java
              > > > helper
              > > > > class. EJB A creates a new instance of this java class and calls a
              > method
              > > > on this
              > > > > class. The EJB A is set to be transactional (Required). The java class
              > get
              > > > a DB
              > > > > connection from TX datasource and does the same operation as EJB B
              > that I
              > > > described
              > > > > above. I tried to throw an exception to the EJB A and catching the
              > > > Exception did
              > > > > a setRollbackOnly() in EJB A and the transaction does not rollback. I
              > was
              > > > under
              > > > > the impression that even if DB operations are done in a java class
              > they
              > > > are still
              > > > > under the same transaction and thus container is still under control
              > of it
              > > > if
              > > > > it is a container managed transaction. it does not look like it is teh
              > > > case.
              > > > >
              > > > > Is there any requirement that DB connection obtained /operation made
              > need
              > > > to be
              > > > > inside the EJB method itself and not in the java helper class. Does
              > this
              > > > means
              > > > > that the transaction gets suspended on the duration of execution of
              > the
              > > > java helper
              > > > > class. I was under the impression that they are all under the same
              > > > transaction
              > > > > context and it applies to that as well. Any help on this is greatly
              > > > appreciated.
              > > > >
              > >
              

  • Extract process up & running but I cannot see new transactions in the trail

    extract process up & running on source but I cannot see new transactions in the extract trail file and as result it is not replicated to target
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT RUNNING E_ENVA 00:00:00 00:00:10
    GGSCI (HOST) 186> send extract e_Enva status
    Sending STATUS request to EXTRACT E_ENVA ...
    EXTRACT E_ENVA (PID 11824)
    Current status: In recovery[1]: At EOF
    Current read position:
    Sequence #: 33
    RBA: 34904432
    Timestamp: 2011-09-21 11:14:47.000000
    Current write position:
    Sequence #: 6
    RBA: 1008
    Timestamp: 2011-09-21 11:26:42.426000
    Extract Trail: C:\GG\dirdat\enva\ce
    GGSCI (ILW177711) 193> stats extract e_enva
    Sending STATS request to EXTRACT E_ENVA ...
    No active extraction maps.
    Where to look next and what is the root cause for this,
    thank you

    all configurations was ok and working fine (meaning data was extracted on source and replayed on target) before extract/replicat processes restart
    I did not touch any of the configuration files, after restart processes shows as up & running without any actual errors or rejects on the logs
    please find extract configuration file:
    EXTRACT e_enva
    SETENV ( ORACLE_SID=orcl )
    USERID USER_SCHEMA_A, PASSWORD AACAAAAAAAAAAAHAOFVCXAUANCVHIHCE, ENCRYPTKEY DEFAULT
    DISCARDFILE C:\GG\dirrpt\e_enva.dsc, APPEND, MEGABYTES 10
    REPORTCOUNT EVERY 10000 RECORDS, RATE
    NOTRACETABLE
    EXTTRAIL C:\GG\dirdat\enva\ce
    SQLEXEC "CALL USER_SCHEMA_A.pkg.event_message('START', null, 'ALL','e_enva')";
    SQLEXEC "CALL USER_SCHEMA_A.pkg.event_message('STOP', null, 'ALL','e_enva')" ONEXIT;
    TABLE USER_SCHEMA_A.T_TABLE, KEYCOLS (ID_OBJECT);
    TABLE USER_SCHEMA_A.T_TABLE_REF, KEYCOLS (ID_XREF, PKEY_SRC, SYSTEM, IND);
    logging and supplemental logging enabled, commits performed and again nothing was changed in configuration except that processes was restarted
    thank you

Maybe you are looking for

  • How do I import a .png file to iPhoto?

    How do I import a .png file to iphoto?

  • Path direction in Oracle spatial network data model

    Hi all, can any one help me how to implement path direction using oracle network data Model? We are using Oracle Spatial database. there is one feature called network constraint in Network data Model. but how to implement path direction of my Network

  • QFS won't error writing files to a SAN

    Hello, This is probably a simple thing to do but I have not been able to figure out how to do it. We have a SAN up and running QFS with 4 clients connected to it. I have a Java application that is writing files to this SAN and is running on one of th

  • Using an alternate Audio Device in iTunes.

    I'd like to set iTunes to use an external USB DAC, but keep the rest of the system using the internal audio device. It is possible to do this via Airplay, but not using other audio devices AFAIK. The only way to get iTunes to send to the DAC via USB

  • Exporting from FCP for use with PC

    Hey all, Trying to deliver a high-med quality 8 minute video from FCP for use with a PC. I've tried exporting both a .mov and .avi using DVCPro50, but neither are readable through the PC. Best I can get is sometimes audio will show up. Does anyone ha