Using trans-attribute of Required with public vs. private bean methods

          I'm having problems attempting to begin my transaction (using the Required transaction attribute
          setting in the desployment descriptor) in a private stateless session bean method. The scenario is as follows:
          public void methodA() <-- want NO transactional setting
          doSomething();
          private void doSomething() <-- want trans-attribute of Required
          doFirstPart(); <-- trans-attribute of Supports
          doSecondPart(); <-- trans-attribute of Supports
          When I do this, if I force a failure in the doSecondPart() method, the doFirstPart() database activity is NOT
          rolled back properly. If I go ahead and set the trans-attribute of methodA() to Required and change
          doSomething() to Supports, then any database activity in doFirstPart() appropriately gets rolled back
          upon a failure in doSecondPart(). Can I not initiate a transaction in a private method? Can anyone point
          me in the right direction?
          Thanks!!
          - Jim
          

          Here is the deal. What I was missing was this...to take advantage of the transaction attribute settings that are set in the deployment descriptor, you must call a method that is present in the remote interface. AND you must call that method through its remote interface instead of calling it locally.
          For example, I originally had the scenario below:
          public void methodA()
          doSomething();
          private void doSomething()
          Well, in the code above, there are two problems.
          1) doSomething() needs to be public and part of the remote interface;
          2) methodA() needs to call the method using the remote interface instead of calling the method locally.
          Like this:
          public void methodA()
          Object ref = jndiContext.lookup("ejb-name");
          EJBObjectType obj = (EJBObjectType) PortableRemoteObject.narrow(ref, EJBObjectType.narrow);
          obj.doSomething();
          public void doSomething()
          Or something pretty close to that. Make sense? This means that there is NO effect of putting private methods with transaction attribute values in the deployment descriptor.
          "Jim Clingenpeel" <[email protected]> wrote:
          >
          >Yes, I am using a JTS connection.
          >
          >Another interesting point. I even attempted to make the doSomething() method public and part of
          >the remote interface but the transaction still did not work properly (i.e., database activity from the
          >doFirstPart() method was not rolled back upon failure of doSecondPart()) unless my client application
          >called the doSomething() method directly. If the client called methodA() which, in turn, calls
          >doSomething(), then the transaction did not behave properly.
          >
          >Any further thoughts?
          >
          >- Jim
          >
          >"Cameron Purdy" <[email protected]> wrote:
          >>Make sure that you are using the Tx driver, not just a pool.
          >>
          >>--
          >>
          >>Cameron Purdy
          >>[email protected]
          >>http://www.tangosol.com
          >>WebLogic Consulting Available
          >>
          >>
          >>"Jim Clingenpeel" <[email protected]> wrote in message
          >>news:[email protected]...
          >>>
          >>> I'm having problems attempting to begin my transaction (using the Required
          >>transaction attribute
          >>> setting in the desployment descriptor) in a private stateless session bean
          >>method. The scenario is as follows:
          >>>
          >>> public void methodA() <-- want NO transactional setting
          >>> {
          >>> doSomething();
          >>> }
          >>>
          >>> private void doSomething() <-- want trans-attribute of Required
          >>> {
          >>> doFirstPart(); <-- trans-attribute of Supports
          >>> doSecondPart(); <-- trans-attribute of Supports
          >>> }
          >>>
          >>> When I do this, if I force a failure in the doSecondPart() method, the
          >>doFirstPart() database activity is NOT
          >>> rolled back properly. If I go ahead and set the trans-attribute of
          >>methodA() to Required and change
          >>> doSomething() to Supports, then any database activity in doFirstPart()
          >>appropriately gets rolled back
          >>> upon a failure in doSecondPart(). Can I not initiate a transaction in a
          >>private method? Can anyone point
          >>> me in the right direction?
          >>>
          >>> Thanks!!
          >>>
          >>> - Jim
          >>
          >>
          >
          

