我的 少年班保护国农民内ANHHGH
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
[color=red][/color]
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
package com.javaeye.jms.jboss;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.QueueSender;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class JbossNativeJmsImpl {
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp sender will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 apito get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> start the Producer[jms1.1 spec] by a session
* 6> get messege Object or initial it yourself by implements the messegeor
* it's sub interfaces
* 7> call sender or send it selfing
* 8> finallized the connection object or it will throw a warning to you!
*
* @param messege
* @throws NamingException
* @throws JMSException
*/
public void sendingProcessing(String messege) throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageProducer msgp = session.createProducer(dest);
QueueSender sender = (QueueSender) msgp;
TextMessage msg = session.createTextMessage();
msg.setText(messege);
sender.send(msg);
conn.close();
}
/**
* @author zuly
*
* following jms ptp domain, use an simple text message to test
*
* A jms ptp retriver will following the steps below!
* 1> get an ConnectionFactory use JNDI Lookup Or Initial it yourself
* 2> use this ConnectionFactory to start a jms connection
* [spec to jms 1.1 api to get the main idea of it ]
* 3> use connection to create a jms session
* 4> get a queue destination / messege agent
* 5> retrive a consumer from session
* 6> start the jms connection to retrivte the message
* 7> get message from consumer
*
* @return textMessege
* @throws NamingException
* @throws JMSException
*/
public String retriveingProcessing() throws NamingException, JMSException{
Context ctx = new InitialContext();
ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:JmsXA");
Connection conn = cf.createConnection();
Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = (Queue) ctx.lookup("queue/A");
MessageConsumer msgconsumer = session.createConsumer(dest);
//MessageListener ml = new JmsListenner();
//msgconsumer.setMessageListener(ml);
conn.start();
TextMessage msg = (TextMessage) msgconsumer.receive();
conn.close();
System.out.println("messege is" + msg.getText());
return msg.getText();
}
}
[color=red][/color]
相关推荐
中科大少年班创新班科创班 数学物理2015-2020历年真题解析,适用初三,高一,高二考少年班或创新班的真题解析
《中国科学技术大学少年班与创新班科创考试:数学物理历年真题详解》 中国的教育体系中,中国科学技术大学(简称中科大)的少年班和创新班一直是培养科技精英的重要平台,吸引了众多优秀青少年的目光。这份资料集合...
2021年中国科学技术大学少年班物理模拟1.docx
西安交大少年班入学考试试题.pdf
西交大少年班英语考试是为选拔具有英语语言运用能力的优秀青少年而设计的考试,它不仅要求考生掌握基础的英语语法和词汇知识,还要求他们具备理解语境、灵活运用语言的能力。该考试涵盖了英语听、说、读、写各方面...
【标题】和【描述】并未直接提供IT相关的知识点,而是关于电影《少年班》的观后感和影评。不过,我们可以从中提炼出一些普遍适用的生活智慧和价值观,这些也可以应用到个人发展和团队协作中,尤其是在IT行业中。 1....
中国科学技术大学(中国科大)的少年班课程以其严谨性和深度著称,其C语言数据结构PPT为我们提供了一个深入学习这门重要课程的宝贵资源。 在C语言中,数据结构是通过结构体和指针来实现的,它涉及到数组、链表、栈...
(含答案)西安交大少年班入学考试物理备考试题-----简单机械 功和能.doc
在传统故事的宝库中,少年闰土的形象以其鲜明的农民英雄特质,历久弥新地传递着勇敢与智慧的光芒。这份名为“少年闰土PPT模板:农民英雄的勇敢传奇”的演示文稿,不仅是对一位青年英雄成长历程的再现,更是对农民...
我是美德少年国旗下讲话稿3分钟.docx
为此,一份旨在教育青少年如何在遇到潜在危险时采取机智策略的PPT——《青少年自我保护安全常识PPT.ppt》——提供了丰富的案例与指导,帮助青少年了解如何在紧急情况下保护自己。 首先,面对抢劫等突发危险情况,...
本项目是一款以Java为主要开发语言的青少年TV保护系统设计源码,包含87个文件,其中包括76个Java源代码文件、3个YAML配置文件、1个Git忽略文件、1个LICENSE许可文件、1个Markdown文档、1个XML配置文件、1个SQL数据库...
当前青少年司法保护的提议.doc
所获荣誉/Honors:2020年01月东南大学2018-2019学年计算机科学与工程学院、软件学院、人工智能学院优秀学生2019年12月东南大学第六届大学生健
青少年儿C++编程PPT课件教程中小学生培训机构班教学60节课程体系青少年儿C++编程PPT课件教程中小学生培训机构班教学60节课程体系青少年儿C++编程PPT课件教程中小学生培训机构班教学60节课程体系青少年儿C++编程PPT...
特别是在民族地区,由于农民工的大规模回流,青少年教育问题日益凸显,成为了社会各界关注的焦点。本文将深入探讨民族地区农民工回流对青少年教育的影响,并提出相应的解决方案。 家庭教育是青少年成长的基石,是...
不久前,我有幸参加了一次少年领袖培训班,这是一次极为深刻且全面的个人发展体验。在这个培训班中,我们不仅学习了历史与孝道的重要性,还通过实践课程体验了团队合作的重要性,此外,我们还接受了有关审美观念的...
青少年是地球未来的守护者,他们的环保意识和行动对于环境保护至关重要。以下是一些青少年可以采取的具体措施,帮助他们理解并实践环保理念: 1. 废物再利用:鼓励青少年发挥创意,将废物转化为有用的物品。例如,...
少年宫篮球兴趣班教案.doc