Will JDNI how configuration? Need to install what things?

Category: Java SE
 
xhnok
2009-10-26 12:13:19

Sponsored Links
Will JDNI how configuration? Need to install what things?

Sponsored Links

accpt861
2009-10-26 12:46:27

aijiao1984
2009-10-26 01:22:57
In case you configure it! ! weblogic????
a042221365
2009-10-26 01:43:22
If you have installed weblogic, websphere, which has been integrated jndi service. You can call on it
handanfengkongliang
2009-10-26 02:13:40
Thank
weblogic and IBM MQ, I do not know how MQ configuration?
yi5031
2009-10-26 02:39:01
Thank
installed weblogic and IBM ; MQ, I do not know how MQ configuration?
ddyyssee
2009-10-26 02:55:52
For example, I use JMS:

javax.jms.QueueConnectionFactory qconFa = null;
javax.jms.QueueConnection qcon;
javax.jms.QueueSession qses;
javax.jms.QueueSender qsend;
javax.jms.Queue que;
javax.jms. TextMessage msg;
javax.naming.Context ctx = null;

Properties env = new ; Properties ();

...

qconFa = (QueueConnectionFactory) ctx.lookup (this . jTextField1.getText (). trim ());
/ / I should enter something here? how configuration?

qcon = qconFa.createQueueConnection ();
qses = qcon.createQueueSession (false, Session.AUTO_ACKNOWLEDGE);

que = ( Queue) ctx.lookup ("postcard");

qsend = qses.createSender (que);
msg = qses.createTextMessage ();
msg.setText ("duandddddddd");

qcon.start () ;
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.