Wie eine Verbindung zu einem websphere Application Server 8.5, Message Queue, während Administrative Security " aktiviert ist

ich geschrieben habe ein kleines client-Testprogramm läuft gegen eine Websphere Applicationserver Nachricht Thema.
Alles Prima funktioniert.
Nun, wenn ich mich drehen, auf die administrative Sicherheit, die ich bekam eine Fehlermeldung.

Dass der code, den ich verwende.

public static void main(String[] args)
    {
    try {
    /**
    * Lookup connection factory object using jndi
    */
    System.out.println("* Looking up CF in jndi...");
    Hashtable env = new Hashtable();

    env.put(Context.PROVIDER_URL, "iiop://192.168.195.144:2809");
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");

    Context ctx = new InitialContext(env);

    TopicConnectionFactory fact=(TopicConnectionFactory)ctx.lookup("jms/Ttestsecure");
    TopicConnection connect = fact.createTopicConnection();
    TopicSession session=connect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    Topic topic=null;
    try
    {
        topic =(Topic) ctx.lookup("jms/Totestsecure");
        System.out.println(topic.getTopicName());

    }

Einer hier der Fehler, ich bin immer

Suchen, bis CF-jndi...
JSAS1480I: die Sicherheit ist nicht aktiviert, weil sterben ConfigURL-Eigenschaftendatei nicht definiert ist.
javax.die Benennung.NamingException: Fehler beim abrufen der WsnNameService Eigenschaften [Root exception is: org.omg.CORBA.TRANSIENT: initial weitergeleitet und IOR unzugänglich vmcid: IBM-Moll-code: E07 abgeschlossen: Nein]
bei com.ibm.ws.die Benennung.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1552)
bei com.ibm.ws.die Benennung.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1042)
bei com.ibm.ws.die Benennung.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:962)
bei com.ibm.ws.die Benennung.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:614)
bei com.ibm.ws.die Benennung.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
bei com.ibm.ws.die Benennung.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
bei com.ibm.ws.die Benennung.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
bei com.ibm.ws.die Benennung.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
bei javax.die Benennung.InitialContext.lookup(InitialContext.java:436)
bei testmsg.main(testmsg.java:31)
Verursacht durch: org.omg.CORBA.TRANSIENT: initial weitergeleitet und IOR unzugänglich vmcid: IBM-Moll-code: E07 abgeschlossen: Nein
bei com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1276)
bei com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1457)
bei com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1164)
bei com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1423)
bei com.ibm.rmi.corba.ClientDelegate.Anfrage(ClientDelegate.java:1886)
bei com.ibm.CORBA.iiop.ClientDelegate.Anfrage(ClientDelegate.java:1379)
bei org.omg.CORBA.tragbare.ObjectImpl._request(ObjectImpl.java:458)
bei com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
bei com.ibm.ws.die Benennung.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1549)
... 9 mehr
Verursacht durch: java.net.ConnectException: connect: Address is invalid on local machine, oder der Anschluss ist nicht gültig auf remote-Maschine
bei java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:381)
bei java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)
bei java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)
bei java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
bei java.net.Socket.connect(Socket.java:539)
bei com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:313)
bei com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:357)
bei com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
bei com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
bei com.ibm.rmi.iiop.TransportManager.bekommen(TransportManager.java:97)
bei com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
bei com.ibm.rmi.iiop.GIOPImpl.suchen Sie(GIOPImpl.java:219)
bei com.ibm.rmi.corba.ClientDelegate.suchen Sie(ClientDelegate.java:1983)
bei com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2008)
bei com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1186)
bei com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1272)
... 17 mehr
Ich bin nicht sehr vertraut mit der websphere-Server hat jemand einen Rat, was mache ich falsch ?
Ich habe nur eingeschaltet, die administrativen Sicherheits-Hinweis: die bus-Sicherheit.
Wenn ich an der Reihe ich aus allen Werken regelmäßig.

Dank für jeden Hinweis.

InformationsquelleAutor user1897869 | 2012-12-12

Schreibe einen Kommentar