Similar Messages

  • Using an attribute set in a servlet as a bean in a JSP

    Say, I have saved an attribute in any scope in a servlet or its helper class using setAttribute("xyz", someObject).
    * Would I be able to access this attribute in a subsequent JSP using <jsp:getProperty name="xyz" property"someProperty" /> *
    The reverse works true ie. setting the attribute first as a bean in a jsp and den accessing it using getAttribut

    Lakshminarayanan,
    Actually, there are 2 ways to share data between WD components:
    1. Context mapping
    2. Combo of parameters to methods / parameters in events.
    Say, you want to synchronize your 2 toolbars. You may declare some method(s) to alter state in "toolbar" component interface and some event(s) about state update. Now main component has to subscribe to this event from every component usage and invoke method in other component usage to synchronize state.
    With context mapping you may achieve state synchronization automatically. Also method/event pair will look plain ugly if you have a lot of parameters or complex structures.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • BEST PRACTICES: How to deploy apps with public and private content & data?

    Can anyone recommend a guide, blog post, etc. on best practices for:
    - designing & deploying apps that have publicly-accessible (http + https) content, and
    - content and data for which users must be authenticated and authorized?
    NOTE: In our environment users are authenticated via OID. We're using Apex 4.

    Hi,
    Have a look at this Sample App for getting Auth Token from Instagram in windows phone app. 
    Also read the api documentation for more details from
    here.
    Pradeep AJ

  • Trans-attribute of Mandatory

    Hello,
    I am running WebLogic 6.1 on NT. Today I ran an experiment by setting trans-attribute
    to "Mandatory". The client calls this method with no transaction. The result
    is that the method is not executed and there is no error message anywhere. This
    seems to be a very tricky kind of error to catch.
    Once I changed the trans-attribute to "Requires" without changing anything
    else, the method was executed normally.
    Does any one have any comments on using "Mandatory"?
    Simon

    I can tell you what the EJB 2.0 Spec says:
    17.6.2.5 Mandatory
    The Container must invoke an enterprise Bean method whose transaction attribute is set to
    Mandatory in a client’s transaction context. The client is required to call with a transaction
    context.
    • If the client calls with a transaction context, the Container performs the same steps as
    described in the Required case.
    • If the client calls without a transaction context, the Container throws the
    javax.transaction. TransactionRequiredException exception if the client is a remote client, or
    the javax.ejb.TransactionRequiredLocalException if the client is a local client..
    Is that not what you are seeing?
    Bill
    Simon Ng wrote:
    Hello,
    I am running WebLogic 6.1 on NT. Today I ran an experiment by setting trans-attribute
    to "Mandatory". The client calls this method with no transaction. The result
    is that the method is not executed and there is no error message anywhere. This
    seems to be a very tricky kind of error to catch.
    Once I changed the trans-attribute to "Requires" without changing anything
    else, the method was executed normally.
    Does any one have any comments on using "Mandatory"?
    Simon

  • trans-attribute in ejb-jar.xml

    Dear All,
    To improve performance of my EJB's, I wish to set trans-attribute as "Supports"
    for all my get methods and rest of the methods as "Required".
    Heres the snippet from my ejb-jar.xml which I'm using to achieve the same:
    ======== start ejb-jar.xml =========
    <container-transaction>
    <method>
    <ejb-name>com.test.beans.TestBean</ejb-name>
    <method-name>get*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>com.test.beans.TestBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    ======== end ejb-jar.xml ===========
    My doubt is:
    - Is this the right way to achieve the same?
    - Is there any possibility that 1st container would set the trans-attribute for
    all methods start with get to "Supports" and then set the trans-attribute as "Required"
    for all method[since I've used * afterwards], i.e overwrite the changes for get*
    methods?
    - Or Should I do it other way around? i.e 1st set trans-aatribute of all methods[*]
    and then overwrite for get* methods?
    Comments plz !!!
    Thanx
    ~Puneet Maini

    "Puneet Maini" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear All,
    To improve performance of my EJB's, I wish to set trans-attribute as"Supports"
    for all my get methods and rest of the methods as "Required".
    Heres the snippet from my ejb-jar.xml which I'm using to achieve the same:
    ======== start ejb-jar.xml =========
    <container-transaction>
    <method>
    <ejb-name>com.test.beans.TestBean</ejb-name>
    <method-name>get*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>com.test.beans.TestBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    ======== end ejb-jar.xml ===========
    My doubt is:
    - Is this the right way to achieve the same?
    - Is there any possibility that 1st container would set thetrans-attribute for
    all methods start with get to "Supports" and then set the trans-attributeas "Required"
    for all method[since I've used * afterwards], i.e overwrite the changesfor get*
    methods?
    - Or Should I do it other way around? i.e 1st set trans-aatribute of allmethods[*]
    and then overwrite for get* methods?The order does not matter. You can specify the transaction settings in any
    order you want. Note that the "get*" is more specific than the "*" for the
    method-name element.
    Also with supports, if this bean is invoked in a transaction then the
    caller's transaction will whatever settings it has would take precedence.
    >
    Comments plz !!!
    Thanx
    ~Puneet Maini

  • Difference between drill down and filter using navigation attributes?

    hi all,
    can anyone let me know the difference between filter and drilldown options using navigational attributes. pls explain with examples for filter and drill down and how it varies.
    thanxs
    haritha

    Jst to add up with an example :
    Say you have a cost center variance analysis report with cost elements in the filter. ( not present in the default report result )
    Filter - You can right click on a particular cost center & say " Keep Filter Value " - it will result in only showing that cost center & you can wish to select other filter value doing " Select Filter Value ".
    Drill Down - If u wish to see the cost elements associated with cost centers you can right click on Cost Center & do " Drill Down To - Cost Element " or Drill Across.

  • Label of attribute when used as View Criteria item with Bind Variable

    I've a VO attribute used in a named search with this requirement:
    The attribute provides has an optional View Criteria item that has a bind variable operand. The bind variable is in the WHERE clause. The attribute has an LOV. The choice list for the specified View Criteria item should display the label "Effective Release". However, in all other contexts, including the search results table and the dropdowns the user can optionally add in an advanced search, the label displayed for the attribute must say "Release".
    In other words, the default label for the attribute should be "Release" in all but one context - which is that when the dropdown list for the viewCriteria item using the bind variable is displayed, the label should say "Effective Release".
    Note that if the user moves to Advanced Search and selects adds the attribute as a search criteria, this latter usage should be labeled as "Release". (in this case, in other words, the dropdown that displays by default and has the bind variable operand is labelled "Effective Release", the one the user added in advance search is labelled "Release")
    here is the View Criteria item source xml:
          <ViewCriteriaItem
            Name="ReleaseId1"
            ViewAttribute="ReleaseId1"
            Operator="="
            Conjunction="AND"
            Value=":v_ReleaseId"
            GenerateIsNullClauseForBindVars="false"
            ValidateBindVars="true"
            IsBindVarValue="true"
            Required="Required"/>I've experimented by putting "Effective Release" as the label for the bind variable as below. However, ADF does not use that value to display, it defers to the attribute value:
    <Variable
        Name="v_ReleaseId"
        Kind="viewcriteria"
        Type="oracle.jbo.domain.Number">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="EFFECTIVE_RELEASE_LOV"/>
          </SchemaBasedProperties>
        </Properties>
      </Variable>The reason for the requirement, if it matters, is that the View Criteria item with the bind variable ("Effective Release" queries a range of values using the analytic function rank(); the bind variable is in the WHERE clause. Otherwise, the dropdown that can be added in advanced search ("Release") looks for exact matches on the attribute value. So since the search functionality is different, the label should be different.
    Am using 11g.
    Thanks for your help.

    Hi
    I have found that when using validation type Key Exists and the VO is in the local application, then the bind variable is available in the Create Validation wizard. When I try and create a validator on a VO that is core to all my applications, then I put that VO into an ADF library, the bind variable parameter is not available for mapping to my entity object attribute, even though I can select the VO to create a view accessor from the ADF library.
    Possible bug?

  • Problem with public WiFi requiring disclaimer on iPhone 5

    My iPhone has a problem with public WiFi networks that require you to hit the button accepting a disclaimer before you can browse on the Internet. When I click on the network the Log In header pops up but eventually times out with an "Error Opening Page".
    The only work around I have found is to disable cellular data access and then try to connect to the WiFi network.  Works fine with cellular data turned off as the disclaimer page pops up quickly.
    The big difference I see is the http:/www.apple.com pop up above the Log In header where it's blank if I do not turn off cellular data. If I time out of the WiFi network I'm forced to redo the cellular data on/off to log back in.
    WiFi otherwise works fine.
    Anyone found a workaround besides having to manually turn on/off cellular data?

    Hello Enigma118,
    It sounds like you are pressing your Sleep/Wake button and the phone is taking a screenshot. I recommend starting by closing all the running apps on the phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If it persists, I would next backup your device to iTunes with this article:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    And restore it from your backup with this article:
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • I would like to buy a developer license to use on a mac at a public library from a flash drive any issue with this?

    I would like to buy a developer license to use on a mac at a public library from a flash drive any issue with this? Very new to this

    The license is for the Developer not the machine it is run on However there could be soma issues with trying to develop on a public machine.
    The biggest is does the library machine have or will they let you install  and run Xcode and if you are developing for IOS will they let you plug in your devices?
    In addition will they allow you the hours needed on the machine? Most public machines have a time limit especially if there are others waiting to use it.
    All-in-all in can be done but it won;t be an easy situation.
    good luck

  • I am currently using a desk top imac with firefox as the browser. I need to access a website that requires 128 bit encryption. How do I increase bit encryption?

    when I log into view my accounts, a pop up asks me to use either explorer or netscape with 128 bit encryption. since i use a mac, i do not have either. can i up the encryption using firefox?

    https://support.mozilla.com/en-US/questions/903234
    see also SSL Encryption Report( fortify net) in '''cor-el''' reply, in support.mozilla link inside the above link.
    thank you

  • 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

  • How to use extends attribute in jsp page directive

    Can anybody tell how to extend a existing .jsp file from another .jsp file. I have tried but it gives error.
    I have used Extends attribute of page directive as below:
    <%@ page extends = "MyAnotherJsp.jsp"%>
    I also tried : <%@ page extends = "MyAnotherJsp"%>
    I am using Tomcat as a web server
    Also tell where to put those files.
    Thanks.

    Hi I am using Netbeans 5.5, Sun Java System Application Server 9.
    ABC.java
    package javapackage;
    public class ABC{
    public String show(){
    return "Sandip Gaikwad";
    index.jsp
    <%@ page extends="javapackage.ABC" %>
    <html>
    <head>
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page </h1>
    </body>
    </html>
    Above code throws following exception at runtime:-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    Server log
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    If I delete the line <%@ extends="javapackage.ABC"%> it works fine. Please tell me what is wrong with this line.

  • Embedding inline HTML data in XML using the mx:XML tag with &lt; and &gt;

    What is best practice for embedding HTML within the
    <mx:XML> tag? Programmatically, I can implement this
    successfully:
    [Bindable]
    public var xmlDP:XML = <component data="&lt;" />;
    However, I get the following error if I try to store the same
    data inline in an mx:XML tag, as such:
    <mx:XML id="xmlDP">
    <component data="&lt;" />
    </mx:XML>
    Error #1095: XML parser failure: Unterminated attribute.
    If I change the MXML tag as follows, it works fine:
    <mx:XML id="xmlDP">
    <component data="&amp;lt;" />
    </mx:XML>
    Unfortunately, I also can not source the mx:XML tag to an XML
    file which uses &lt; or &gt; codes, as it yields the same
    results. This leads me to believe that the <mx:XML> tag does
    not support the special character codes for < and >, but why?
    Incidentally, this code also gives a 1095 error:
    <mx:XML id="xmlDP">
    <component data="&#0060;" />
    </mx:XML>
    This is causing an issue with my source data as it is not
    hand typed into Flex, and standard XML supports the &lt; and
    &gt; codes. I have tried a full HTML string, as shown below,
    but this also generates the error:
    <mx:XML id="xmlDP">
    <component data="&lt;b&gt;Test&lt;/b&gt;"
    />
    </mx:XML>
    Many thanks for any input you may have!

    I’m generating the XML source file with
    Microsoft’s XML Notepad 2007. It will encode invalid special
    characters automatically. My understanding is that this is the
    proper way to handle the less than symbol in a XML string, that is
    to say using the &lt; code.
    With respect to the escape and un-escape methods, I am able
    to successfully implement these in AS, but not in MXML. This makes
    sense considering they are AS methods, but I was hoping to be able
    to do something like:
    <mx:XML id="xmlDP">
    <component data="escape('<');" />
    </mx:XML>
    This gives the following compilation error:
    The value of attribute "data" must not contain the '<'
    character.
    As does using the escape character as such:
    <mx:XML id="xmlDP">
    <component data="\<" />
    </mx:XML>
    Below is an example of what the escape character may be used
    for in AS:
    var myString:String = "\"";
    trace(myString);
    // result: "
    Likewise, I can escape the < character as such:
    var myString:String = escape("<");
    trace(myString);
    // result: %3C
    <mx:XML id="xmlDP">
    <component data="%3C" />
    </mx:XML>
    trace(un-escape(xmlDP.@data));
    // result: <
    As you can see, using %3C and unescaping in AS will yield the
    correct result; however, this is not a practical method of
    representing the data in MXML as I would have to write an AS method
    to un-escape the XML string anyway, so I might as well just store
    the data in AS to begin with. I was hoping for a way to source an
    mx:XML object, without having to load it into ActionScript
    manually. Here’s an example of the functionality I would
    expect:
    <mx:XML id="xmlDP">
    <component data="&gt;" />
    </mx:XML>
    trace(xmlDP.@data);
    // result: >
    Only this does not work for the less than symbol. I’m
    assuming at this point that this is a bug in the Flex compiler.
    Thanks again for your help troubleshooting this one!

  • Table Attribute not working with MVC5 and EF6

    Hello,
           Having an issue with a project I am working on.  I have a web project and portable classes.  I am using Entity Framework 6, and MVC 5.  Everything was working when I had all the classes in the Web side,
    but once I moved them to the Portable side, I began to have an issue with the data annotation.  Here is the code from one of the classes:
    namespace Inventory.Entities
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;
    [Table("Common.Location")]
    public class Location
    public Location()
    Assets = new HashSet<Asset>();
    [Key]
    public int LocationID { get; set; }
    [Required]
    [Display(Name = "Location Name")]
    public string LocationName { get; set; }
    public virtual ICollection<Asset> Assets { get; set;}
    Now the issue is that Table has a red squiggle and I am getting the following error: Error  43  The type or namespace name 'TableAttribute' could not be found (are you missing a using directive or an assembly reference?)
    As far as I can tell everything is set up correctly, but this just does not want to work.  It is not only this class, but all of my classes.  The only reference I have in the portable classes is .Net with a target of 4.5.  Everything I read
    says this should work, but clearly it is not working.  I have also uninstalled and installed the entity framework, did a clean and build but with no luck.  Any thoughts?
    Michael R. Mastro II

    Hello Michael,
    >>but once I moved them to the Portable side, I began to have an issue with the data annotation.
    This is by designed, please check the namespace “System.ComponentModel.DataAnnotations.Schema”:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema(v=vs.110).aspx, as you can see, only the DatabaseGeneratedAttribute is supported in Portable Class Library.(If a class is supported in PCL, there should be a
     symbol).
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Grid Infrastructure 11.2.0.3 install fails with public & private subnet

    Specify Network Interface Usage
    Interface Name: eth0 Subnet: 192.168.1.0 Public
    Interface Name: eth1 Subnet: 192.168.1.0 Private
    Using the Advanced Installation ->
    No GNS ->
    I'm getting error [ins-41113] Specified public and private interfaces are configured on the same subnet: 192.168.1.0 Why is this an error because Oracle Documentation e17212/typinst.htm says the following:
    A Single Client Acess Name (SCAN) for the cluster , wich the following characteristics:
    * Three static IP address; however I want to use only two static IP address because I am not using DNS I'm using /etc/hosts file.
    * On the same subnet as all other public IP addresses, VIP addresses, and SCAN addresses.
    Please advise because I was able to install Grid Infrastructure 11.2.0.2 using the same configuration with no problems. Now that I am using Oracle 11.2.0.3 I'm encountering this problem.

    Hi,
    I appreciate insight with respect to Why Does it work in Oracle Grid Infrastructure 11.2.0.2 and not in 11.2.0.3 ?Some things that are not supported, are sometimes allowed by Oracle Product Software (I can say it's bug), but still desupported.
    See this example.
    In 11.2.0.1 and 11.2.0.2 it's possible add releases prior to 11.2 of Oracle Database to be managed by Oracle Restart. But It's not certified.
    See this thread.
    {message:id=9270783}
    In 11.2.0.3 Oracle solved this issue don't allowing do that and created a new msg error :
    PRCD-1245 : Addition of database version 11.2.0.3.0 is not allowed using srvctl version 10.2.0.0.0So, like example above in 11.2.0.1 and 11.2.0.2 it's not supported use same subnet to private and public network, but it's allowed by Oracle Product Software, now it's not allowed by Oracle Product Software
    The install guide will tell you the following requirements private IP address must satisfy the following requirements:
    *1. Must be separate from the public network*
    2. Must be accessible on the same network interface on each node
    3. Must have a unique address on each node
    4. Must be specified in the /etc/hosts file on each node
    The Best Pratices recommendation is to use the TCP/IP standard for non-routeable networks. Reserved address ranges for private (non-routed) use (see TCP/IP RFC 1918):
    * 10.0.0.0 -> 10.255.255.255
    * 172.16.0.0 -> 172.31.255.255
    * 192.168.0.0 -> 192.168.255.255
    Cluvfy will give you an error if you do not have your private interconnect in the ranges above.
    You should not ignore this error. If you are using an IP address in the range used for the public network for the private network interfaces, you are pretty much messing up the IP addressing, and possibly the routing tables, for the rest of the corporation. IP addresses are a sparse commodity, use them wisely. If you use them on a non-routable network, there is nothing to prevent someone else to go and use them in the normal corporate network, and then when those RAC nodes find out that there is another path to that address range (through RIP), they just might start sending traffic to those other IP addresses instead of the interconnect. This is just a bad idea.
    This above is described on MoS: *RAC: Frequently Asked Questions [ID 220970.1]*
    Regards,
    Levi Pereira

Maybe you are looking for

  • IMovie crashes when importing video from a camcorder

    Hello, I'm using iMovie, and I'm trying to import the video from my camcorder (sony HDR-PJ260VE). But when I clicked the camera button, iMovie crashes. iMovie does crash every time I try to press the import button. However, importing from video file

  • Parent not clipping children in certain cases

    I've run into 2 different cases where clipping doesn't work. One I can produce a test case that reproduces the problem where another I have a program that is demostrating the problem, but I don't know why. I've found a hack that causes clipping to ge

  • Reducing CPU usage of Flash animation

    Hello! I have a simple Flash animation - fading in and out different images. I have done it with an Actionscript (changing alpha value). That worked ok only on new processors - on all others it eats 100% CPU. I then tried to do it with timeline (moti

  • BES required or not for CUMA ?

    Hi, Does any of you have already deployed Cisco Unified Mobile Communicator on blackberry devices? I have a doubt, cisco's docs states that BlackBerry Enterprise server 4.1.6. must be deployed with MDS, only this version is support?? There is no othe

  • HT1937 My Iphone 5s some one stolen, but i find in "FIND IPHONE" app it showing offline.what should i do?

    My Iphone 5s some one stolen, but i find in "FIND IPHONE" app it showing offline.what should i do?