Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

does file-based store means JMS client can not be remote? Please help me.  RSS feed

 
romario94
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peter Storch
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!