MSSQL server as data store for SUN Java system Identity server 6.1

Hi,
I am a new user to SUN java system Identity server 6.1. Can we use RDBMS such as MSSQL server as a datastore for IS?
if so, what is the configuration that needs to be done on IS 6.1?
Thanks in advance,
Srinivaas.

Hello All,
Waiting for any idea for the long time. I am trying again and again by restoring my directory server zone. I have two whole root zones one i am using for sun portal and communication suite 5 and other is for directory server. They are working fine. but when i try to install the Sun Java System Identity Synchronization for Windows 6.0 on directory server zone. Some time it hangs at 97% while installing core and some time it giving error the installer cannot upload some entries in the template this error comes when i restore my directory server zone.
Can some please give me idea why it giving these error on solaris zone.
Thanks in Advance,
Sikander

Similar Messages

  • Hello.war_deployed not generated for Sun Java System Application Server

    I have installed and started the Sun Java System Application Server successfully, and can access http://localhost:8080 without any problem. However, after I copied the hello.war following the below instruction in "QuickStart", the hello.war_deployed wasn't generated in the "autodeploy" directory.
    # Find<INSTALL_DIR>/samples/quickstart/hello.war.
    # Copy it to <INSTALL_DIR>/domains/domain1/autodeploy/
    Anybody knows why?
    Thanks.

    Hai
    I have installed Sun Java System Application Server 8
    I am able to create Application, Bean component, Appclient Client.
    But i dont know where to provide the JNDI name
    JNDI tab s'd be there for the Application(any)
    I have three tabs(default tabs), JNDI tab is not appearing
    I am following the J2EE1.4 pdf document
    tell me how to provide the JNDI name for any application
    Please do the favour

  • Is this bugs for Sun Java System Portal Server 6 2005Q4 (errorStoreDP) ?

    Hi,
    I installed Sun Java System Portal Server 6 2005Q4 under window xp environment.
    I used the following command to deploy war file, it worked for me (because I setup enough services and role for amadmin user), deploy/undeploy was worked very well for me.
    pdeploy deploy -u amadmin -w amAdminPassword -g -p
    amAdminPassword -v portletsamples.war
    Two months later, I did not change anything (configuration) within the two months.
    I use the same deploy/undeploy command to deploy war file again, I got the following error =>
    errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURRED)
    Message:The user does not have permission to perform the operation.
    Why this condition happened ? is this bugs for sun portal server ?
    I uninstall this sun portal server and reinstall it again, I still got
    the same error message. why ?
    But funny thing is that I format my machine, then install window xp and
    install System Portal Server 6 2005Q4 again, then it works for me again.
    is this reasonable ?
    I really don't know why ?
    Can someone help me ?
    Thanks!

    Hello,
    It seems you are really asking how you should design your application to use portlets.
    Your approach now seems to be that you would just copy your servlets to portlets. You can use the PortletRequestDispatcher to include content from your servlet. See http://portals.apache.org/pluto/multiproject/portlet-api/apidocs/javax/portlet/PortletRequestDispatcher.html
    I also found the following discussion on this topic http://www.mail-archive.com/[email protected]/msg00481.html
    But I don't think I'd recommend that approach for your application. How would you maintain the application going forward? You will have both servlets and portlets to maintain when you change the applicaiton. I assume you will be keeping the servlet application and using it also? Do you want the portlet content to match the servlet content always, or will they display differently?
    Instead, what you might consider an model-view-controller approach and designing a web service (the model) for both applications (servlet and portlet, views) to consume.
    As for the basics of porlet applications, the JSPPortlet will use JSPs for presentation of hte portlet content. GenericPortlet is the default implementation of the Portlet interface. Implementing the portlet interface means you must write the implementation yourself. Here are a couple of good tutorials to get you started on the Portlet spec:
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet.html
    http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-portlet2.html
    Also there is this JSE tutorial, but I don't know how current it is:
    http://developers.sun.com/prodtech/portalserver/reference/techart/portlets.html
    Hope that helps.

  • Sun Java System Portal Server 7 for windows ?

    Hi all,
    Has any one found the download link for
    Sun Java System Portal Server 7 .
    Please send me the link.
    nJoy
    ~Neeraj Sidhaye
    [email protected]

    http://www.sun.com/download/index.jsp?cat=Portal%20Services&tab=3&subcat=Portal%20Server
    Supported Platforms
    Sun comparable workstation or server (SPARC or x86 that runs Solaris OS or Red Hat Enterprise Linux)
    Operating Systems and Platforms
    Solaris 10 OS for SPARC and x86 platforms, including Zones support
    Solaris 9 OS for SPARC and x86 platforms
    Solaris 8 OS for the SPARC platform
    Red Hat Enterprise Linux WS/AS/ES 2.1 to 2.1U6
    Red Hat Enterprise Linux WS/AS/ES 3.0 to 3.0U4
    Windows 2000, XP, AS
    Windows 2003, XP, AS
    HP-UX 11i
    System Requirements
    Memory: 1.5 GB of RAM for evaluation install
    2-3 GB of RAM for minimal deployment
    Virtual Memory: 4 GB
    Disk Space: 3 GB of disk space for Java System Portal Server and associated applications

  • Sun Java System Messaging Server - necessary components

    People, prompt: for Sun Java System Messaging Server besides ldap, what is necessary?

    Hi,
    What is it you want to do with your messaging server installation? If you don't want UWC access (i.e. IMAP/POP access only) then Messaging Server is all you need (along with an LDAP server which may or may not be installed on the same system). A mail-relay system for example requires very little, in fact during configuration you can disable the store to leave MTA functionality only.
    Shane.

  • How do I use a JDBC Resource set-up in Sun Java System Appliation Server?

    How do I use a JDBC Resource set-up in Sun Java System Appliation Server 8.2?
    I created a JDBC Resource labeled "jdbc/__PetroPool" that is backed by a Connection Pool labeled "PetroPool".
    Since this is set-up in Sun Java System Appliation Server 8.2, I am looking for suggestions, examples or guides on how I can use this connection.
    I've been browsing the developer's guide for Sun Java System Appliation Server 8.2 without much luck.
    Googling really doesn't provide a lot of useful information either...
    Any suggestions, examples or guides on how I can use this connection is greatly appreciated.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    How do I use a JDBC Resource set-up in Sun Java System Appliation Server 8.2?
    I created a JDBC Resource labeled "jdbc/__PetroPool" that is backed by a Connection Pool labeled "PetroPool".
    Since this is set-up in Sun Java System Appliation Server 8.2, I am looking for suggestions, examples or guides on how I can use this connection.
    I've been browsing the developer's guide for Sun Java System Appliation Server 8.2 without much luck.
    Googling really doesn't provide a lot of useful information either...
    Any suggestions, examples or guides on how I can use this connection is greatly appreciated.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem in starting Sun Java System Application Server

    Hi,
    Recently I installed SJSAS 8.1 on my machine (Windoes 2000), before that I was working on SJSAS8.0 and it was working file. But with 8.1 when I try to "Start Default Server". I get the following error on the console:
    Starting Domain domain1, please wait.
    Log redirected to D:\netbeans-4.1beta\SunAppServer8.1\domains\domain1\logs\server.log.
    Timeout waiting for domain domain1 to go to starting state.
    CLI156 Could not start the domain domain1.
    Press any key to continue . . .
    The contents of server.log are:
    [#|2005-03-29T15:07:14.242+0530|INFO|sun-appserver-pe8.1|javax.enterprise.tools.launcher|_ThreadID=10;|
    D:/Java/jdk1.5\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1/logs/server.log
    -Djava.endorsed.dirs=D:/netbeans-4.1beta/SunAppServer8.1/lib/endorsed
    -Djava.security.policy=D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=D:/Java/jdk1.5/jre/lib/ext;D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1/lib/ext
    -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dcom.sun.aas.configName=server-config
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=domain1
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=D:/netbeans-4.1beta/SunAppServer8.1/domains/domain1
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=domain1
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=D:/netbeans-4.1beta/SunAppServer8.1/config
    -Djava.library.path=D:\Java\jdk1.5\jre\bin\client;D:\netbeans-4.1beta\SunAppServer8.1\lib;D:\netbeans-4.1beta\SunAppServer8.1\lib;D:\Java\jdk1.5\bin;.;D:\WINNT\system32;D:\WINNT;D:\netbeans-4.1beta\SunAppServer8.1\lib;D:\netbeans-4.1beta\SunAppServer8.1\bin;D:\netbeans-4.1beta\SunAppServer8.1\lib;D:\netbeans-4.1beta\SunAppServer8.1\bin;D:\netbeans-4.1beta\SunAppServer8.1\bin;D:\netbeans-4.1beta\SunAppServer8.1\bin;D:\WINNT\system32;D:\WINNT;D:\WINNT\System32\Wbem;D:\Java\jdk1.5\bin;D:\netbeans-4.1beta\SunAppServer8.1\bin;
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    D:/Java/jdk1.5/lib/tools.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib/appserv-rt.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\activation.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\admin-cli.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\appserv-admin.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\appserv-cmp.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\appserv-ext.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\appserv-jstl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\appserv-rt1.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\appserv-upgrade.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\commons-launcher.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\commons-logging.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\dom.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\j2ee-svc.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\j2ee.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jax-qname.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jaxr-api.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jaxr-impl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jaxrpc-api.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jaxrpc-impl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jmxremote.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jmxremote_optional.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jsf-api.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\jsf-impl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\mail.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\relaxngDatatype.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\rmissl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\saaj-api.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\saaj-impl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\xalan.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\xercesImpl.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib\xsdlib.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib/install/applications/jmsra/imqjmsra.jar;D:/netbeans-4.1beta/SunAppServer8.1/imq/lib/jaxm-api.jar;D:/netbeans-4.1beta/SunAppServer8.1/imq/lib/fscontext.jar;D:/netbeans-4.1beta/SunAppServer8.1/lib/ant/lib/ant.jar;D:/netbeans-4.1beta/SunAppServer8.1/pointbase/lib/pbclient.jar;D:/netbeans-4.1beta/SunAppServer8.1/pointbase/lib/pbembedded.jar
    com.sun.enterprise.server.PEMain
    start
    display
    native|#]
    *** EXITING ERROR:
    Can't create Java VM
    I guess I have searched every possible discussion/bug database/forums on this topic but unable to find a solution, please help.
    Regards
    Nitin

    Reply please.
    Thanks in advance.
    amyt

  • Any difference between Sun Java System Web Server - Update 1 and update 2

    Any configuration changes need to be made particularly for Sun Java System Web Server - Update 2 in the load balancing. because i face issue in load balancing with Sun Java System Web Server - Update 2 , but load balancing is working fine with Sun Java System Web Server - Update1

    using Sun Java System Web Server - Update 2 as forward proxy. and here is my obj.conf file entries
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Program Files/Sun/WebServer7/lib/icons" name="es-internal"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    </Object>
    #this line was added for weblogic clustering
    <Object name="webapp" ppath="*/webapp/*">
    Service fn=wl_proxy WebLogicCluster="ip:7002,ip:7003"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object name="tunnel" ppath="*/HTTPClnt*">
    Service fn=wl_proxy WebLogicCluster="ip:7002,ip:7003"
    </Object>

  • Sun Java System Application Server 9.1  errors

    Hi
    Please asiste me ,I am getting this errors from :
    |WARNING|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=29;_ThreadName=Timer-31;orcale_sage_live;Connection could not be allocated because: Io exception: Socket is not connected;Error while Resizing pool orcale_sage_live. Exception : Connection could not be allocated because: Io exception: Socket is not connected|#]Alos IO:Network adapter could not establish connection
    Thanks,PAul

    ramiro wrote:
    Hi, im not able to deploy derby.war from derby 10.4.1.3, as indicated in the Derby Server and Administration Guide, using Sun Java System Application Server 9.1 Update 2.Best I can guess is that you are attempting to remotely install derby.
    That is a pretty specific question and I suspect there is a specific derb forum as well.
    As a guess you probably failed to follow the docs on pre-reqs.

  • Sun Java System Application Server for Mac OS X ?

    hi everybody.
    does anybody know if (any given date ?) sun is planning to offer a distribution of its sun java system application server for mac os x ? or even better: any ideas on how to install a currently available version on mac os x 10.4 ? the linux bin seems not to be readable.
    thank you very much in advance, folks.
    and have a nice day
    andre from berlin, germany

    As you noticed, standalone MacOS distribution of application server is currently not available, but what you can do is to download NetBeans with J2EE bundle or Creator (for free) and install bundled Application Server on this platform. Download URLs are:
    http://www.netbeans.info/downloads/download.php?type=4.1
    (NetBeans/J2EE cobundle)
    http://developers.sun.com/prodtech/devtools/free/
    (Creator)
    Also, you can install and run Glassfish (which is open-source version of upcoming Application Server 9.0) on MacOS X:
    http://java.sun.com/javaee/glassfish/getit.jsp

  • Sun Java System Application Server Standard stops responding for no reason

    Dear Sun Users and Support.
    We ran into an issue that we can't find any cause for. For some reason our Sun Java System Application Server 8.2 Standard stops responding to HTTP calls. Even Admin console can't be invoked. The server by itself appears to be running according to the Windows Services window.
    It happens very rarely but once it happens the server needs to be restarted.
    There are no logs in the log files.
    This happens to multiple Sun Servers at the same time (As if some kind of timer shuts them off).
    The servers run on Windows Server 2003.
    Any help would be greatly appreciated.
    These servers are in the production environment and have expected uptime of 99.9%.
    Thank you.

    This has happened to us a couple of times and it was caused by Windows running out of TCP/IP connections. Next time it happens do a "netstat -an" to see if you have an extremely large amount of connections in time-wait state.
    If you do this is probably the culprit and I'm sorry to say that I don't know of a cure. From what I've heard (objection your honour, hearsay!) this is caused by bugs in Windows TCP/IP stack.
    If you require a 99.9% uptime you should perhaps consider switching to Linux or Unix. I know, easier said than done!
    Hope this helps,
    Gunnar

  • Sun Java System Messaging Server for Windows xp

    Hi,
    We are in a project that uses Sun Java System Messaging Server on Windows xp platform. But we didn't find the software download.
    Please tell how can i have that software?

    Messaging Server 6.x has never been released for Windows. A windows release is projected for the future, but that may be months away.
    Messaing 6.1 is available NOW for Redhat Linux AS2.1 u2 and Solaris X86. I have installed both, and find them both good.

  • Slow start-up for JSF projects on Sun Java System Application Server 8.2?

    App. Server: Sun Java System Application Server 8.2
    I really don't understand why a JSF project starts-up so slow on Sun Java System Application Server 8.2.
    I've gone through the "Overview of Sun Java System Application Server Performance" guide and tuned my server.
    It's not memory or processor, I am developing on a SunOS 5.8 Generic_117350-27 sun4u sparc SUNW,UltraAX-MP.
    The JSF project contains one index.jsp and one login.faces - that's it. But it takes up towards 15 seconds to load the page, if I type:
    http://<domain>:8080/login/
    I would believe that the application should be a lot faster.
    What can I do to solve this?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Yes I am.
    Right now I have:
    <!-- Faces Servlet -->
      <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup> -1 </load-on-startup>
      </servlet>
      <servlet>
          <servlet-name>Persistent Faces Servlet</servlet-name>
          <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
          <load-on-startup> 1 </load-on-startup>
      </servlet>
      <servlet>
          <servlet-name>Blocking Servlet</servlet-name>
          <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
          <load-on-startup> 1 </load-on-startup>
      </servlet>
      <!-- Preload -->
      <servlet>
          <servlet-name>Transaction Browser</servlet-name>
          <jsp-file>/transactionbrowser.jspx</jsp-file>
          <load-on-startup> 1 </load-on-startup>
      </servlet>It still doesn't work, so you may be right.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Sun Java System Web Server support for Red Hat EL 5

    Does anyone have any information when the Sun Java System Web Server might be supported on Red Hat Enterprise Linux 5 Server?
    Thanks

    Certification of RHEL5 will likely happen with one of the upcoming Update releases.
    There is, as far as I know, no reason why Web Server won't run on RHEL5 today though (I use it on Fedora Core 7 without ill effect, and the RHEL trail the Fedora releases a bit in technology versions).

  • How to access JDBC Resource registered in Sun Java System App Server ?

    I want to create a stand-alone JDBC application with Java SE using Swing technologies and JNDI technology. The purpose of using JNDI technology is to avoid change of Java Source Code every time I move the database to different location. This Java application will be used in a standalone PC installed with Windows XP Professional with no LAN / WAN connection. Of course, Internet connection is available with the PC.
    I use JavaDB to store the data tables and the location of the database is D:\E-DRIVE\SAPDEV. Tomorrow, if I move this database to C:\SAPDEV or any network drive, I do not want to change the Java Source code. I want to use JNDI which, if I am not wrong, helps developers to avoid manual change of Java source code whenever the database location is changed. Changes have to be made only in the JNDI Name which contains all relevant information about the database in order to get connection no matter where the database SAPDEV is stored; it can be placed under D:\E-DRIVE directory or C:\ directory of the hard disk. To implement my intention, I started developing Java application as per the steps mentioned below:
    Step 1:
    To proceed, first, I sought the help of Sun Java System Application Server Admin Console. I created JNDI object for Connection Pool using the menu path Common Tasks->Resources->JDBC->Connection Pools.
    JNDI Name : ABAPRPY
    Resource Type : javax.sql.DataSource
    Datasource class : org.apache.derby.jdbc.ClientDataSource
    Description : ABAP Program Repository
    The Connection Pool creation has options for General, Advanced and Additional Settings tabs and I made all the settings relevant to the database I created in D:\E-DRIVE\SAPDEV.
    To confirm whether the above settings are correct, I pressed the Ping push button which is available in the General tab of the connection pool creation screen. The system responded with the message Ping Succeeded.
    Step 2:
    I created a JDBC Resource using the menu path Common Tasks->Resources->JDBC->JDBC Resources.
    JNDI Name : jdbc/SAPDEV
    Pool Name : ABAPRPY
    Description : Database Connection for SAPDEV database
    Status : Enabled
    I can see all the above settings recorded in the domain.xml which is placed in the folder
    C:\Sun\AppServer\domains\domain1\config
    Step 3:
    I have made sure that Sun Java System Application Server is up and running in the background with JavaDB server. I created a Java Program making sure the following JAR files are included in the classpath:
    appserv-admin.jar
    appserv-ee.jar
    appserv-rt.jar
    javaee.jar
    fscontext.jar
    Plus, the lib directory of JDK 1.6 & C:\Sun\AppServer\domains\domain1\config
    Source code of the program is as follows: I used NetBeans IDE to create my project file.
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.naming.*;
    import javax.activation.DataSource;
    public class JNDILookup {
    public static void main(String[] args) {
    try {
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/sapdev>");
    } catch (NamingException ex) {
    Logger.getLogger(JNDILookup.class.getName()).log(Level.SEVERE, null, ex);
    When I attempted to compile the above program in NetBeans IDE ,no compilation error reported. But while executing the program, I got the following run-time error message:
    SEVERE: null
    javax.naming.NameNotFoundException: No object bound for java:comp/env/jdbc/sapdev> [Root exception is java.lang.NullPointerException]
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:224)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at SAPConnect.JNDILookup.main(JNDILookup.java:21)
    Caused by: java.lang.NullPointerException
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
    ... 3 more
    Now, I want to come out of this situation; at the same time, I want to preserve the settings I have made in the Sun Java System Application Server Admin Console. That is, I want to programmatically access the data source using Connection Pool created in Sun Java System Application Server Admin Console.
    I request dear forum members to provide me an appropriate solution.
    Thanks and regards,
    K. Rangarajan.

    jay44 wrote:
    Bare in mind I am attempting the context.lookup() from inside the container (my code is in a session bean). I have accessed the server and have my bean "say hello" first to verify the bean works OK, then I call a method with this rather standard code:
    String jndiDataSourceName ="Second_EJB_Module_DataBase";
    Logger.getLogger(DynamicPU.class.getName()).log(Level.INFO,"Programatically acquiring JNDI DataDource: "+ jndiDataSourceName);
    InitialContext ctx;
    try {
    ctx = new InitialContext();
    ds =(DataSource)ctx.lookup("java:comp/env/jdbc/"+jndiDataSourceName);
    } catch (NamingException ex) {
    Logger.getLogger(DynamicPU.class.getName()).log(Level.SEVERE, null, ex);
    return "Exception generated trying to preform JDBC DataSource lookup. \n"+ex.toString();
    But when I run the code the server log shows the initial context is created Ok, but an exception is thrown becasue the resource name is not found:
    (and i have tried vriations of ctx.lookup("jdbc/"+jndiDataSourceName) etc etc
    You are fine here. It works in container because the InitialContext properties have been supplied already. That was the link I forwarded earlier. The InitialContext you create locally needs to locate the container JNDI. That is what the properties specify.
    Where I am confused is where you indicate the stack below is from the server log. So, you initiate a standalone (java main method) application, create an InitialContext, and you see the results in your app server log?
    LDR5010: All ejb(s) of [EJB_Module_1] loaded successfully!
    Programatically acquiring JNDI DataDource: Second_EJB_Module_DataBase
    The log message is null.
    javax.naming.NameNotFoundException: Second_EJB_Module_DataBase not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)...
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    This is strange since I can see this resource (a JDBC connection named Second_EJB_Module_DataBase) is configured on the server from the server's admin console.
    That is why you can obtain a lookup from within the container (app server).
    For this lookup to work it may be that one must map the name inside an ejb-jar.xml deployed with the application, but I have also read some resources like jdbc connection should have a default name. Does anyone know if my lookup() should work without using an ejb-jar.xml mfile to explcitly map the reource for my application?
    Both EBJ's and data sources can be referenced via JNDI. It's a remote lookup (that is normally optimized if it is running in the same JVM). You should not have any dependencies on a JDBC data source being set-up on ejb-jar.xml. That file can of course impact your EJB's. However, data sources are normally set-up on a container-specific basis (e.g., you probably did it through a console, but there is a spec somewhere about how to set up a data source via a resource the app server looks for; it varies from app server to app server). However, once you have that container-specific data source set-up, JNDI operates vendor-neutral. You should be able to take the code above and move it to JBoss or Weblogic or Tomcat or whatever (this is an ideal, in practice, the vendors sometimes put a data source in a name you would not expect, but again, you can use their JMX console to see what the JNDI name is).
    (As I stated above if I have to use a deployment discriptor to get at this JNDI datasource, then solution is not "programmatic" as newly configured datasources could not be accessed without redeploying the entire application).
    As JSchell alluded to, you will always have at least something vendor-specific. JNDI itself (the code you wrote) is totally portable. However, you have to set the various JNDI environment properties to a given vendor's spec. Ideally, you should not need a vendor's actual InitialContext application, but it's a possibility. Once you can safely cast to Context, you should be vendor-neutral (if not, demand your money back).
    So that is exactly where I am stuck, trying to get the lookup to work and wondering if it should work without and xml file mapping the resource for my app.
    What we ended up doing for standalone was to provide our own JNDI. If you look at the open source project JOTM, there are examples on how to use that with XBean (if integrating with Spring, as we did), you can easily set up a data source that runs standalone exactly as you get in the container. Another benefit is you get full JTA/JTS support and the ability to run XA transactions. (This might all be alphabet soup, but the app server gives it to you, and this is the way we ended up doing the same: JNDI + JTA + JTS + XA). It ends up the same application code uses a "vanilla" InitialContext and all we have to do is write one or two xml files (one for our app server, a couple for JOTM), and our actual code works the same.
    I still think you have a shot at getting to the container's JNDI, just not using their full-blown app server JAR.
    I think there must be a simple way to do this with an ejb-jar.xml, I am no expert in JNDI, I could be missing something simple, I will keep at it and post an answer here if I come up with it.
    Thanks, jayIt is simple to code. Getting it to integrate with your app server, yes, that can be challenging. But it has nothing to do with EJB's. Write a simple test. Using nothing but DataSource and InitialContext. Let us know where you get stuck.
    - Saish

Maybe you are looking for

  • Dll file removal reader 8.1.1

    I tried to install 8.1.2 but received error 1714. I then tried to uninstall 8.1.1 using the uninstaller, it did not work. I then tried the manual uninstall (kb 400769). There are three dll files that will not uninstall. They are AcroIEHelper.dll, Acr

  • Vendor Evaluation Configuration

    Configuring the vendor evaluation there is no any subcriteria under "delivery" for early delivery that can be evaluated, I know we can create subcriteria, however I do not know how the new subcriteria will be evaluated if there is no any "scoring met

  • Best uses of 5G's

    I would love to see how early Video iPod owners are using their units. ie..playback video onto LCD tv screens in their car....

  • IO Operation (read/write files) in IPAD AIR downgrade ~50% than the one in IPAD4

    Summary: UnZip the same file with the same native unzip method (native zlib) in IOS7, ipad air take +50% more time consumption than the one in iPAD4. for unZip, it main perform the IO read/write files in ipad, does apple air already changes the file

  • Outlook display name issues

    hello , One user receiving an internal emails from the same person in two formats like below Lastname, FirstName ( Correct One ) - Wang, Tom [email protected] - (Wrong One) - [email protected]    but at the same time some times as you can see above h