A structure of an XML document can be defined as follows:
- Document Type Definition (DTDs)
- XML Schema Definition (XSD)
- XML Data Reduced (XDR) -proprietary to Microsoft Technology
C:\Users\hliu\Documents>mklink /D "Banking Documents" "E:\backup\Banking Documents"
//List all schema: SELECT username FROM all_users ORDER BY username; //Drop table test_db drop user test_db cascade;
UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
FLUSH PRIVILEGES;
Now we have mysql good to go.
jmsTemplate.send(destination,
new MessageCreator()
{
public Message createMessage(Session session) throws JMSException
{
TextMessage message = session.createTextMessage("Hello, World!");
return message;
}
});
Here is how to receive a message in consumer bean.Message message = (Message) jmsTemplate.receive(destination);Here is the configuration for JmsTemplate and Destination
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="tcp://localhost:61616"/> </bean> <bean id="queue_destination" class="org.apache.activemq.command.ActiveMQQueue"> <constructor-arg index="0" value="BolunQueue"/> </bean>You are welcome!
@TransactionAttribute(NOT_SUPPORTED)
@Stateful
public class TransactionBean implements Transaction {
...
@TransactionAttribute(REQUIRES_NEW)
public void firstMethod() {...}
@TransactionAttribute(REQUIRED)
public void secondMethod() {...}
public void thirdMethod() {...}
public void fourthMethod() {...}
}
package packageA;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class HelloApp2
{
public static void main(String[] args)
{
ApplicationContext ctx = new ClassPathXmlApplicationContext("config.xml");
GreetingService greetingService = (GreetingService) ctx.getBean("greetingService");
greetingService.sayALotOfGreeting();
greetingService.theWinnderOfOscar();
greetingService.sayGreeting();
Lime iLime = (Lime) ctx.getBean("lime");
iLime.drink();
}
}
class Lime implements packageA.Lime
{
void drink()
{
print "Groovy not in line!"
}
}
package packageA;
import java.lang.reflect.Method;
import org.springframework.beans.factory.support.MethodReplacer;
public class WinnerInEnvelop implements MethodReplacer
{
public Object reimplement(Object arg0, Method arg1, Object[] arg2) throws Throwable
{
System.out.println("Samuel Bolun Liu");
return null;
}
}