Best way to use CORBA 3 with Oracle

Hi, developers,
I was using Oracle 8i JVM with my CORBA server deployed without any problems. That was CORBA 2 with old BOA.
Now I have to implement CORBA 2.3 (I've met the "valuetype" in my new IDL definition). I've successfully compiled the IDL file with JDeveloper 9i (which uses the Visibroker's 4 idl2java compiler). The output was the heap of *.java including *POA.java files. I can not deploy them even when I use the Oracle9i database server.
1) Can anybody show me the way (or multiple ways) to create and to run the CORBA server with POA in the Oracle environment.
2) Is it possible to compile the IDL file (with valuetype statement) with -boa option and to use the output as it is shown in examples included in database server.
3) Are there any good links to find the documentation which could describe the CORBA client/server developing process with the help of JDeveloper.
Thanks in advance,
Andrew

Forget about using Corba with an oracle product.
I tried to connect a C++ corba client. It is supposed to work. But the guys who wrote the implementation don't work for Oracle anymore. The samples can't be compiled or linked because they use an old ORB.
Oracle support doesn't want to answer with a working solution (even if we PAY for support).
It is probably possible to use an old version of corba with java. I won't be surprised if it is dropped from a future version of the db or application server.
Try to use another solution (ejb, webservice, ...)
Good luck,
Jean-Paul

