Java JNDI Weblogic dependencies and Example

Hello, I'd like help with this scenario:
- Oracle Weblogic 11g (Bea 10.3) in development environment
- JDeveloper 11g
- Oracle Database 11g
With Weblogic Console Administration:
- JNDI Name: jdbc-DATABASESCHEMA1
it connect file to Oracle Database 11g instance to schema DATABASESCHEMA1
Required example:
- Weblogic JAR files required to be imported in java sorcecode to connect with weblogic jdbc-DATABASESCHEMA1
- Way to see port used in Weblogic Serve for connection
- Java code to connect and make this simple SELECT:
SELECT SYSDATE FROM DUAL;
Regards.
Edited by: 911572 on 01-feb-2012 12:11

I appreciate your reply. I have some
          questions if we go this way:
          1. If we use JNDI and run the modified RMI service
          objects (not EJBs yet) in weblogic server, will we be
          getting the advantages the same way as for the EJBs,
          such as failover using the clustering technology for
          weblogic servers. Or failover only works for things
          running in the EJB container.
          2. If we use JNDI, does weblogic server handle service
          objects pooling? If yes, how. I would like to make
          sure the JNDI way will not perform worse than if we
          run the service objects at the RMI port.
          Thanks,
          Morris
          Adam Messinger wrote:
          > Morris,
          >
          > It is possible and it is what we recommend doing. You'll have to recompile
          > your RMI objects using weblogic.rmic.
          >
          > > If this is possible, then I have the following
          > > questions:
          >
          > > 1. Does weblogic server immediately support the use of
          > > JNDI after we install it? Or we will have to buy
          > > things like LDAP before we can use JNDI.
          >
          > It supports this sort of use right out of the box.
          >
          > > 2. Do you have any idea about the pros and cons on
          > > this approach (using JNDI to replace RMI)?
          >
          > You're still using RMI with this approach, just not the RMI registry.
          >
          > Cheers!
          >
          > Adam
          

