[JBoss-user] [EJB/JBoss] - Re: How Can I dynimicly load a Class in Session Bean (Statel
Maybe I should read jboss4.0 src? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861522#3861522 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861522 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - How Can I dynimicly load a Class in Session Bean (Stateless
I encounter a problem. I should dynimicly load classes in a EJB. I read xml file and parse it ,then I can get a class name---I have packaged the class and the xml file into the ejb's jar file. I can get the file as a inputStream by Class.getResourceAsInputStream. But later,when I load the class by Class.forname(className), the CalssNotFoundException is threw. I change classloader to Thread.currentThread().getContextClassLoader() ,but the same exception it threw. Can you give some advice or help? Thanks you. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861507#3861507 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861507 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: how can I add mysql jdbc driver to ejb?
you can put the mysql-driver at /jboss/server/default/lib. Or put it /jboss/lib . View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861511#3861511 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861511 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: How Can I dynimicly load a Class in Session Bean (Statel
The appliction Server is Jboss4.0. JDK is 1.42_05. I need your help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861508#3861508 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861508 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
Thank you,everyone. The problem has resovled. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822487#3822487 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822487 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How can I use JMS in JBoss?
Thank you everyone. This morning,I success. I use JBoss4.0. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822486#3822486 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822486 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
Queue name is A javax.naming.NameNotFoundException: ConnectionFactory not bound at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507) at javax.naming.InitialContext.lookup(InitialContext.java:350) at simple.SimpleQueueReceiver.main(SimpleQueueReceiver.java:69) This is the error message when it runs. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822480#3822480 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822480 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How can I use JMS in JBoss?
"pilhuhn" wrote : Helping you needs some time and as time is money, this also needs some money ... what now? | | There are lots of examples around on using JMS. Also there are at least a hundered posts on jboss-users wrt JMS. | | And btw.: buying the admin guide once is even cheaper than buying the subscription. | | The for-free quickstart quide also has a chapter on JMS. yes. The for-free quickstart quide also has a chapter on JMS.I have read it after download it.but it is no help.Most concept I already known.I have run SUN's example code use j2eesdk1.3.1.I want to run the example in JBoss, and when I want to look a ConnectionFactory JNDI Name ,I do not what I can use. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822479#3822479 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822479 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
Up is my JMS reciever. I known there is a default Queue named "A".But How can I get ConnectionFactory?Is there a JNDI name I can use and what is it? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822478#3822478 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822478 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
package simple; import javax.jms.*; import javax.naming.*; public class SimpleQueueReceiver { public static void main(String[] args) { String queueName = "A"; Context jndiContext = null; QueueConnectionFactory queueConnectionFactory = null; QueueConnection queueConnection = null; QueueSessionqueueSession = null; Queue queue = null; QueueReceiver queueReceiver = null; TextMessage message = null; System.out.println("Queue name is " + queueName); try { // jndiContext = new InitialContext(); java.util.Hashtable JNDIParm = new java.util.Hashtable(); JNDIParm.put(Context.PROVIDER_URL, "localhost"); JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); jndiContext = new InitialContext(JNDIParm); queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("ConnectionFactory "); queue = (Queue) jndiContext.lookup(queueName); queueConnection = queueConnectionFactory.createQueueConnection(); queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); queueReceiver = queueSession.createReceiver(queue); queueConnection.start(); while (true) { Message m = queueReceiver.receive(1); if (m != null) { if (m instanceof TextMessage) { message = (TextMessage) m; System.out.println("Reading message: " + message.getText()); } else { break; } } } } catch (Exception e) { e.printStackTrace(); } finally { if (queueConnection != null) { try { queueConnection.close(); } catch (JMSException e) {} } } } } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822477#3822477 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822477 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
to Adrian: I run my program while JBoss is running. but it still does not work. Follow is JNDIContext: java.util.Hashtable JNDIParm = new java.util.Hashtable(); JNDIParm.put(Context.PROVIDER_URL, "localhost"); JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); jndiContext = new InitialContext(JNDIParm); when I use it to look up EntityBean,it runs well. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822476#3822476 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822476 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
the result of look UIL2ConnectionFactory is JNDI API lookup failed: javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound. Maybe I think the JNDI name is in a file? but I can't fiind it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822279#3822279 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822279 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
JBossMQProvider when my program run, it throws an exception, JNDI API lookup failed: javax.naming.NameNotFoundException: JBossMQProvider not bound who can Help? thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822241#3822241 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822241 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How Can I get a ConnectionFactory using JMS with JBoss?
My code is below: try { java.util.Hashtable JNDIParm = new java.util.Hashtable(); JNDIParm.put(Context.PROVIDER_URL, "localhost"); JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); jndiContext = new InitialContext(JNDIParm); } catch (NamingException e) { System.out.println("Could not create JNDI API " + "context: " + e.toString()); System.exit(1); } try { queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("JBossMQProvider"); queue = (Queue) jndiContext.lookup(queueName); } catch (NamingException e) { System.out.println("JNDI API lookup failed: " + e.toString()); System.exit(1); } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822237#3822237 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822237 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - How Can I get a ConnectionFactory using JMS with JBoss?
HI.Thank you . this time I am in another trouble. How to get a ConnectionFactory? In the jboss_home/server/default/deploy/jms/ directory,there is a file named jms-ds.xml, there is a tag named , and a tag named " " . Is this a ConnectionFactory JNDI name? who can tell me? Thak you . View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822236#3822236 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822236 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Help on JMS for JBOSS
I encouter a new problem now. I don't know how to create or get one ConnectionFactory with Jss? Using SUN's J2EESDK1.3,I can create connectionFactory like this: j2eeadmin -addJmsFactory jndi_name queue j2eeadmin -addJmsFactory jndi_name topic waiting... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822235#3822235 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822235 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: nedd A simple example of JMS using JBoss,who can Help me
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821918#3821918 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821918 I can not afford it . thank you all the same :) --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: nedd A simple example of JMS using JBoss,who can Help me
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821909#3821909 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821909 [EMAIL PROTECTED],Maybe you will give some help? --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - nedd A simple example of JMS using JBoss,who can Help me?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821907#3821907 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821907 HI,Experts here. I am in trouble now with JMS. I can work using sun's jms_tutorial, but when turn to Jboss, it does not work now. I need a simple example. who can I help me ? Thanks a lot. Waiting .. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How can I use JMS in JBoss?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821906#3821906 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821906 But that needs some money and I am not so rich ,can not afford it. Maybe an example will be more help. who can Help me ? --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How can I use JMS in JBoss?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821337#3821337 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821337 to ivelin: http://jboss.org/docs/inde but it is a invalid URL Can you give more detail? --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How can I use JMS in JBoss?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821336#3821336 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821336 thanks a lot ,ivelin. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - How can I use JMS in JBoss?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821327#3821327 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821327 HI,Everyone.These days I am boring for a problem:How to use JMS in Jboss? I download jms_tutorial from sun.com,And use it as the documents describe.it is success.I can see the very result from console. Then I turn to Jboss,However I work hard ,it failed. who can help me ? if a simple example,it will be better. Thank you . waiting.. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user