Similar Messages

  • What is the best way to use EJB modules with JAX-WS?

    Hi.
    I am doing a project that returns EAN13 encoded data to external java clients.
    I think I need to use a webservice that send response, a webservice client that send the request, and other project that transforms a data to an EAN encoded data, returns it and store it in MySql database.
    It is possible that I need to authenticate users for every request made.
    -I have created a EJB module contained into Glassfish for the webservice
    -I have created a Common Java project with 3 layers: Entities, bussines and data access layer for mysql database
    -I have a project for the webservice client with JAX-WS ( is the best choice? or Would be better JAX-RPC? )
    **How would you suggest me create the structure of the project with all the java power?*
    **Could you help me with goods tutorial of design patterns about webservices using EJB and the best way for use databases for this kind of projects ( I have heard about JNDI, Hibernate, Session EJB, ... )?*
    **Would be better use other EJB module instead of a Common java project that has classes?*
    h3. {color:#333399}I shall be pleased with your help{color}

    Kappy is dead on correct about Bridge Mode as a requirement for the Time Capsule.
    Do you know how to check to see if the Time Capsule is configured this way?
    Next question.....you really should not try to have two wireless networks....one Arris and another Time Capsule.....unless it is absolutely necessary. Two wireless routers in close proximity can create wireless interference effects that can cause problems with either...or both...networks.
    Best to turn off the wireless on one router to keep the chances of wireless interference between routers minimized.
    Are both the Arris and Time Capsule providing wireless signals?

  • The best way to use 2 iphones with 1 Mac

    Can someone explain whats the best way to use 2 iphones on 1 Mac.
    2 different Calendars, 2 different adressbooks, etc., 1 iTunes Library, 1 Photo Library
    But it would be great to see each others Calendars
    Until now one mobileme Account.
    Thanks in advance
    Jan

    I'm hoonesstly not sure about the second mobile me account. My guess would be that you will need another one though. The only way to see her calendar is to log into her user account. Not a problem if you have her password.

  • What's is the best way to use iPhoto? I need to understand.

    What's is the best way to use iPhoto? I need to understand.
    I guess the iPhoto is only for people with 5,000 of personal photos.
    Or even 200,000, but they can't use this app everyday.
    I'm not talk about working as a photographer. They use Aperture.
    They may use iPhoto like a family album that you take a look sometimes.
    And don't care about putting photos from the camera or from internet everyday.
    I have tons of music and I love iTunes 8, works great. So I tried but I can't stand iPhoto anymore.
    I have over 173,000 photos. My goal is organize, have total control, crop in Preview and delete them fast as I can.
    The iPhoto is too slow. And is not only about performance, more RAM... but the whole concept.
    Finder is much better/richer/flexible to organize than iPhoto.
    I'm not talking about the photographer workflow.
    And I'm not talking about editing and all these great photo features, the search, and all the iLife environment. They are amazing.
    When I'm iPhoto, I feel like a prisioner.
    I can't open an album/folder/event alone just to take a look, without do lanch the iPhoto app with the all thousand photos together. And it's slow.
    I can't use Quick Look there.
    So, I'll use Finder for manage/crop/etc. But what's the best way to use iPhoto in my case? Put the best/key ones there to use in iLife/MobileMe? To do a more serious editing? I like the features: keywords/ratings/hidden photos/events... It would be cool this features in Finder.
    For example:
    iMovie: Manage movies? NO. It's editng only.
    iTunes: Manage music/small video/podcast...? OK. Editing the song? OK for tags/convert/artwork/equalizer... For music there's a GarageBand of course.
    iPhoto: Manage photos? Yes and No.
    I think Finder would kill iPhoto incoporating all the editing features in Preview and the rich manage in Finder.
    Jobs said that no one care about iDVD anymore. They care about the web.
    Using iMovie to export to MobileMe.
    Maybe iPhoto become less important in a near future. With a better Finder+Preview Right?
    Sorry for this long text with a short question.
    Thanks.

    Your post demonstrates exactly why I keep saying that iPhoto is not the application for you.
    It would be better an iPhoto organizing photos by words like when iTunes browse his music.
    Why on earth would anyone want to organise photos by words? A list mode is entirely pointless in a Photo application. That's like having an old photo album organised with the photos facing inwards so you can read the back of the picture.
    Again, this is a characteristic of a File browser. You don't want a Photo organiser, you want a file organiser.
    And, in iPhoto, you can search by tags, effortlessly in either the search box or by using a Smart Album.
    iPhoto always loads all that events and all the thumbs library to scroll, and I think it's overkill.
    So, how is iPhoto to know which ones you want to work with today? Open a library, get the Library.
    Would be better a Cover Flow option to browsing in Events.
    You've obviously never tried scrubbing along the Event icon.
    Imagine iTunes using Cover Flow mode all the time. It won't be too useful.
    Many, many people do, including myself on a library of 20k tracks totalling more that 100 gigs, and find it very useful. Same with the Finder.
    And if when iTunes Store starts to sell photos?
    Why on earth would the iTunes store start to sell photos?
    My photos are not junk,
    I didn't say there were. Read my post again.
    When I said Finder to crop photos I mean Preview. But I feel in Finder. Because what's in Preview? A photo opened with a Preview's menubar and some cocoa APIs like adjustments. Not?
    Oh, so you don't count Preview as an application. Fine. It is an application but you don't feel it. As you wish.
    My point to you is very simple: Because of the way you want to organise your pics - using lists views and so on - iPhoto is not the application for you. Don't use it. But you keep writing things about the application that are untrue, and I'm aware that other folks search these forums and I don't want them to have inaccurate information about iPhoto.
    Regards
    TD

  • Best way to use an external drive

    Hello all,
    I have several photos.
    I also have three computers that I regularly use: my Windows PC, my Macbook Pro, and a very new iMac.
    Rather than place all my photos on each computer... I thought I could place them on a Western Digital Passport portable ext. drive. Then somehow use the drive from computer to computer to edit/play with my photos.
    How do I best use iPhoto 08 to do that? I'm not sure... do the photos have to be on the computer in order to make albums, libraries, folders, etc? Or are those things more of thumbnails that POINT to certain files?
    Please help a newbie understand the best way to use his external drive.
    Thanks for any and all help!

    Hello, and welcome, Theodore!
    I must first say that I don't yet have iPhoto 8.
    I do, however, have a lot of experience with external drives (I have two). I have a huge amount of music in iTunes, so I keep a copy of it on each external drive. Then, when I need to access my music , I turn on either external drive, up comes the External Drive symbol on my display, then I go over to my dock, and select iTunes. I must remember to first open up the External Drive BEFORE I open iTunes (or iPhoto). I then add or subtract music (or photos), edit, and work on my collection. When I'm finished, I just close the application, then select the Hard Drive symbol, and choose File/ Exit Hard Drive. Reach over and turn off my Hard Drive, and it's all good. I just always remember to open the Hard Drive FIRST, before opening the application.
    The same would work for iPhoto. If you place iPhoto onto your external drive, you could probably use any of your computers to connect to it. I would suggest you think about backing up your external drive's contents with either another external drive (which was my choice), or other alternate storage methods.
    I only have one PowerBook, not multiple computers, but, other than that, the situation's the same. You want to keep your iPhoto collection off your computers, and onto one external drive. I hope this information can be of some help to you.
    All best wishes... Cea

  • Does Adobe Reader for iOS have the ability to open inbedded links to additional PDF docs?  If not, then what would be the best way to use these already created PDF's?

    Does Adobe Reader for iOS have the ability to open inbedded links created with Acrobat Standard to additional PDF docs?  If not, then what would be the best way to use these already created PDF's on an I Pad?

    driddy61,
    As of June 2014, none of the Adobe Reader mobile products support the hyperlink action for opening a separate PDF document.
    Adobe Reader for iOS
    Adobe Reader for Android
    Adobe Reader Touch for Windows 8
    In addition, the Reader mobile products do not open multiple windows/documents simultaneously, which would make the navigation between PDF documents nearly impossible. (Once a hyperlink takes you to a different PDF document, you have no way to go back to the original PDF document.)
    The only Adobe Reader product that fulfills your department's requirements is Adobe Reader XI (mostly for Windows/Mac desktop/laptop computers).  Acrobat Pro and Standard are paid products.
    Because you are in search of a less expensive device for your department, you could get a Windows tablet instead of a Windows desktop/laptop computer. Microsoft Surface Pro (that you've mentioned in your previous reply) is just one example.  You can also find other less expensive Windows tablets.
    Tablets
    However, please keep in mind that there are two different types of Windows tablets running two different operating systems.
    (a) A Windows tablet with an Intel-based processor running Windows 8.1 Pro
    Example: Surface Pro 3
    You can install and run traditional desktop apps (e.g. Adobe Reader XI) and new Windows Store apps ("Modern" or "Metro-style" apps).
    (b) A Windows tablet with an ARM-based processor running Windows RT 8.1
    Example: Surface 2
    You can only install and run Windows Store apps (e.g. Adobe Reader Touch) but not traditional desktop apps like Adobe Reader XI.
    In general, type (b) tablets are more affordable than type (a) tablets.  However, if you want to run Adobe Reader XI, you do need to check the technical specification of each tablet and make sure the following conditions are met.
    Processor: Intel
    Operating system:  Windows 8/8.1 or Windows 8/8.1 Pro, not RT
    Hope this helps you choose the right device for your department.  Please let us know if you have any questions about system requirements or supported features in the Adobe Reader products.

  • Best practice when using Tangosol with an app server

    Hi,
    I'm wondering what is the best practice when using Tangosol with an app server (Websphere 6.1 in this case). I've been able to set it up using the resource adapter, tried using distributed transactions and it appears to work as expected - I've also been able to see cache data from another app server instance.
    However, it appears that cache data vanishes after a while. I've not yet been able to put my finger on when, but garbage collection is a possibility I've come to suspect.
    Data in the cache survives the removal of the EJB, but somewhere later down the line it appear to vanish. I'm not aware of any expiry settings for the cache that would explain this (to the best of my understanding the default is "no expiry"), so GC came to mind. Would this be the explanation?
    If that would be the explanation, what would be a better way to keep the cache from being subject to GC - to have a "startup class" in the app server that holds on to the cache object, or would there be other ways? Currently the EJB calls getCacheAdapter, so I guess Bad Things may happen when the EJB is removed...
    Best regards,
    /Per

    Hi Gene,
    I found the configuration file embedded in coherence.jar. Am I supposed to replace it and re-package coherence.jar?
    If I put it elsewhere (in the "classpath") - is there a way I can be sure that it has been found by Coherence (like a message in the standard output stream)? My experience with Websphere is that "classpath" is a rather ...vague concept, we use the J2CA adapter which most probably has a different class loader than the EAR that contains the EJB, and I would rather avoid to do a lot of trial/error corrections to a file just to find that it's not actually been used.
    Anyway, at this stage my tests are still focused on distributed transactions/2PC/commit/rollback/recovery, and we're nowhere near 10,000 objects. As a matter of fact, we haven't had more than 1024 objects in these app servers. In the typical scenario where I've seen objects "fade away", there has been only one or two objects in the test data. And they both disappear...
    Still confused,
    /Per

  • What is the best way to stream sports with Apple TV

    What is the best way to stream sports with apple TV

    Your question is a little too broad. Hard to know what sports you are talking about.
    If you have a newer Mac, you can use airplay to mirror anything on your Mac to your apple tv. Or use the ESPN app.
    But a lot of sports just can't be streamed as they are available, though I bet this year sees a lot of new livestreams on sports on YouTube or Ustream.
    Hugh

  • Using Tuxedo with Oracle Real Application Clusters (RAC)

    Hi all ,
    Our present Producation environment is Tuxedo8.0 with Oracle 9i as database .
    We are planning to implement oracle RAC .
    Can any one tell us , with the current tuxedo version which is 8.0 ,can we for RAC Or we need to upgrade Tuxedo to 9.1 for RAC Implementation?
    If anyone has Implemented Tuxedo and Oracle with RAC successfully
    Pls share your experience.
    Thanks In Adavance
    Nadeer .

    Subbu,
    As I mentioned earlier in this thread, support for Oracle RAC has been
    implemented in Tuxedo 9.1 and in the Tuxedo 8.1 and Tuxedo 9.0 rolling patch
    streams. There are no plans to backport this feature to Tuxedo 8.0. If you
    plan to use RAC transactionally and if it is possible for multiple services
    that could be located on different RAC instances to be accessed in a single
    transaction (which will be true for most applications), then you should
    upgrade to a version of Tuxedo with support for Oracle RAC. The
    documentation at http://e-docs.bea.com/tuxedo/tux91/ads/adorac.htm#248431
    gives an overview of RAC support in Tuxedo.
    Ed
    <Subramonian Arumugom> wrote in message news:[email protected]..
    Hello Nadeer, Hello Ed,
    Has the implementation of Tuxedo8.0 with Oracle RAC was completed
    successfully ?.
    If it is done , I have few doubts. Could you please help me ?.
    1) I hope your Tuxedo middleware connects to the oracle Database using
    Oracle XA resource manager and the TMS server built using buildtms with
    oracle as RM .As per the mail from Ed, migration of Tuxedo9.1 should be done
    before moving to Oracle RAC.
    Also from BEA documentation, Oracle RAC support was given as new feature in
    Tuxedo9.1.
    Our Application uses Oracle RM to connect to Oracle DB[ Oracle 10g] from
    Tuxedo8.0. So do we need to upgrade to Tuxedo9.1. for using Oracle RAC ?.
    Thanks for your help
    Best Regards
    Subbu
    #9880278452
    Edited by subramonian.a at 04/16/2007 12:15 AM
    Edited by subramonian.a at 04/16/2007 12:19 AM
    Edited by subramonian.a at 04/16/2007 1:37 AM
    Edited by subramonian.a at 04/16/2007 8:20 AM

  • Using XA with Oracle ERP application

    Hi,
    We have two Tuxedo Domains that we need to establish global transaction:
    First Domain - Tuxedo 6.4 with Oracle 8.0.6 database.
    Second Domain - Tuxedo 6.4 with Oracle ERP application (Oracel version 8.0.5)
    A Client that calls a Tuxedo server in the first domain this service doing some work
    on the database and then calls another service in the second domain (using Domain
    connection).
    The service in the second Domain activate a Oracle API (package) from the ERP application.
    The Rollback works but we problem with the commit. We recieve the following Oracle
    Error - ORA-06574: Function "VIEW_ALL" references package state can not execute remotly.
    Revital Bloom
    [email protected]

    Subbu,
    As I mentioned earlier in this thread, support for Oracle RAC has been
    implemented in Tuxedo 9.1 and in the Tuxedo 8.1 and Tuxedo 9.0 rolling patch
    streams. There are no plans to backport this feature to Tuxedo 8.0. If you
    plan to use RAC transactionally and if it is possible for multiple services
    that could be located on different RAC instances to be accessed in a single
    transaction (which will be true for most applications), then you should
    upgrade to a version of Tuxedo with support for Oracle RAC. The
    documentation at http://e-docs.bea.com/tuxedo/tux91/ads/adorac.htm#248431
    gives an overview of RAC support in Tuxedo.
    Ed
    <Subramonian Arumugom> wrote in message news:[email protected]..
    Hello Nadeer, Hello Ed,
    Has the implementation of Tuxedo8.0 with Oracle RAC was completed
    successfully ?.
    If it is done , I have few doubts. Could you please help me ?.
    1) I hope your Tuxedo middleware connects to the oracle Database using
    Oracle XA resource manager and the TMS server built using buildtms with
    oracle as RM .As per the mail from Ed, migration of Tuxedo9.1 should be done
    before moving to Oracle RAC.
    Also from BEA documentation, Oracle RAC support was given as new feature in
    Tuxedo9.1.
    Our Application uses Oracle RM to connect to Oracle DB[ Oracle 10g] from
    Tuxedo8.0. So do we need to upgrade to Tuxedo9.1. for using Oracle RAC ?.
    Thanks for your help
    Best Regards
    Subbu
    #9880278452
    Edited by subramonian.a at 04/16/2007 12:15 AM
    Edited by subramonian.a at 04/16/2007 12:19 AM
    Edited by subramonian.a at 04/16/2007 1:37 AM
    Edited by subramonian.a at 04/16/2007 8:20 AM

  • Using OCCI with Oracle XA Library

    Is it possible to use OCCI with Oracle XA Library?
    the XA function xaoSvcCtx() can returns the OCI service handle
    for a given XA connection. but how to convert it to the OCCI
    Connection class?
    any comments would appreciate
    Ray

    Hi Ravi,
    We are now building CORBA application with C++. some programs
    manage transaction through Transaction service(a TM of X/OPEN
    DTP architecture), these programs must use XA Library.
    OCCI is a wonderful tool for C++ programer,with OCCI building
    a persistent layer over ORACLE is very simple.
    But if OCCI not work with XA we have no choice but PRO*C or
    OCI ,which's actually C style tool and hard to use especially
    in object mode.
    So we hope OCCI can provide this feature in next release. and
    I beleive This feature is necessary,It's very common using a
    transaction monitor such as ORACLE Application Server .
    regards,
    Ray

  • Please suggest me the best way to start learning about Oracle Purchasing.

    Hi,
    I have started reading about Oracle Procurement. I have an over all idea of how ERP functions. Anyhow I am like a fresher to ORACLE APPS. Can you pleasesuggest me what is the best way to start learning about Oracle Purchasing.
    Is it is throuhg user guides or some thing else..... can you please specify the references also.......
    Thank you so much.

    If you have a sponsorship, I would recommend taking classes with Oracle University. The other resources are documentation, functional and technical depending on what your interests are.
    If you can load Vision database or access vision database (I think solutionbeacon offers a free account to login and play around), that will be another resource as well.
    As you learn, join as much user groups like this one, and review all questions and answers in the discussions to understand and learn more.
    Hope this helps.

  • Repost-Best way of using connection pooling

    I am reposting this, seems best suitable in this category.
    I am using Eclipse 3.1 along with Tomcat 5.0, MySQL 4.1, J2EE1.4. I could set up the JNDI Dataresource connection pooling and tested with small test servlet. Now thinking of having common methods for getting connection / closing / commiting ....etc.
    I wrote following. [Please let me know whether it is correct way of doing it - as i am not very sure]
    package common;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import org.apache.log4j.Logger;
    public final class connectionManager {
         private static Logger logger = Logger.getLogger(common.connectionManager.class);
         public connectionManager() {}
         public static Connection getConn () throws NamingException, SQLException
    //JNDI DataSource connection pooling
              Connection conn = null;
              try{
                   Context initContext = new InitialContext();
                   Context envContext  = (Context)initContext.lookup("java:/comp/env");
                   DataSource ds = (DataSource)envContext.lookup("jdbc/TQ3DB");
                   conn = ds.getConnection();
              }catch (NamingException ne) {
                  new GlobalExceptionHandler(logger, ne);
                   conn = null;
                   throw new NamingException();
              }catch (SQLException e){
                   new GlobalExceptionHandler(logger, e);
                   conn = null;
                   throw new SQLException();
              return conn;
           }//getConnection
         public static void commit(Connection conn) throws SQLException
              conn.commit();
         public static void rollback(Connection conn) throws SQLException
              conn.rollback();
           public static void setAutoCommit(Connection conn, boolean autoCommit)
                                        throws SQLException
                conn.setAutoCommit(autoCommit );
         public static void closeConnection(Connection conn) throws SQLException{
              if (conn != null) {
                   conn.close();
                   conn = null;
         }//closeConnection
         public static void closeResources(ResultSet oRS, PreparedStatement pstmt) throws SQLException
              if (oRS != null) {
                   oRS.close();
                   oRS = null;
              if (pstmt != null) {
                        pstmt.close();
                        pstmt = null;
         } // closeResources
    }//ConnectionManager
    I am having a login form which submits user name and password. I am checking this against the database. Following is the servlet to do that.
    package login;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import common.*;
    public class loginServlet extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {          
              doPost(request, response);
         }//doGet
         public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException,IOException{
              String userId = request.getParameter("userId");
              String password = request.getParameter("password");
              ** call a method to validate the password which will return the
              ** User Name for authorized users and null string for un-authorised.
              String uName = validateUser(userId, password);
              //if uName is null .. user is not authorized.
              if (uName == null){
                   //redirect to jsp page with error message
                  RequestDispatcher rd =
                       getServletContext().getRequestDispatcher("/jsps/mainmenu.jsp");
                  if (rd != null){
                       rd.forward(request,response);
              else{
                   // the user is valid - create a seesion for this user.
                   HttpSession userSession = request.getSession(true);
                   // put the user name session variable.
                   userSession.setAttribute("userName", uName);
                   //redirect to Main menu page
                   RequestDispatcher rd =
                        getServletContext().getRequestDispatcher("/jsps/mainmenu.jsp");
                   if (rd != null){
                        rd.forward(request,response);
         }// end of doPost
         private String validateUser(String userId, String password)
                   throws SQLException{
              String returnVal = null;
              connectionManager cm = new connectionManager();
              Connection conn = null;
              PreparedStatement pstmt = null;
              ResultSet oRS = null;
              try{
                   //get the connection
                   conn = cm.getConn ();
                   //get records from user table for this user id and password
                   String sQry = "SELECT  user_login FROM user "
                             + "where user_login = ? AND user_pwd = ? ";
                   pstmt = conn.prepareStatement(sQry);
                   pstmt.setString(1, userId);
                   pstmt.setString(2, password);
                   oRS = pstmt.executeQuery();
                   //check for record
                   if (oRS.next()) {
                        returnVal = oRS.getString("user_login");
                   }else {returnVal = null;}
                 }catch (Exception e){            
                      returnVal = null;
              }finally{
                   cm.closeResources(oRS, pstmt);
                   cm.closeConnection(conn);
              return returnVal;
    }// end of servlet class
    But i am unable to compile it and i am also getting lots of warnings.
    I am getting error at line
    1)String uName = validateUser(userId, password);
    Unhandled exception type SQLException loginServlet.java TQ3/WEB-INF/src/login line
    Following warnings:
    2)For loginServlet Declaration
    The serializable class DBTest does not declare a static final serialVersionUID field of type long loginServlet.java
    3)The static method getConn() from the type connectionManager should be accessed in a static way
    4)The static method closeResources(ResultSet, PreparedStatement) from the type connectionManager should be accessed in a static way
    5)The static method closeConnection(Connection) from the type connectionManager should be accessed in a static way
    Definitely I am doing it wrong but exactly where? I am having very strong doubt the way i am using connections is not the correct way. Pls help me.
    regards
    Manisha

    I am in a search of best way to use connection pooling. Initially was using simple JDBC call, then modified to JNDI, afterwards tried to have common class. Later came accross the idea of Singleton/Static. I wanted to have a common class which will handle all connection related issues and at the same time give good performance.
    With due respect to all Java Gurus: i got all from web articles/tutorials/java forum etc. There is a long discussion regarding Singlet vs static in this forum. But finally got confused and could not figure out in my case which method shall i make use of, so tried both.
    What I want is somebody pointing out flwas inside my 2 code snippets and guide me about which method shall i adopt in future.
    Static way:
    package common;
    import java.sql.Connection;
    import javax.sql.DataSource;
    import java.sql.SQLException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public final class ConnectionManager_Static {
         private static InitialContext ctx = null;
         private static DataSource ds = null;
         public ConnectionManager_Static(){     }
         //as the staic method is updating static var i am synchonizing it
         private static synchronized void getDatasource () throws NamingException, SQLException
              if (ds == null){
                   ctx = new InitialContext();
                   ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MySql");
         //making getConnection() also static as it is not instance specific     
         public static Connection getConnection () throws NamingException, SQLException, Exception
              Connection conn = null;
              try{     
                   if (ds == null) {getDatasource ();}
                   if (ds != null) {
                        conn = ds.getConnection();                 
              }catch (Exception e){
                   throw new Exception("From ConnectionManager_Static",e);
              return conn;
           }//getConnection
    }Singleton:
    package common;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    public final class ConnectionManager_Singleton {
             private static ConnectionManager_Singleton INSTANCE = null;
              private DataSource datasource = null;
              // Private constructor for singleton pattern
             private ConnectionManager_Singleton() throws NamingException{
                   Context ctx = new InitialContext();
                   datasource = (DataSource)ctx.lookup("java:comp/env/jdbc/MySql");
             //synchronized creator for  multi-threading issues
             //another if check to avoid multiple instantiation
             private synchronized static void createInstance() throws NamingException{
                 if (INSTANCE == null) {
                     INSTANCE = new ConnectionManager_Singleton();
             public static ConnectionManager_Singleton getInstance() throws NamingException {
                 if (INSTANCE == null) createInstance();
                 return INSTANCE;
              public Connection getConnection() throws Exception
                   Connection con = null;
                   try{
                        con = datasource.getConnection();
                   }catch(Exception e){
                        throw new Exception("From connection manager singleton ", e);
                   return con;
    }Sorry, It's becoming long.
    Thanaks in advance,
    Manisha

  • Best way to export data with r.t. prompts and have dense dim mbrs on rows?

    Hi All-
    What is the best way to export data with Run time prompts out of Essbase?
    One thought was to use Business Rules with run time variables and DATAEXPORT command, but I came across at least one limitation where I cannot have months (part of dense Time Periods dimension) on rows.
    I have only two dense dimensions: Accounts and Time Periods and I need both of these on rows. This would come handy when user enter Start and End month and year for data to be exported e.g. If start period is Feb 2010 and end is Jan 2011, I get data for all months in 2010 and 2011.
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000",14202.24,14341.62,14560,13557.54,11711.92,10261.58,12540.31,15307.83,16232.88,17054.62,18121.76,18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000",19241,21372.84,21008.4,18952.75,23442.13,19938.18,22689.61,23729.29,22807.48,23365,23915.3,24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000",21364,22970.37,23186,27302,25144.38,27847.91,27632.11,29007.39,24749.42,27183.39,26599,27112.79
    where ideally I would need to get the following:
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Feb",14341.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Mar",14560
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Apr",13557.54
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","May",11711.92
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jun",10261.58
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jul",12540.31
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Aug",15307.83
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Sep",16232.88
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Oct",17054.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Nov",18121.76
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Dec",18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Feb",21372.84
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Mar",21008.4,
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Apr",18952.75
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","May",23442.13
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jun",19938.18
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jul",22689.61
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Aug",23729.29
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Sep",22807.48
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Oct",23365
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Nov",23915.3
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Dec",24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000","Jan",21364
    Thank you in advance for any tips.

    Have a read of the following post :- export data to sql
    It may give you a further option.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Best way to use iPod in the car?

    Is there any consensus on the best way to use your iPod in the car? I have used the Belkin Car Kit with the cassette tape for over a year with my 20GB iPod and I really like it. It keeps my iPod charged and the sound quality is really pretty good I think. Now I have gotten a 30GB video iPod for my wife and want to find out what people feel is the best product for car use before I start buying her any accessories.
    Thanks.

    I concur with T-squared. The Kensington 33185 is simple to use and the sound quality has been excellent. I bought it just last Friday and it has seen me through numerous holiday roadtrips over the past week. It charges and has three presets; I can recommend 89.7 or 106.5 FM when you're in the Philadelphia/Princeton area. :->
    AlumPbk G4 15, 1.5GHz, 1GB RAM   Mac OS X (10.4.3)   iPod 60GB

Maybe you are looking for

  • Mac Pro 2.66 ghz, Intel Core 2 duo Upgradeability

    I want to purchase a 2.66ghz Mac pro, now in my price point, but want to know if I can upgrade the Procs from the TWO Dual cores to two Quads to make an 8 core sometime next year. Can the existing MOBO handle this upgrade or do I have to replace it?

  • Swipe gesture not working in safari

    After upgrading to Mavericks the swipe gesture (previous page) in safari is not working and if I swipe ( i am so used to it now), it causes the safari to freeze. Anybody else have same problem

  • Bapi_pr_change with blocked field

    Hello, I blocked the purchase request when i created it. Now I need to open it via the Bapi_pr_change  ,so I filled the following fields: <b>Import:NUMBER = my number Tables:PRITEM  :PREQ_ITEM=00010 , REQ_BLOCKED =(none),           PRITEMX:PREQ_ITEM=

  • Need a User Exit for OCI Interface in case of Multiple Views

    Hello Friends, I need a help in finding the User Exit / BADI for passing the Catalog ID when you click on Catalog Button in Purchase Requisition , PM Order ( IW32) and Purchase Order. 1. We have number of Views and we need to implement Custom logic f

  • 7 - Zip the system cannot find the file specified

    after extracting i get this message - 7-Zip the system cannot find the file specified