Similar Messages

  • Weblogic.rmi and java.rmi

    Hi,
    I would like to use weblogic to access a java object on another machine that
    is using java.rmi. I am using the java "rmiregistry" on the non weblogic box.>
    How can I write a java program that maintains state to that object at weblogic
    startup and call it with a weblogic client?
    Thanks
    Desmond Anderson

    "Pyung Yoon" <[email protected]> writes:
    MediatorInterface mediator = (MediatorInterface) java.rmi.Naming.lookup("rmi://localhost:7001/TestMediator);This implies JRMP which the server does not support. You need to use t3 or iiop.
    andy

  • Any kind of integration experience with Weblogic JMS and Oracle AQ?

    Hi,
    In my company I work with java developers who believe in some kind of "holly" database independence I don't understand and as a result my life as a database developer is hell on earth.. Yesterday we again started to discuss, this time where to log, they believe database is slow and prefer logging to filesystem, after some hours finally I could convince them for some operational and reporting needs to use the database and will do this in an asyncronous way whiich they won't get slow. After all I believe the reason for a database is data, this is the place where data lives, and with the correct desing and implementation logging to database would perform better.
    I love Oracle features, and know that we paid a lot for this software, so today I started investigating this promised solution. And quickly I found AQ and JMS topics in the documentation :)
    After this introduction here is my problem; my company use BEA Weblogic as application server and the java guys want AQ to automatically (but of course with some delay) take their JMS log requests into database tables. Does any one have similar application experience, or any kind of integration experience with Weblogic JMS and Oracle AQ?
    Any comments, references, documentation, sample code, url will be most welcomed :)
    Thank you very much!
    Tonguc
    [email protected]
    References I found upto now;
    Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14291/toc.htm
    (Packages; javax.jms & oracle.jms)
    Oracle® Streams Advanced Queuing User's Guide and Reference 10g Release 2 (10.2) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14257/toc.htm
    Part IV
    Using Oracle JMS and Oracle Streams AQPart V describes how to use Oracle JMS and Oracle Streams Advanced Queuing (AQ).
    Chapter 11, "Introducing Oracle JMS"
    Chapter 12, "Oracle JMS Basic Operations"
    Chapter 13, "Oracle JMS Point-to-Point"
    Chapter 14, "Oracle JMS Publish/Subscribe"
    Chapter 15, "Oracle JMS Shared Interfaces"
    Chapter 16, "Oracle JMS Types Examples"
    A Sample Code from Otn
    http://www.oracle.com/technology/sample_code/tech/java/web_services/jmsws/NewsQueueEJB.java.html

    I wouldn't go as far to say Oracle AQ is out-dated today. However, it is indeed a proprietary technology that did not found much main-stream adoption in the earlier years after its introduction. The advent of JMS made it somewhat more useful (or should I say intriguing, because more people are trying to tie it together with other J2EE technologies), but the Oracle's JMS wrapper classes in aqapi.jar were not feature complete for a long while, so using it outside Oracle's application server was painful, if not impossible. I do agree that the info at the dev2dev's JMS newsgroup or in this forum is highly fragmented, as neither Oracle nor BEA provides an official solution to integrate AQ with WebLogic, so people like us have to learn the technology through experimentation and in a piecemeal fashion.
    3 years ago I was literally "playing around" - we had a polling mechanism set up to use triggers to write Oracle data changes into an event table, and had a Java-based daemon to scan that table and publish events as JMS messages to the WebLogic JMS server. This continues to work reliably till today, but I was looking for a solution that has few parts - I wanted to hook up my WebLogic MDB directly to AQ as a foreign JMS provider. Although I was able to get it to work (including XA), there were a few hoops I had to jump through, such as decompiling the Oracle AQjms classes to make them bind to the WebLogic JNDI tree.
    One year after that Diptanshu Parui took what I did a giant step further - he extended the Oracle AQjms classes to allow them to be bound to the WebLogic JNDI tree naturally, and he figured out how to use WebLogic JMS messging bridge to re-send single-threaded AQ JMS messages to clustered JMS queues, which allow concurrent message assumption by multiple instances of MDB's. My impression is that he is using that setup in a production environment.
    I am sure you are aware of it but I would like to make it clear - in order to use AQ as a foreign JMS provider to WebLogic-hosted MDB's, you don't need to update your database to Oracle 10g - Oracle 8i is good enough (although I recommend at least 9i Release 2). It is not the database engine, but rather the aqapi.jar JMS wrapper on top of AQ that matters. I do recommend that you use aqapi.jar from Oracle Application Server 10.0.3 or up for better XA support, among other things. Again, you don't have to replace WebLogic with Oracle AS - you only need a single jar file from it and put it in your WebLogic's classpath. However, I don't know what this means from a licensing point of view if you ever go to production - do you have to pay the full price of OracleAS or OC4J just to use the aqapi.jar?
    In the coming days I will test the latest aqapi.jar to see how much progress Oracle has made in terms of making their J2EE products more spec-compliant :-).
    Hope the above gives you a different perspective.
    Eric

  • How to identify the installed Weblogic Server and JDK are 32bit or 64bit?

    Hi everyone,
    I have a question ~
    Both Weblogic Server and JAVA JDK are installed on the server already, but I only know the Weblogic Server is 10.3.4.0 and JAVA JDK version is 1.6.0_25.
    I know the 64bit Weblogic Server installation file is a wlsXXXX_generic.jar package and 64bit JAVA JDK needed also.
    But, since the Weblogic installed already, there are no such installation files on the Linux Server now.
    I have tried the "java -version" for java version and check the Weblogic version from Weblogic console.
    How to identify the installed Weblogic Server and JDK are 32bit or 64bit with Linux command? Or is there any way to check it?

    What you can try to do is use WLST (or an MBean browser, such as JConsole or JRockit Mission Control) and connect to the adminserver.
    For example when using WLST:
    # set the environment by using setWLSEnv.sh (located in the ${WL_HOME}/server/bin directory).
    # start WLST by using: java weblogic.WLST
    # connect to the adminserver
    connect('adminusername','adminpassword');
    # change to the serverruntime environment
    serverRuntime();
    # show the attributes
    ls();
    # Here an attribute is shown called WebLogicVersion that shows the version of WebLogic
    -r--   WeblogicVersion                              WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638
    # Note that this does not show if is 32 bits or 64 bits to retrieve this information you have obtain the JVM version
    # change the directory
    cd('JVMRuntime/AdminServer');
    # show the attributes
    ls();
    -r--   Version                                      R28.0.1-21-133393-1.6.0_20-20100512-2126-linux-x86_64
    # when you have something like x86 at the you are running a 32 bit version, if you have something like x86_64 you are running a 64 bits versionAs mentioned above you can also retrieve this information by using a MBean browser.

  • /JOB/ DC - Java , J2EE **  Weblogic**, Sybase/oracle, Swing, Solaris/Unix, NT.

    All,
    Let me know if you're interested, I'll supply contact details
    =============================================
    A major financial services company in the D.C. area that
    is looking for Java developers with 5 + years experience
    in web dev/ internet technologies (Java 2 Certification
    strongly preferred ) and one or more of the following:
    Java , J2EE ** Weblogic**, Sybase/oracle, Swing, Solaris/Unix, NT.
    You will be responsible for defining and documenting
    requirements and developing solutions to business problems.
    Design Develop, upgrade, test, implement and document software
    components of client/server applications and/or internet/web
    based systems. Contribute to all phases of the software
    development cycle.
    =============================================
    Slava

    You have to create a datasource on WebLogicb with the JNDI name: jdbc/ADFDBDS
    The steps involved to create a datasource can be found here: http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/jdbc/jdbc_datasources/CreateDataSources.html

  • Weblogic.rmic and ant integration issue

    I am trying to call weblogic.rmic compiler through a ant script and was
    sucessful in doing so and generating the stubs and skelton for my RMI
    implementation.
    But i also want to pass a system property value (in the example i am passing
    file=stdout using -D to java) to weblogic.rmi compiler and don't know how to
    do that.
    Any help will be greatly appreciated...
    Thanks
    Kunjan Jhaveri
    781-372-3965
    [email protected]
    PS: Script enclosed.
    <target name="local.genStubs" depends="local.compile">
    <java classname="weblogic.rmic" fork="yes" failonerror="yes">
    <jvmarg value="-Dfile=stdout" />
    <arg value="-classpath" />
    <arg value="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    <arg value="-d" />
    <arg value="${SRCDIR}${file.separator}build${file.separator}classes" />
    <arg value="com.ehealthdirect.ee.kernel.EEMutexManagerImpl" />
    <classpath>
    <pathelement
    path="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    </classpath>
    </java>
    </target>

    As far as I know, rmic doesn't know anything about a "file" system property. Is
    there some reason you expect this to do something special?
    Kunjan Jhaveri wrote:
    I am trying to call weblogic.rmic compiler through a ant script and was
    sucessful in doing so and generating the stubs and skelton for my RMI
    implementation.
    But i also want to pass a system property value (in the example i am passing
    file=stdout using -D to java) to weblogic.rmi compiler and don't know how to
    do that.
    Any help will be greatly appreciated...
    Thanks
    Kunjan Jhaveri
    781-372-3965
    [email protected]
    PS: Script enclosed.
    <target name="local.genStubs" depends="local.compile">
    <java classname="weblogic.rmic" fork="yes" failonerror="yes">
    <jvmarg value="-Dfile=stdout" />
    <arg value="-classpath" />
    <arg value="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    <arg value="-d" />
    <arg value="${SRCDIR}${file.separator}build${file.separator}classes" />
    <arg value="com.ehealthdirect.ee.kernel.EEMutexManagerImpl" />
    <classpath>
    <pathelement
    path="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    </classpath>
    </java>
    </target>

  • Java JNDI Search method performance

    Hi,
    My requirement is i have more than 10 unique values for single a attribute. i need to retrieve all 10 records mathing it from LDAP using Java JNDI. But in LDAP there are more than 100 unique record in LDAP i need only 10 record that mathes my values.
    For example the attribute ou in LDAP has 10 unique values. the values could be retrieved in two ways
    Method one: Single Search
    I could use a single search to LDAP with all the 10 values in filters
    and retrieve all the value
    Ex:
    String filter = "(|(ou=1)(ou=2)(ou=3)(ou=4)(ou=5)(ou=6)(ou=7)(ou=8)(ou=9)(ou=10))";
    NamingEnumeration answer = ctx.search(BASE_SEARCH, filter, ctls);
    Method Two: Multiple Search
    I could use a multiple search to LDAP for each value of ou
    Ex:
    String[] inputou ={"ou=1","ou=2","ou=3","ou=4","ou=5","ou=6","ou=7","ou=8","ou=9","ou=10"};
    int inputSize=inputou.length;
    for (int j=0;j<inputSize;j++){
    Attributes matchattribs = new BasicAttributes(true);
    matchattribs.put(new BasicAttribute("ou", inputou[j]));
    NamingEnumeration answer2 = ctx.search(BASE_SEARCH,
                   matchattribs, returnAttrs);
    Query:
    which method is more efficient single search or multiple search.
    is it efficient to have mutiple search based on one specific ou or it is efficient to have single search with multiple ou using OR clause.
    is it less efficient when executing an OR clause and searching with multiple ou.
    Thanks

    Hi,
    They are equivalent becuase second method does not use a filter and for each iteration it creates new mathcing attributtes and executed the search to LDAP. My query is in method one the number of hit to LDAP is one in second method the number of hit to LDAP is 10 based on the number of ou.
    I have checked this program and tracked through System.currentTimeMillis() using more than 1000 ou's. the time taken for method one is 3.2306666 mins and the time taken for method two is 4.61735. so it is clear that method one is more efficient in terms of time but still i need more detail answer because some say using OR clause in filter is less efficient than using ou=1.
    Thanks

  • wlst vs java classname="weblogic.WLST" which one is preferred?

    Hi,
    I have recently started working with weblogic 10gR3 and came across examples to invoke wlst scripts from ANT.
    Since there are two approaches i would like to know the difference and which one is preferred. I have so far seen more examples of <java classname="weblogic.WLST"> then <wlst>. In my personal experience i find it more convenient to invoke python script using weblogic.WLST option.
    any comments?
    thanks
    salman

    Hello Lance,
    I will try to reproduce it on my side and see if I can reproduce, until then use the shutdown() method on the server runtime MBean as workaround.
    Thanks,
    -satya

  • Unable To lookup .... weblogic.jobscheduler  and  web-xml resource ref

    Unable To lookup .... weblogic.jobscheduler and web-xml resource ref for timer manager
    JNDI NameNotFound Exception ....
    Do, i need to configure something get that working.
    Didn't find any thing on documentation or hosted examples.

    The default timermanager can be refered to as follows:
    <resource-ref>
        <res-ref-name>tm/default</res-ref-name>
        <res-type>commonj.timers.TimerManager</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>http://middlewaremagic.com/weblogic/?p=5569

  • Weblogic 6.1 example/security/sslclient jsseWLS.bat does not work

    I try to run the weblogic 6.1 example under the examples\security\sslclient.
    I follow the instruction and setup the server.
    wlsWLS.bat is working fine.
    but jsseWLS.bat is not working
    It gives back following error.
    ===== in jsseURLConnect =====
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTP connection using JDK client classes -
    http://localhost:80/examplesWebApp/SnoopServlet.jsp
    ====Permission =(java.net.SocketPermission localhost:80 connect,resolve)
    ===== inside tryConnection
    Connection refused: connectjava.net.ConnectException: Connection refused: connec
    t
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
    at sun.net.www.http.HttpClient.New(HttpClient.java:289)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:408)
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    05)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTPS connection using JDK client classes -
    https://localhost:443/examplesWebApp/SnoopServlet.jsp
    sconnection instanceof com.sun.net.ssl.HttpsURLConnection
    using a com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection
    ===== inside tryConnection
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at javax.net.ssl.SSLSocket.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>([DashoPro-V1.2-1201
    98])
    at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
    shoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
    [DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
    .2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoP
    ro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
    t([DashoPro-V1.2-120198])
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    30)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    Connection refused: connect----
    Does anyone know what happens..
    i would appreciate if i get some code snippets or url pointers.
    Thanks.
    --Michael W.

    I try to run the weblogic 6.1 example under the examples\security\sslclient.
    I follow the instruction and setup the server.
    wlsWLS.bat is working fine.
    but jsseWLS.bat is not working
    It gives back following error.
    ===== in jsseURLConnect =====
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTP connection using JDK client classes -
    http://localhost:80/examplesWebApp/SnoopServlet.jsp
    ====Permission =(java.net.SocketPermission localhost:80 connect,resolve)
    ===== inside tryConnection
    Connection refused: connectjava.net.ConnectException: Connection refused: connec
    t
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
    at sun.net.www.http.HttpClient.New(HttpClient.java:289)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:408)
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    05)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTPS connection using JDK client classes -
    https://localhost:443/examplesWebApp/SnoopServlet.jsp
    sconnection instanceof com.sun.net.ssl.HttpsURLConnection
    using a com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection
    ===== inside tryConnection
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at javax.net.ssl.SSLSocket.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>([DashoPro-V1.2-1201
    98])
    at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
    shoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
    [DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
    .2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoP
    ro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
    t([DashoPro-V1.2-120198])
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    30)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    Connection refused: connect----
    Does anyone know what happens..
    i would appreciate if i get some code snippets or url pointers.
    Thanks.
    --Michael W.

  • InterMedia Java Classes for Servlets and JSPs and Netscape

    I am using the interMedia Java Classes for Servlets and JSPs to upload and retrieve multimedia data. I have found that it is much more performant in Internet Explorer (5.5) than in Netscape Communicator (4.7). In fact, I cannot upload images larger than 10K at all using netscape. However, the same image can be uploaded into the same application using IE. Is this a known issue?
    Thanks in advance.

    Hi,
    We have successfully uploaded multimedia data in the giga-byte range (Quicktime and AVI files) at the same speed with both the Netscape (4.7n) and MS IE (4.n and 5.n) browsers. One thing we have noticed is that its very important to set the manual proxy settings correctly if you have an environment with a proxy server. If you don't, then uploads can go via the proxy server and, for some reason, that seems to take considerably longer. For example, suppose you are in the www.xyzco.com domain and are connecting to a host named webserver.www.xyzco.com, then specify webserver and webserver.www.xyzco.com (to cover both cases) in the "Do not use proxy servers for..." box in the manual proxy server configuration screen. Also, if you're using a tool such as JDeveloper that uses the host IP address in the debugger environment, then you also need to add the numeric-based (nnn.nnn.nnn.nnn) IP address to this list.
    Hope this helps.
    In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, and how you are developing and deploying your application. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected] Thank you!
    Regards,
    Simon
    null

  • Capturing weblogic username and password for use in my console extension

    Hi,
    I have developed a console extension as a war file and it needs to capture the Weblogic username and password so internally it can use the class MBeanServerConnection that needs these during connection. I have therefore created the standard <login-config> <auth-method>FORM</auth-method> ... stuff in the web.xml to output a logon.jsp when my war is accessed in the hope of capturing username and password. My intention is that these would appear in addition to the standard logon that appears when the Weblogic console is 1st accessed.
    However, my console extension logon.jsp does not appear and I think it’s because there is only one logon needed and this is when the main Weblogic console is accessed because my console extension is subordinate to the main Weblogic console.
    Therefore, how can I get my console extension logon.jsp to appear so I can capture the Weblogic username and password?
    Thanks,
    Dave.

    One approach that might work is to write a look and feel console extension that modifies the console's login jsp (vs trying to have a second login jsp).
    http://download.oracle.com/docs/cd/E15523_01/web.1111/e13745/rebrand.htm#i1070459 describes how to write look and feel extensions.
    Basically, you instantiate the look and feel extension template, hand-edit login/LoginForm.jsp, then build and deploy the extension.
    One tricky part is figuring out how to pre-compile the jsps. Here's part of a build script I've used for look and feel extensions. Let me know if you need a sample look and feel extension.
    <project name="sample-look-and-feel" default="build">
    <dirname property="this.dir" file="${ant.file.sample-look-and-feel}" />
    <property environment="env" />
    <property name="src.dir" value="${this.dir}/src" />
    <property name="build.dir" value="${this.dir}/build" />
    <property name="webapp.dir" value="${build.dir}/webapp" />
    <property name="jspc.dir" value="${build.dir}/jspc" />
    <property name="samplename" value="sample-look-and-feel" />
    <property name="wlhome.dir" value="${env.WL_HOME}" />
    <property name="consoleapp.dir" value="${wlhome.dir}/server/lib/consoleapp" />
    <property name="deployment" value="${build.dir}/${samplename}.war" />
    <target name="build">
    <!--
    Make a temporary directory that we will compile the jsps from.
    It includes the console's web.xml (which has the jspc configuration),
    the sample's jsps, and any console taglibs the sample's jsps use.
    -->
    <copy todir="${jspc.dir}">
    <fileset dir="${consoleapp.dir}/webapp">
    <include name="**/struts.jar" />
    <include name="**/standard.jar" />
    <include name="**/beehive-netui-tags.jar" />
    <include name="**/skeleton_taglib.jar" />
    <include name="**/render_taglib.jar" />
    <include name="**/l10n_taglib.jar" />
    <include name="**/*.tld" />
    <include name="**/web.xml" />
    </fileset>
    <fileset dir="${webapp.dir}">
    <include name="**/*.jsp" />
    </fileset>
    </copy>
    <!--
    Compile the jsps out of the temporary directory.
    Put the generate files into the extension's wabapp.
    -->
    <java classname="weblogic.servlet.jsp.jspc20" fork="true" failonerror="false">
    <arg line="-noexit" />
    <arg line="-d ${webapp.dir}/WEB-INF/classes" />
    <arg line="-webapp ${jspc.dir}" />
    <!--
    <arg line="-verboseJspc"/>
    <arg line="-debug"/>
    <arg line="-keepgenerated"/>
    -->
    <classpath>
    <pathelement path="${wlhome.dir}/server/lib/wlw-langx.jar" />
    <fileset dir="${consoleapp.dir}/APP-INF/lib">
    <include name="*.jar" />
    </fileset>
    <fileset dir="${consoleapp.dir}/webapp/WEB-INF/lib">
    <include name="*.jar" />
    </fileset>
    <pathelement path="${java.class.path}" />
    </classpath>
    </java>
    <!-- Remove the temporary directory now that we're done with it. -->
    <delete dir="${jspc.dir}" />
    <!-- Package the extension -->
    <jar destfile="${deployment}" basedir="${webapp.dir}" />
    <!-- remove the webapp directory now that the webapp is built -->
    <delete dir="${webapp.dir}" />
    </target>
    </project>

  • Difference between Oracle Weblogic Administration and Ofm Soa Admin

    Hi,
    what is the difference between Oracle Weblogic Administration and Oracle Fusion Soa Weblogic server Administration?
    pls help me anyone, i want to learn weblogic Administration, but having some confusions..........
    thanks,

    The below is just for your reference. Actual content may vary....
    Weblogic Administration:
    Manage a WebLogic Server installation.
    To install weblogic server in one or multiple instances
    Installing on single or multiple physical machines
    How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
    How to do runtime configuration for your applications.
    How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.
    Install and Configure WebCache 11g as Load Balancer
    and Much more..
    OFM SOA Administrator:
    Manage a WebLogic Server installation (Administration Server and Managed Server).
    To install weblogic server in one or multiple instances
    Installing on single or multiple physical machines
    How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
    How to do runtime configuration for your applications.
    How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.
    and
    File System and Directory Structure in Fusion Middleware
    Installing Oracle Database, Configuring RCU, weblogic server and SOA Suite.
    Deploying SOA Applications.
    Deploying and Undeploying Java EE Applications
    Configuring Node Manager and starting Managed Servers using Node Manager
    Monitoring OFM Server, admin server, managed server and composites
    Configuring HA and Security (Creating users, assigning responsibilities)
    Monitoring performance of SOA composites
    Install and Configure WebCache 11g as Load Balancer
    and much more..
    Thanks,
    Vijay

  • JMSML - XML Based Mark-Up Language for BEA WebLogic JMS and JMX

              JMSML is a Mark-Up language designed and developed to make Java Messaging Service
              (JMS) and Java Management Extensions (JMX) programming easy by hiding all the
              JMS and JMX Java API complexity behind a few, simple, easy to use XML tags.
              Both the White Paper and the binary download are available in dev2dev.beasys.com
              at the link below:
              http://dev2dev.beasys.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
              Regards
              [email protected]
              

    Hi,
    I finally managed to post a message to ActiveMQ 5.4.2 from WLS 10.3. I created a foreign JMS Server in WLS. I am not sure if you still have this issue, but I was facing this problem and managed to resolve it so posting the reply!
    I placed the activemq-all-5.4.2.jar file in WLS server classpath.
    The settings I used for the Foreign Server are:
    General tab
    JNDI Initial Context Factory: org.apache.activemq.jndi.ActiveMQInitialContextFactory
    JNDI Connection URL: tcp://localhost:61616
    Destinations Tab
    Name: TestQueue
    Local JNDI Name: TestQueue
    Remote JNDI Name: dynamicQueues/TestQueue (I tried with a normal queue, but it didn't work. So used dynamicQueues here. Will try with other queue also)
    Connection Factories Tab
    Name: AMQConnectionFactory (
    Local JNDI Name: AMQConnectionFactory
    Remote JNDI Name: ConnectionFactory (This is default name given by Active MQ, you can change by adding names in jndi.properties file and placing it in config folder of ActiveMQ installation. Please check here: http://activemq.apache.org/jndi-support.html)
    Using this configuration I was able to post message to ActiveMQ queue from Oracle Service Bus. One more issue to be taken care is that if the message type is not "Text" then the message body was coming as blank in ActiveMQ. So set the message type as "Text" explicitly.

  • WebLogic JMS and MQ JMS Mix

              I am writing a bean that reads a message from MQ (using MQJMS) and then write it
              onto a WebLogic JMS ( something lika a bridge). However I don't want to use bridge.
              Question/Problem Statement:
              Once I include mq jms jar files in class path. Would that in conflict with WebLogic
              JMS. How do in my program I make sure that it is using the MQ or WLS JMS implementation.
              I can have InitialContext() setup for mq in File and for WebLogic it is WebLogic's
              Initial Context. Thats is the only thing that I can tell in the program.
              Basically, I am trying to see what will make it ( fully qualified JMS Objects
              or what) decide which implmenatation to use.
              Chris
              

    The WebLogic JMS and MQSeries JMS classes won't conflict. Each JMS provider
              provides different classes that implement the same interfaces, so you can
              have a whole bunch of providers in your classpath and things should be OK.
              Most code that's written to the JMS API (including the code inside WLS that
              receives messages for MDBs) gets the JMS "ConnectionFactory" via JNDI, and
              uses that to create the other objects. (It also has to look up the
              "Destination" objects from JNDI.) When you code to the JMS standard only,
              then the only thing that "tells" your program which provider is being used
              is the ConnectionFactory class that you create or get out of JNDI.
              Below is my usual plug for the white paper that helps explain some of this
              stuff:
              http://dev2dev.bea.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
              Look for "Using foreign JMS provdiesr with WLS".
              greg
              "Chris" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am writing a bean that reads a message from MQ (using MQJMS) and then
              write it
              > onto a WebLogic JMS ( something lika a bridge). However I don't want to
              use bridge.
              >
              > Question/Problem Statement:
              > Once I include mq jms jar files in class path. Would that in conflict with
              WebLogic
              > JMS. How do in my program I make sure that it is using the MQ or WLS JMS
              implementation.
              > I can have InitialContext() setup for mq in File and for WebLogic it is
              WebLogic's
              > Initial Context. Thats is the only thing that I can tell in the program.
              >
              > Basically, I am trying to see what will make it ( fully qualified JMS
              Objects
              > or what) decide which implmenatation to use.
              >
              > Chris
              

Maybe you are looking for

  • Deploy ADF application to standalone OC4J 11g

    Hi people! I found some threads into the forums that deal with the subject but I did not find any solution, so I post a new thread... In fact, I'd like to deploy a "war" on a standalone oc4j 11g. The application was built with jdev 11g TP4. I can't u

  • MacBook Pro, Alesis Monitor One MK2 Speakers, now what?!?!

    OK, dumb question alert - I'm editing using Final Cut Pro on my MacBook and was told I should look into a pair of studio monitors.  Heard good things about the Alesis Monitor One MK2 speakers and decided to dive in.  I knew that I would need cables t

  • HTML view does not load first time?

    All, I have two HTML views on my Visual Composer model which both have 'Start' connectors going into them with the URL's defined (and correct), but when the page first loads the HTML views just show as gray boxes. To get the HTML views to display the

  • SAP failover clustering on windows 2008 r2.

    Dear Expert, I want to configure SAP failover clustering for Production Server. I hard sum questions 1. How to configure SAP failover clustering on server? 2. What is server requirement for SAP failover clustering? 3. What is prerequisites? We are do

  • Does Java SDK V1.4.2 Support Unicode 4.0

    Hi all: I want to develop a java application to handle some difficult traditional Chinese in WinXP. The Chinese word may contains more than 20000 difficult words. And this maybe use Unicode 4.0. I know WinXP support Unicode 4.0. Due to some reason, I