@TransactionAttribute within the same class methods For the given class bellow, why the transaction scope is the same from the caller method ? And why it only works when i call, for example someBeanInstance.A() from another class ?  @Stateless public class X {      @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)     public void A() {         B();     }      @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)     //or @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)     public void B() {         // here the transaction is the same         // the annotation has no effect     } }
EJB Transactions in local method-calls In the following setup, does method B run in a (new) transaction?  An EJB, having two methods, method A and method B  public class MyEJB implements SessionBean     public void methodA() {        doImportantStuff();        methodB();        doMoreImportantStuff();     }      public void methodB() {        doDatabaseThing();     } }   The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus:  &lt;container-transaction id="MethodTransaction_1178709616940"&gt;   &lt;method id="MethodElement_1178709616955"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;*&lt;/method-name&gt;   &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;   &lt;/method&gt;   &lt;method id="MethodElement_1178709616971"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;methodB&lt;/method-name&gt;   &lt;/method&gt;   &lt;trans-attribute&gt;RequiresNew&lt;/trans-attribute&gt; &lt;/container-transaction&gt;   Now let another EJB call methodA with an EJB method call. methodA now runs in an transaction. Will the subsequent call to methodB from methodA run in the same transaction, or does it run in a new transaction? (mind, it's the actual code here. There is no explicit ejb-call to method B)
Is the tag info page not available on mobile theme? I was surfing SO on my iPhone, and wanted to see the info (tag-wiki) page for a tag, but didn't find it. Clicking on the tag always leads to the list of question, and there is no other link to the tag wiki. Is it not available on the mobile site? Applications Not Reopening After Restart How do I delete unique rows from a table with duplicate keys? I have the following data:        road        |  ID  | other column  | other column |  ------------------+------+---------------+--------------+           MAIN ST           |  1   |     ...       |     ...      | MAIN ST           |  2   |     ...       |     ...      |         MAIN ST           |  3   |     ...       |     ...      | BERRY LN          |  4   |     ...       |     ...      | BERRY LN          |  5   |     ...       |     ...      | BERRY LN          |  6   |     ...       |     ...      | JOHN RD           |  7   |     ...       |     ...      | JOHN RD           |  8   |     ...       |     ...      |   I want all rows with duplicates in the road column removed. It does not matter to me which duplicates are removed. The end result can look something like this:        road        |  ID  | other column  | other column |  ------------------+------+---------------+--------------+           MAIN ST           |  3   |     ...       |     ...      | BERRY LN          |  4   |     ...       |     ...      | JOHN RD           |  8   |     ...       |     ...      |   where the id's are any value, as long as the road column is unique.   Is there a simple way to do this in SQL or T/SQL? I followed the guide , but it only applies to duplicate keys with non-unique rows. Is there any significant difference between Nikon and Canon? Does Hilbert's $\varepsilon$-calculus have any real problem when using for incomplete systems? Multiple vs single field capture for phone number form input Working on a form dealing with phone numbers, I've seen two methods to capture user input .   In past practices example 2 (image below) has proved effective in controlling phone number lengths on forms.   However with responsive in mind it would seem example 1 is considered a more popular pattern on forms. I've researched both patterns with the findings below.     Example 1  Pros   1 input = less taps on mobile device 1 input = less coding   Cons   could be difficult to control phone number format (1-555-555-5555, +22444455555, and etc)   Example 2  Pros   easier to control phone format reduced user error   Cons   3 inputs = more taps on mobile device more inputs = more coding   Both inputs have pros and cons and I'm not such which method would provide the best user experience for responsive environments. Can anyone share some insight or provide a better way to use phone number inputs? Since  from other SE sites and is not thought to point out a lack of quality or helpfulness, but only to express agreement or disagreement, I'm wondering why downvoted answers here on meta are shown semi-transparent.  Shouldn't they be non-transparent then (like upvoted answers)?  Or am I missing something? Remove suggested apps option in iOS 10 Is there a difference between "Joe said" and "said Joe"? Does the subject/verb order make a difference when writing a dialog tag?  &quot;The sky is blue,&quot; Joe said. &quot;The sky is blue,&quot; said Joe.  Is one preferable over the other? Does one emphasize the speaker (or the method of speech, such as shout) more than the other? (Personally, I would use the second form to emphasize that Joe made the statement) I'm interested in the properties of zero-diagonal symmetric (or hermitian) matrices, also known as hollow symmetric (or hermitian) matrices.   The only thing I can come up with is that it cannot be positive definite (if it's not the zero matrix): The Cholesky decomposition provides for positive definite matrices $A$ the existence of a lower triangular $L$ with $A=LL^*$. However the diagonal of $LL^*$ is the inner product of each of the rows of $L$ with itself. Since the diagonal of $A$ consists of zeros, so $L$ (and thus $A$) must be the zero matrix.  The sorts of questions that interest me are:   which symmetric matrices can be transformed orthogonally into a zero-diagonal matrix? what can we say about the eigen-values of a zero-diagonal symmetric matrix?. any other interesting known properties?? I'm having a bit of a trouble with the below question     Given $G$ is an undirected graph, the degree of a vertex $v$, denoted by $\mathrm{deg}(v)$, in graph $G$ is the number of neighbors of $v$.   Prove that the number of vertices of odd degree in any graph $G$ is even. Incubated but not hatched egg I got the message "oh" and it showed my egg. Before I could do anything the server went down. When I got back on my egg was gone. Is there anything I can do to retrieve my incubated but not hatched egg? Limit of $\frac{\log(n!)}{n\log(n)}$ as $n\to\infty$. What is the difference between a linear and a circular polarizer? When I bought my polarizer, a friend told me that I should get a circular one, because the linear ones can mess with the autofocus. Is this true? What should each be used for? I have a script that updates my desktop background every day with the NASA APOD. Since upgrading to 11.10, that script stopped working, presumably because I'm using gconftool-2 to actually update the desktop background. Is there a new way to do this under Unity? Bounded in Probability and smaller order in probability I wanted to prove that if $X_n$ is bounded in probability and $Y_n = o_p(X_n)$, then $Y_n \rightarrow 0$ in probability   I  know the following definitions that is $X_n$ is bounded in probability meaning that   $P(|X_n|&lt;M)&gt;1-\epsilon$  and I know that $Y_n = o_p(X_n)$ implies that $Y_n/X_n \rightarrow0$ in probability ¿Can you help me with axiom of regularity? I understand that if we define a set such that $A=\{A\}$ we have then a contradiction because of regularity axiom, thus, a set can not be a member of itself. My question is; how can it be so, if I define a set $A=\{A,b\}$ ($b$ disjoint from $A$)?  Thanks. I want to model the transfer function of a resistor mathematically, and am after some resources / tips on if it's possible to do so.  For example, if I put 1V into a 1 Ohm resistor, I want to know how long and how (shape) it will take to reach a steady state temperature, given 25 deg C ambient.  I.e.   $$ \frac{T(s)}{V(s)} = ??? $$  Where T(s) is the laplace transform of temperature T(t), measured in say Kelvin.  I understand there are a lot of factors which will affect this model (material, size, shape, ambient (?)), but I'm not sure where to even start. A  shows the heat rise at a certain load, but not really how it gets there. I can't find a time-domain function for the temperature rise either. I'm tutoring high school students. I've always taught them that:     A charged particle moving without acceleration produces an electric as well as a magnetic field.   It produces an electric field because it's a charge particle. But when it is at rest, it doesn't produce a magnetic field. All of a sudden when it starts moving, it starts producing a magnetic field. Why? What happens to it when it starts moving? What makes it produce a magnetic field when it starts moving? Plot Summary/Details  A human spacecraft lands on an alien world.  I'm not sure if they are exploring, or touched down for repairs. The world is a foreboding place, and home to a vicious predator that somewhat resembles a panther, or other big terrestrial cat. The creature is quite cunning, and ambushes several crewmen when they are scouting the planet or doing some other activity that would have them isolated and away from the ship. It sticks in my mind the creature is very strong, and able to bite through the heavy spacesuits the men wear with ease.  The creature has an unusual nutritional requirement of some sort. As such, it doesn't eat its victims, but somehow drains them of a particular element or chemical substance. I can't remember what it is, though I think it had something to do with the skeletal structure of the men. Calcium, maybe?  I have only very general recollections of how the story ends/is resolved. The humans become aware of the threat, and I believe they ultimately slay the beast. I can't recall anything more specific than that, unfortunately.  Timeframe of Publication  This one is old, I'm sure of that. I can remember the writing style and some of the descriptions being very "old school" - spacemen, rocketship, that sort of thing. Almost like something you'd see in an old sci-fi movie serial, to use a film analogy. If I had to guess, I'd say 1950's at the latest.