JMS/AQ inside Oracle 9i is slow?

Hi.
I have a trigger inside the Oracle 9i DB that calls a java stored procedure. The procedure sets up a JMS connection and publishes a message to all the subscribers but this takes 1-3 seconds. I need a close to real-time solution. Is there any way of speeding this up? Here is my code:
Topic topic;
TopicSession tsess = null;
TopicConnectionFactory tcfact =null;
TopicConnection tconn =null;
TopicPublisher publisher = null;
TextMessage txtmsg, dtxtmsg;
try
OracleDriver ora = new OracleDriver();
tconn = AQjmsTopicConnectionFactory.createTopicConnection(ora.defaultConnection());
/* Create a Topic Session */
tsess = tconn.createTopicSession(true, Session.AUTO_ACKNOWLEDGE);
tconn.start() ;
topic = ((AQjmsSession)tsess).getTopic("ts","tstopic") ;
publisher = tsess.createPublisher(topic);
txtmsg = tsess.createTextMessage() ;
txtmsg.setText("New alarm") ;
txtmsg.setStringProperty("alarmID", "id") ;
txtmsg.setStringProperty("Date", "None") ;
publisher.publish(topic, txtmsg) ;
tsess.commit() ;
return "success";
} catch (Exception e) {
System.out.println("Error in performJmsOperations: " + e) ;
return e.getMessage();
finally
try
tconn.close();
catch(Exception e)
e.printStackTrace();
}

Here's some more info
Re: Problems mapping CMP to another schema table

