[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Docs\examples\ejb\simplemessage
Hi there, the JNDI Port (default 1099) is specified in your servers conf directory in the file jboss-service.xml. I had to change that due to conflicts with my virus protection software. Rgds Jens View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861624#3861624 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861624 --- 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: Docs\examples\ejb\simplemessage
Here is my jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming.client j2ee.clientName=si.avris.prevoznik.SimpleMessageClient But in the mean time I have the solution. Look to the previous client code: connectionFactory = (ConnectionFactory) jndiContext.lookup("jms/QueueConnectionFactory"); | destination = (Queue) jndiContext.lookup("avrisQueue"); | The working version has queue/avrisQueue instead of avrisQueue: connectionFactory = (ConnectionFactory) jndiContext.lookup("jms/QueueConnectionFactory"); | destination = (Queue) jndiContext.lookup("queue/avrisQueue"); And now it works. I think my example (client running outside JBoss and MDB running within JBoss) is more common for real situations where one programmer works on client code while another one works on the EJB code. I have one more question. I have seen examples where people use jndi properties in different ways. My setting is the default one (from Getting started example): java.naming.provider.url=jnp://localhost:1099 Where on the JBoss is the port 1099 specified? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861530#3861530 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861530 --- 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: Docs\examples\ejb\simplemessage
What is your JNDI conf. on your client? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861527#3861527 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861527 --- 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: Docs\examples\ejb\simplemessage
Here are also my configuration files: CLIENT: jboss-client.xml: | SimpleMessageClient | | | jms/QueueConnectionFactory | XAConnectionFactory | | | | jms/QueueName | queue/avrisQueue | | | application-client.xml: MyAppClient | | | jms/QueueConnectionFactory | javax.jms.ConnectionFactory | Container | Shareable | | | | jms/QueueName | javax.jms.Queue | | MDB: jboss.xml: | | | SimpleMessageEJB | queue/avrisQueue | | | | ejb-jar.xml: | SimpleMessageJAR | | | | SimpleMessageEJB | SimpleMessageEJB | si.avris.centrala.MessageBean | Container | | javax.jms.Queue | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861342#3861342 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861342 --- 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