This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected boolean doReceiveAndExecute(Object invoker, Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException { | |
if (status != null) { | |
TransactionInformation.txnStatus.set(status); | |
} | |
return super.doReceiveAndExecute(invoker, session, consumer, status); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<Object, Object> savedResources = new HashMap<>(); | |
Map<Object, Object> resources = TransactionSynchronizationManager.getResourceMap(); | |
if (resources != null) { | |
for (Map.Entry e : resources.entrySet()) { | |
savedResources.put(e.getKey(), e.getValue()); | |
TransactionSynchronizationManager.unbindResource(e.getKey()); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="greeting"> | |
<h1> Hello World! </h1> | |
</div> | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const element = | |
( | |
<h1 className="greeting"> | |
Hello, world! | |
</h1> | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const element = React.createElement( | |
'h1', | |
{className: 'greeting'}, | |
'Hello, world!' | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class Alice extends Component { | |
render() { | |
return ( | |
<div> | |
<h2> Hi, I am Alice </h2> | |
</div> | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Alice from './Alice'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="greeting"> | |
<h1> Hello World! </h1> | |
<Alice/> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Alice from './Alice'; | |
class App extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
greeting: "Hello World!" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Alice from './Alice'; | |
class App extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
greeting: "Hello World!", | |
parentMessage: "Hello Alice!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class Alice extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
greeting: props.newMsg | |
} | |
} |