Similar Messages

  • How to send JMS message from oracle to weblogic

    Hello,
    I am facing with a problem of sending jms message from oracle to weblogic. I am using oracle 10g and weblogic server 9.1. Here is the problem. I would like to create a trigger to send JMS message to weblogic server whenever there is an update in oracle database. So I created a java class that will send a jms message to weblogic server. But in that class I use the jndi from weblogic: weblogic.jndi.WLInitialContextFactory
    when I use the loadjava utility to load that class into oracle, the status of that class is invalid though this class is working fine in eclipse with the weblogic.jar included. I was thinking because the jndi from weblogic needs the weblogic.jar in order to work, then I loaded that jar file into oracle (it took about 20 minute to load everything) and everything loaded into oracle from that jar file is invalid and missing some reference.
    So my question is: how do I send a jms message from oracle to weblogic using a java class with the right jndi?
    Any help will be appreciated.
    Thanks
    TL

    It should be quite straightforward to do this. As stated you need weblogic.jar in your classpath, then use 100% standard JMS calls to publish.
    Ensure that you set the following properties before getting your initial context:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://node:7001 (or whatever)
    this will ensure that the correct JMS implementation classes are invoked.
    You can't easily (without some mucking around) build a test implementation in an AQ environment and then deploy to WebLogic because in AQ you don't tend to use JNDI lookups (unless you've implemented oracle JNDI etc) but rather use non standard factory class to create connections etc.

  • I want store JMS queue in oracle database..

    Hi all,
    I want store JMS queue in oracle database..
    How can i configure my jboss 3.0.1
    Thanks,
    Thilsen

    Oracle provides this functionality with Advanced Queues
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96587/qintro.htm
    Although the API is JMS-compliant, the administration can be quite burdensome.

  • SSL certificates and Web Services Usage inside Oracle Database Questions!

    We have implemented a specific business logic using PL/SQL for our client, so we open a file and process each line of this, doing something in the Database and also call a Web Services (Service1) using UTL_HTTP package. Service1 runs in a Windows 2008 Server in the DMZ as Database server.
    Service1 is already working, and we can call the service from PL/SQL without troubles.
    However, according with security client's policies they requires all Web services be consumed via https including Service1, so we must to follow the procedure established for Oracle in order to enable the calling of service1 via https from the Database.
    Our client's DBA and IT Team are concerned about two subjects before to continue to follow the certificate installation:
         - SSL Certificates:
    1- Can installed certificates in the Database put in risk the stability of the database?
              2- Can installed certificates in the Database generate performance issues?
              3- Can installed certificates reloading the Databases?
              2- Can installed certificates in the Database generate security issues?
         - Web services:
    1- Can web services calling from the Database put in risk the stability of the database?
    2- Can web services calling from the Database generate performance issues?
    3- Can web services calling from the Database generate security issues in the DMZ?
    Could you please give us any clues, about the possible negative impact related with the SSL certificates and Web Services Usage inside Oracle Database, if it’s the case this impact exists?.
    Those are the links describing the procedure mentioned above.
    1 -http://www.kotti.es/2009/11/oracle-wallet/
    DB: Oracle 9i.
    Average number of lines in file: 300
    Periodicity: Twice at day.

    Thiago:
    You are correct in that there should be no problem interacting with a Web service that has an HTTPS endpoint as long as you create a wallet and specify it when you make your UTL_HTTP calls, like the PayPal example.
    I am not aware of a PL/SQL utility to create a XMLDsig Standard message, but if you find some Java source out there that does it, you may be able to follow a technique I used for a similar use case:
    http://jastraub.blogspot.com/2009/07/hmacsha256-in-plsql.html
    Regards,
    Jason

  • Using Spring JMS DefaultMessageListenerContainer within Oracle CEP

    Hi everyone,
    I need to use a DefaultMessageListenerContainer Spring bean (from spring-jms.jar), have the wlevs bean factory to assemble it (it depends from a POJO) and set it as a property of an Adapter bean.
    How do I do it?
    I tried to put the spring-jms.jar into the xbootclasspath but it depends from spring-core.jar. If i put spring-core.jar into the xbootclasspath, the server dies screaming.
    Documentation says i can use legacy Spring beans within an OCEP application, well how do i do it? Can anyone tell me the right steps to do?

    Thanks for the answer :), i just had to import the appropriate packages into the MANIFEST.MF, put all the classes referring to spring-jms into the bundle and away i went.
    The application starts, listens to the JMS destination (an Oracle AQ queue) and dequeues messages correctly.
    I still have a problem when i try to suspend/uninstall the application from the OCEP visualizer.
    The JMS listener is encapsulated into an OCEP ResumableBean/SuspendableBean. It gets created and started (with a call to DefaultMessageListenerContainer.start()) within the beforeResume() method. I hoped that putting a call to DefaultMessageListenerContainer.shutdown() within the suspend() method would do the trick but... the undeployment hangs for a while, then the following is printed on stdout:
    ####<13-gen-2011 17.09.15 CET> <Error> <org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution> <> <myServer> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1294934955875> <BEA-000000> <Closing runnable for context OsgiBundleXmlApplicationContext(bundle=cepcc-adapter-test-aq, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs>
    ####<13-gen-2011 17.09.15 CET> <Notice> <Deployment> <> <myServer> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1294934955895> <BEA-2045001> <The application bundle "cepcc-adapter-test-aq" was undeployed successfully>
    ####<13-gen-2011 17.09.29 CET> <Warning> <Spring> <> <myServer> <Timer-5> <> <> <> <1294934969426> <BEA-2047008> <Exception encountered while stopping application "cepcc-adapter-test-aq": java.lang.IllegalStateException: BundleContext is no longer valid
    java.lang.IllegalStateException: BundleContext is no longer valid
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:1047)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:694)
         at org.springframework.osgi.service.importer.support.internal.support.ServiceWrapper.getService(ServiceWrapper.java:99)
         at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:107)
         at org.springframework.osgi.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:83)
         at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.lookupService(ServiceDynamicInterceptor.java:430)
         at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:415)
         at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
         at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy371.unregisterMBean(Unknown Source)
         at com.bea.wlevs.spring.MBeanRegistrationBeanPostProcessor.destroy(MBeanRegistrationBeanPostProcessor.java:145)
         at com.bea.wlevs.spring.ApplicationContextLifecycle.onContextClosedEvent(ApplicationContextLifecycle.java:261)
         at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:149)
         at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
         at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
         at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:819)
         at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleApplicationContext.java:197)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegatedExecutionApplicationContext.java:214)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:210)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:379)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236)
         at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:794)
         at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$3.run(ContextLoaderListener.java:807)
         at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60)
         at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
         at java.util.TimerThread.mainLoop(Timer.java:512)
         at java.util.TimerThread.run(Timer.java:462)
    >
    I also tried a call to DefaultMessageListenerContainer.setTaskExecutor passing it an anonymous class like this:
    container.setTaskExecutor(new TaskExecutor() {
    @Override
    public void execute(Runnable task) {
    logger.debug("Submitting runnable task");
    executorPool.submit(task);
    where executorPool is an instance field of the OCEP bean initialized like this: executorPool = Executors.newFixedThreadPool(8);
    Anyway the result is the same, when i perform the uninstall from the OCEP visualizer the application is undeployed, but with the same painful message.
    Any hint on what i'm doing wrong?
    Thanks in advance!
    Edited by: javawarrior2003 on 13-gen-2011 17.29

  • Trying to make jms client inside web service

    Hi i am trying to make a jms call inside a webservice
    but whenever i try to execute the web service it gives error with following url
    http://localhost:8280/axis/services/WSTune?method=setTune&r=TUNE
    i have deploy this service on jboss and code is working properly in normal java application
    and i have also placed the jar files inside axis/web-inf/lib folder
    soapenv:Envelope>
    &#8722;
         <soapenv:Body>
    &#8722;
         <soapenv:Fault>
    <faultcode>soapenv:Server.userException</faultcode>
    <faultstring>java.lang.reflect.InvocationTargetException</faultstring>
    &#8722;
         <detail>
    <ns1:hostname>linux</ns1:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>my code is following
    package services;
    import java.util.Properties;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.jms.Queue;
    import javax.jms.Session;
    import javax.jms.MapMessage;
    import javax.jms.TextMessage;
    import javax.jms.QueueSession;
    import javax.jms.QueueRequestor;
    import javax.jms.QueueConnection;
    import javax.jms.QueueConnectionFactory;
    import com.chetu.MyStream;
    public class WSTune
         InitialContext ctx;
         Queue     queue;
         String tunedata;
            String     queueName;
            QueueConnectionFactory connFactory;
         String rid; // Request id
         public String setTune(String r)throws Exception
              rid=r;
              MyStream m=new MyStream();
              m.setData(new byte[]{'a','b'});
              System.out.println("Started WSTune");
              queueName = "queue/mytQueue";
              try {
                   System.out.println("==> 1");
                      Properties props = new Properties();
                     System.out.println("==> 2");
                         props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                         System.out.println("==> 3");
                         props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
                         System.out.println("==> 4");
                         props.setProperty("java.naming.provider.url", "127.0.0.1:1099");
                         System.out.println("==> 5");
                         ctx = new InitialContext(props);
                         System.out.println("==> 6");
                } catch (NamingException e) {
                    System.out.println("Could not create JNDI API " +
                        "context: " + e.toString());
                    System.exit(1);
                try {
                     System.out.println("==> 7");
                        Object tmp = ctx.lookup("ConnectionFactory");
                        System.out.println("==> 8");
                            System.out.println("lookup completed");
                            connFactory = (QueueConnectionFactory)tmp;
                            System.out.println("==> 9");
                         queue = (Queue) ctx.lookup(queueName);
                        System.out.println("==> 10");
                   } catch (Exception e) {
                       System.out.println("JNDI API lookup failed: " +
                           e.toString());
                       e.printStackTrace();
                       System.exit(1);
                   System.out.println("==> 11");
                    QueueConnection queueConn = connFactory.createQueueConnection();
                   /* queueConn.start();
                    QueueSession queueSession = queueConn.createQueueSession(false,Session.DUPS_OK_ACKNOWLEDGE);
                    QueueRequestor requestor = new QueueRequestor(queueSession, queue);
                    MapMessage message = queueSession.createMapMessage();
                  message.setString("ID",rid);
                    message.setString("COMMAND","TUNE");
                    TextMessage result = (TextMessage) requestor.request(message);
                    message.clearBody();
                   tunedata=result.getText();
                    queueConn.close();*/
                    System.out.println("==> 12");
                    //     return tunedata;
         return rid+"  from the WS";
    }and in tomcat log it is printing up to 7 numbers.
    Thanks in advance however its very urgent

    Hi Simon,
       Other thing you can do is compare the HTTP requests (including header) from both Delphi and XMLSPY. I suspect if the SOAP message is same in both case the difference might be in the header. But one thing is certain, WAS can not respond differently for same request, don't you think so ?
    Cheers,
    Sanjeev

  • Viewing table relations inside Oracle SQL Developer

    Hi,
    I'm a PL/SQL beginner and I need to control the table relations for an Oracle database. I'm using the Oracle SQL developer tool.
    Now, how can I see the table relation inside Oracle SQL developer tool?
    Thanks

    itshak wrote:
    When working with tables based on user defined types, the FK relations between the tables are not displayed at the data modeler (and also at the worksheet query builder)
    I don't think that applies here 1041141 mentioned he is a beginner and did not mention any usage of object types.
    If you want to report an issue or possible bug, then please open an extra thread for that. In such a case it helps tremendously if you provide a working test case as well.

  • Procedures inside Oracle Packages

    Hello All,
    Can I execute an procedure defined inside an Oracle package using jdbc?
    Are the procedures defined inside Oracle packages are same as stored procedures ?
    Any help would be grately appreciated.
    regards,
    Abhishek.

    Yes you can execute a procedure defined inside an Oracle package. Use the prepareCall method eg
    String param1 = 'some value';
    oracleCStmt = oracleConn.prepareCall("begin package_name.proc_name(?); end;");
    oracleCStmt.setString(1,param1);
    oracleCStmt.executeUpdate();Yes a stored procedure in a package is no different to on inside a package. A package is just a collection of PL/SQL objects.
    Richard

  • Creating and executing a job inside oracle

    I must launch a batch inside oracle, i have defined program and job like this
    begin
    dbms_scheduler.create_program
    program_name => 'PGM2',
    program_type => 'EXECUTABLE',
    program_action => 'C:\GLOBE\CPONYIN.BAT',
    enabled => TRUE,
    comments => 'CREA FILE UTENTE IN INPUT PER ONYX'
    end;
    begin
    dbms_scheduler.create_job
    job_name => 'JOB2',
    program_name => 'PGM2',
    comments => 'Move FILE ONYX IN INPUT',
    enabled => TRUE
    end;
    Are they correct ?
    what can I do for launching the job JOB2?
    I have tried :
    BEGIN
    DBMS_JOB.RUN( job => JOB2);
    END
    But oracle answers : PLS-00201 Identifier JOB2 must be declared
    Thanks for your answers

    Hi,
    dbms_scheduler and dbms_job are two different package and create different types of jobs. In 10gR1 and up you shoulod not have to use dbms_job at all since dbms_scheduler is its replacement.
    To run a dbms_scheduler job immediately you can use dbms_scheduler.run_job which is documented in the PL/SQL packages guide under dbms_scheduler .
    Hope this helps,
    Ravi.
    PS you will run into other issues with your example. A bat file cannot be run directly. You must do e.g.
    c:\win32\cmd.exe /q /c C:\GLOBE\CPONYIN.BAT
    which is done by setting number_of_arguments to 3 in create_program
    and after doing create_job (enabled=>false), you will have to call set_job_argument_value 3 times with '/q', '/c' and 'C:\GLOBE\CPONYIN.BAT' and then call dbms_scheduler.enable to enable the job .

  • Trying to Access Website using SSL running JAVA from inside ORACLE DB

    Hi,
    I am trying to access website using SSL and running JAVA code from inside Oracle 10g DB server using SSL and Java. I have loaded my java code into Oracle data base. My problem is when I am running same code from outside the DB it is running perfectly fine but when the same code is loaded into DB and trying to run from DB under these environment I am using for running my code:-
    JDK 1.4.2_06
    JSSE 1.4
    Database :- Oracke 10G
    I am getting following Exception:-
    CALL testssl_http_mar20_New();
    java.io.IOException: Unable to tunnel through 123.456.789.123:80. Proxy returns "HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a(DashoA12275
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect(DashoA12275)
    at
    com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(DashoA12275
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l(DashoA12275)
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>(DashoA1
    2275)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>(DashoA
    12275)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a(DashoA12275
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a(DashoA12275
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect(DashoA122
    75)
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream(Da
    shoA12275)
    at java.net.URL.openStream(URL.java:924)
    at SecureURLhttp_Mar20_New.SecureURLhttp_Mar20_New(
    source code is below :-
    import java.io.*;
    import java.net.*;
    import java.security.*;
    import java.util.*;
        public class SecureURLhttp
              public static void main(String[] args) throws Exception
                  SecureURLhttp r = new SecureURLhttp();
                  r.SecureURLhttp();
        public static void SecureURLhttp() throws IOException
                System.setProperty("java.protocol.handler.pkgs","oracle.aurora.rdbms.url|com.sun.net.ssl.internal.www.protocol");
                System.setProperty("https.proxySet","true");
                Authenticator.setDefault(new MyAuthenticator());
                System.setProperty("https.proxyHost","123.456.789.123");
                System.setProperty("https.proxyPort","80");
               //  URL verisign = new URL("https://login.oracle.com/");
                URL verisign = new URL("https://www.verisign.com");
                BufferedReader in = new BufferedReader(new InputStreamReader(verisign.openStream()));
                String inputLine;
                while ((inputLine = in.readLine()) != null)
                System.out.println(inputLine);
                in.close();
                 /* Code Newly Add for checking the system property   */
                java.util.Properties props = System.getProperties();
                java.util.Enumeration propNames = props.propertyNames();
                 while (propNames.hasMoreElements ())
                 Object o=  propNames.nextElement();
                 String name = (String ) o;
                 String val =  props.getProperty(name)   ;
                 System.out.println ( name +  "  = "  + val );
        private static class MyAuthenticator extends Authenticator {
              protected PasswordAuthentication getPasswordAuthentication() {
                   return new PasswordAuthentication("<USERNAME>",new String("<USER_PASSWORD>").toCharArray());
         }Please help me out:
    Thanks a lot in advance.

    0- the fact the ISA server logs an 'anonymous' seems logical, since it answers by HTTP 407. I will say it's even a "good log" :) but I had preferred a good old "security exception" but it's not the case..
    1- The code for checking the properties (your debugging) should be placed BEFORE trying to connect to the url if you want to see what's happening
    2- The 'normal' way to set the proxy is to set the following properties
    System.setProperty("http.proxySet","true"); // and NOT https.proxyset as ejp said
    System.setProperty("http.proxyHost","123.456.789.123");
    System.setProperty("http.proxyPort","80");
    3- what's the behavior if you change 123.456.789.123 by the real name (hostname) of the server ?
    4- You can try setting up the proxy in the java control panel instead of in your code (easy to do under Windows, you look for the networking settings, and you find the proxy settings for http/https there. Otherwise look for all files called net.properties and edit them).
    5- to help debbuging, we can rely on several methods of Authenticator :
    protected PasswordAuthentication getPasswordAuthentication() {
    System.err.println(".\tgetRequestingHost: " + getRequestingHost());
    System.err.println("..\tgetRequestingSite: " + getRequestingSite());
    System.err.println("...\tgetRequestingPort: " + getRequestingPort());
    System.err.println("....\tgetRequestingProtocol: " + getRequestingProtocol());
    System.err.println(".....\tgetRequestingPrompt: " + getRequestingPrompt());
    System.err.println("......\tgetRequestingScheme: " + getRequestingScheme());
    return new PasswordAuthentication("<USERNAME>",new String("<USER_PASSWORD>").toCharArray());
    Try all this and let us see the output messages.
    Please remember to give some 'duke stars' if it helped resolving the problem ;)
    NephYliM

  • Backing up catalog from inside of lightroom extremely slow (30 min)

    I have a catalog that is just under 5gb, if I navigate to the folder where it is stored and copy paste it onto my backup drive it copies in under 2 min. However, if I chose to backup my catalog on exit from inside lightroom it takes over 30 minutes (not counting testing etc). Obviously I can backup my catalog manually, but it would be nice if the built in backup feature worked like it's supposed to.
    I'm running win 7 64
    lightroom 64 same probelm in 4.3 and 4.4
    the catalog and lightroom are stored on a ssd drive
    backing up to a NAS ( my typical transfer speeds are 60-80 MB/s)
    Thanks for any thoughts
    -Dan

    I tried to the local ssd with only a small improvement. Like I said, if I navigate to the catalog manually and copy and paste it to the NAS it takes under 2 minutes... (80+ MB/s), but done through lightroom it just crawls.  Lightroom either has a bug, or it's doing something much more than just copying the catalog to the selected directory. I've tried it with and with out check and optimize.
    Date: Sat, 13 Apr 2013 11:57:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: backing up catalog from inside of lightroom extremely slow (30 min)
        Re: backing up catalog from inside of lightroom extremely slow (30 min)
        created by web-weaver in Photoshop Lightroom - View the full discussion
    A 5 GB Lr catalog is a hefty catalog. But 30 min seems a bit long even for that. I suspect that the NAS drive or its connection speed are slowing things down.Try this: Create a catalog backup from within Lr to an internal drive to check whether that will speed up the process.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5232130#5232130
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5232130#5232130
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5232130#5232130. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Lightroom by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to parse XML inside ORACLE?

    hi all,
    My requirements is that of parsing an XML retrieved from Internet in ORACLE.Actually in my application ORACLE daily (a scheduled job) downloads a XML Doc and retrieves some data out of it.So please give youe expert advice on how to do this and I am having no knowledge of java and need some java free solution for this.
    Thanx in advance
    anurag

    Hi all,
    here is a copy of XML doc I want ot parse inside ORAcle .For example I want to know wot is enclosed in Fid tags with id="RDN_EXCHID" in oracle.Can I usr intermedia text for this purpose???Actually I have to retrieve some values from thsi doc adn insert in to database on a daily schedule basis so finally wot i will do is to use a job to automate this process.
    But i need help on how to parse this doc..
    Thanx
    anurag
    <fid id="RDN_EXCHID">NYS</fid>
    <fid id="RDN_EXCHD2">NYS</fid>
    <fid id="CURRENCY">USD</fid>
    <fid id="TRDPRC_1">126 1/16</fid>
    <fid id="ACVOL_1">3615300</fid>
    <fid id="OFFCL_CODE">000459200101</fid>
    <fid id="BID">-</fid>
    <fid id="ASK">-</fid>
    <fid id="BIDSIZE">250</fid>
    <fid id="ASKSIZE">250</fid>
    <fid id="NETCHNG_1">1 11/16</fid>
    <fid id="PCTCHNG">1.36</fid>
    <fid id="YIELD">0.42</fid>
    <fid id="OPEN_PRC">124 3/16</fid>
    <fid id="HST_CLOSE">124 6/16</fid>
    <fid id="HSTCLSDATE">20 SEP 2000</fid>
    <fid id="HIGH_1">126 11/16</fid>
    <fid id="LOW_1">124 1/16</fid>
    <fid id="DIVIDEND">0.52</fid>
    <fid id="YRHIGH">134 15/16</fid>
    <fid id="YRLOW">89 12/16</fid>
    <fid id="DIVPAYDATE">09 SEP 2000</fid>
    <fid id="EARNINGS">3.95</fid>
    <fid id="PERATIO">31.49</fid>
    <fid id="EXDIVDATE">08 AUG 2000</fid>
    <fid id="GEN_VAL1">0</fid>
    <fid id="PRC_QL_CD">CQ</fid>
    <fid id="TRDTIM_1">22:00 CET</fid>
    <fid id="TRADE_DATE">21 SEP 2000</fid>
    <fid id="BCAST_REF">IBM.N</fid>
    <fid id="BKGD_REF">IBM.NB2</fid>
    null

  • How to read JMS Topic in Oracle E-Bussiness suite R12

    We have to read JMS Topic in Oracle E-Bussiness suite R12. JMS Topic is created by SOA and name of JNDI and connection factory details are provided by SOA. Please let me know the steps to read the JMS Topic.

    Hi,
    SOA and Weblogic documentation can be found at (Search for JMS):
    Documentation for Oracle SOA Suite
    http://www.oracle.com/technology/products/soa/soasuite/collateral/documentation.html
    Oracle WebLogic Server Documentation
    http://download.oracle.com/docs/cd/E14571_01/wls.htm
    Thanks,
    Hussein

  • Oracle insert very slow (very urgent)

    Hello
    I am new to this forum and also new to oracle .... I am woking in a C# 3.5 desktop application
    I am Leasing data from socket (1 message per 10 millisecond) and save in queue<T> and then i have a background thread which dequeu the data and perform some calculation and create “insert sql query “ on run time NO STORE PROCEDURE just simple insert query
    For example
    insert into Product values(0,computer , 125.35);
    I pass that insert query to my datalayer which create oracle connection and insert in to a data base. see the code below
    using System.Data.OracleClient
    class db
    OracleConnection conns = null
    public static void conn(string dbalias, string userid, string password){
    try
    string connString = @"server =" + dbalias + ";uid =" + userid + ";password =" + password + ";";
    conns = new OracleConnection(connString);
    conns.Open();
    catch (OracleException e){
    Console.WriteLine("Error: " + e);}}
    public static void ExecuteCommand(string sqlquery)
    try
    OracleCommand cmd = new OracleCommand(sqlquery,conns);
    cmd.ExecuteNonQuery();
    NOW the problem is that inseration in oracle database is very slow please tell me how to solve this issue

    Additionally:
    How slow? Just one single insert is slow? Or you're doing thousands of inserts that way and they add up to being slow?
    If you're doing a bunch of inserts, wrap a bunch of them inside a transaction instead of doing them one by one which will avoid a commit each time as well.
    Or use Array binding or Associatve arrays as indicated previously (You'd need to use Oracle's provider for that though ~ ou're using System.Data.OracleClient).
    You're using a literal hard coded statement, per your example? Use bind variables.
    Also, this forum is for tools that plug in to VS. Problems with ODP.NET code you've written would be more appropriate in the [ODP.NET forum|http://forums.oracle.com/forums/forum.jspa?forumID=146], but that forum deals with problems with Oracle's ODP, not Microsofts (which is in maintenance mode by the way)
    Hope it helps,
    Greg

  • Need to login again while opening a JSP page from inside Oracle Forms

    Hi,
    we are using EBS r12.1.1 on OEL 5.
    Whenever we are trying to open java page from inside an Oracle Form a login page is coming again.And we need to login to view the page.Whereas when the same page is been opened from the home page itself it is opening fine.
    Please help.

    Hi,
    We've had similiar issues to this. Typically it's around the java version on the client machine being different to that on the oracle server.
    We usually uninstall the client machines java (making sure all applications are closed first), then log back into forms so it downloads the java client again from the server.
    Once it has done that, you need to go into the java control panel and turn off updates.
    Hope that helps.
    Cheers,
    Russell H.

Maybe you are looking for

  • How to keep file name in print queue when printing crystal report

    We are using VB .Net 2003 + Crystal Report 2008 SP2 up to Fix Pack 2.6 When the VB program spools crystal report files to print queue, the print queue only shows "Crystal Report" for each document.  How to keep the original file name?  In the past wh

  • IPad problem, could it be the battery ?

    Hi all, my wife's iPad2 16gb is now 2 years 3 months old, the AppleCare warranty ran out 3 months ago and it has never given any trouble UNTIL YESTERDAY ! It was on charge all day and all night but it never got to 100% !!!, it was stuck on 84% perman

  • How to add title to an ALV List

    Hi , I want to add a title to an ALV List.How to do it.    I_GRID_TITLE                  = 'QUARTERS' I did  the above but the pgm is gettting terminated. Kindly help.

  • Delimited file, jsp front end browse, insert into oracle db.

    Hey all. I know I've seen this around somewhere, and instead of me rewriting the whole thing, I thought I would try and find it. If someone else knows where I could find it please let me know. We have some delimited files that we would like to upload

  • Delete Patches

    Dear All, I just want to know that is there any procedure of patch reversal, because in some case if there is some error occured while importing the patch or some issue has created due to that patch, and I had decided to reverse that patch, I had hea