Then i load the context like: jndiContext = new InitialContext(properties);
This works fine from a stand-alone app, if I change the java.naming.provider.url to an other machine it works fine.
But in a JSP-page it doesn't seems to a work. I do not got any error but I only connect to the locale machine even if I try with an other url value at the java.naming.provider.url.
So if any one know how to point the context to an other url please let me know.
Et nyt nationalt initiativ fra Industriens Fond, EIFO og Innovationsfonden – eksekveret af DTU Science Park og Teknologisk Institut– skal bygge bro mellem startups, SMV’er og Forsvaret.
The scenario is that the customer has got 2 platforms for different apps. One on WebLogic and one on WebSphere.
The Scenario is: Some event occurs in the WebLogic app. The WebSphere app need to be notified about this. The idea then is to push a message to a JMS-queue on the WebLogic app. The WebSphere app continueosly pulls theese messages.
For this I guess that we need to set up the JMS queue on the WebLogic, add messages to this queue. In some way set up the context at the WebSphere to point to the JMS queue at WebLogic to be able to pull theese messages.
To start with we just uses 2 WebLogic apps on 2 different machines. To manualy simulate this we have set all the code in a JSP-page. But for the "pulling" side it doesn't seems to take affect when we ty to change this property: java.naming.provider.url=t3://REMOTE_IP:7001/
Perhaps it is not allowed to change this context property?? Perhaps it belongs to the server application (WebLogic)??
JMS is just an interface - there must be an implementation behind
maybe IBM MQ
I think it would make sense to use a shared message queue (obvious shared to communicate), but declare it twice - once in WAS JNDI and once in WL JNDI and then each app server could look it up in its own JNDI without problems
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.