Sun One message queue or IBM MQ: env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory"); env.put(Context.PROVIDER_URL, "file:///d:/mytemp"); This mean JMS client can not get the ConnentionFactory is JMS client is not in the same machine with the MQ, right? Please help me!!!Thanks.
If you want to store the Queue Definitions in the file system, then the filesystem context needs to be available for the clients too. Either by copying or by file sharing across the network access. But this is a bad idea. It's better to use an online JNDI context like the one included with the application server like WebSphere or use an LDAP server. Then you can use a configuration like this: initial.context.factory=com.ibm.websphere.naming.WsnInitialContextFactory provider.url=iiop://yourcompany.com:900 Now the client ask the WebSphere JNDI context via IIOP.
You guys haven't done this much, have ya? I suggest you study this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!