Uninstall only Java system?

Hi
  I had already install ABAP+Java system but right now I want to uninstall only Java part of SAP system and still ABAP part of SAP system. Could you please advise me ,It's possible? How can I do or where can I get the information?
Thanks,
Beaw

Hello,
There is no way to "uninstall" only one stack (J2EE or ABAP).
Also, you can not migrate only one stack (ABAP or J2EE) without system consistemcy issues.
If you are at an early stage of your project, you may re-install.
If you are at an later stage, keep the system "as-is" and minimize the usage of the Java stack to have a minimum consumption of memory and cpu.
Setting disp/j2ee_start to false will disable the J2EE engine on startup.
Hope it will help.
Best regards.
Frank Markarian
SAP America

Similar Messages

  • Uninstalling only Java stack

    Hi,
    We have ABAP + Java stack on our PRD system.  Can we uninstall only Java stack without disturbing the ABAP stack ?
    Please suggest the procedure to perform this and also the post steps to be done if any.
    Windows 2003 IA64+ ECC6.0 + Oracle 10.2

    Hi
    In principle, waht the UNINSTALL does is:
    1. delete the relevant data from DB
    2. delete the relevant files/folders from File System.
    So if you do want to remove the Java add-in instance, you can do this manually even it is NOT recommended, main steps:
    1. delete the Java DB schema, should be SAPDB<SID>
    2. adjust the profiles to remove all the java stack relevant settings.
    3. remove the j2ee and SDM folder from file system.
    Probaly you want to uninstall the Java stack as you don't need and, by uninstallig it, the abap performance might be better,
    but to achieve this, you just need to set the rdisp/j2ee_start to 0, or just comment out all the parameters used by the java stack
    in the instance profile, and this applies to all the platform, not matter Windows or Unix.
    Here is an example of the profile parameters in <SID>_DVEBMGSXX_<hostname>
    exe/j2ee = $(DIR_INSTANCE)/j2ee/os_libs/jcontrol
    rdisp/j2ee_start_control = 1
    rdisp/j2ee_start = 1
    rdisp/j2ee_timeout = 600
    rdisp/frfc_fallback = on
    icm/HTTP/j2ee_0 = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50000
    jstartup/trimming_properties = off
    jstartup/protocol = on
    exe/jlaunch = $(DIR_INSTANCE)/j2ee/os_libs/jlaunch
    jstartup/vm/home = /usr/java14_64
    INSTANCE_PROPERTIES = $(DIR_INSTANCE)/j2ee/cluster/instance.properties
    SDM_PROPERTIES = $(DIR_INSTANCE)/SDM/program/config/sdm_jstartup.properties
    jstartup/instance_properties = $(INSTANCE_PROPERTIES);$(SDM_PROPERTIES)
    ms/server_port_0 = PROT=HTTP, PORT=8100
    Regards,
    Thunder

  • Uninstall Sun Java System Messaging Server

    Hi, I need Uninstall Sun Java System Messaging Server, but I not find a command to uninstall. Where is it? Any documentation?
    Thanks

    The uninstall program is located in:
    /var/sadm/prod/entsys

  • PI system (only Java)

    Hello All,
    Please suggest me on this:
    We want to install a PI (only java) system based on NW 7.3.  I get an option for system copy in the SMP but not for a new installation.
    Please suggest.
    Thanks and Regards,
    Ankit Mishra

    Hello All,
    I got the option in the installation master itself.
    SAP Systems>Optional Standalone Units->Process Integration and Orchestration Package.
    The Installation master was 51042158.
    Thanks and Regards,
    Ankit Mishra

  • Uninstalling an application system for ever

    Hi,
    I need to uninstall two application servers forever both are only JAVA systems. These systems has SMD configuration.
    I can stop the SMD and uninstall these application servers using sapinst and they are gone from SLD. My question is how I should remove these systems from solution manager.  If i uninstall them then also these system SMD configuration in solution manager wont be deleted. Want to know how can i delete it from my SLD, SOLUTION MANGER (SMSY,LMDB)
    I want to know the definition of removing these servers from WILY in solution manager.
    How i can remove it from SMSY and LMDB of solution manager?
    Should I process from SMSY and select those systems and delete them directly?

    Also,
    To help you further, you may refer below notes/KBA which are wonderful for this purpose.
    To remove MS from Solman
    1952567 - How to remove no longer relevant manage systems from Solution
    Manager system
    For removal of tech scenarios from MSC
    2042294 - How to Remove a Technical Scenario from Solution Manager 7.1 Managed System Configuration
    How to delete and clean.
    1954339 - How to delete an obsolete managed system in Solution Manager?
    I believe that all completes the answer you were looking for.
    Regards,
    Divyanshu

  • Change the time zone in Java System only

    Hi there,
    Does anyone knows where to change the time zone in Java system only? I know in ABAP they have t-code: STZAC? where do I change in Java? Configtool or visual admin? what is the service name or parameter for this?
    Thanks
    Kumar

    hi Kumar,
    You can change the timezone of the JVMs using the -Duser.timezone
    parameter,  add -Duser.timezone=<timezone> to all dispatcher and
    server processes in your systems, using the configtool           
    1) open config tool                                              
    2) select yes                                                    
    3) select "cluster-data->instanceXXX->serverXXX/Dispatcher"      
    4) in "Java parameters" add new line "-Duser.timezone=<timezone>"
    5) click "Apply changes"                                         
    6) restart your instance
    Let me know how is the result
    Regards

  • System Refresh Only Java part

    Hi Dear Gurus,
    I have been given a task to do a system refresh for only java part for BI ( ABAP is already done).
    please tell me what are all the precautions that to be taken while doing the java part.
    we are running on windows and Mysql.
    Please specify the steps that to be performed before doing the java part in the source system and target system.
    Many thanks for your time guys.
    Kind Regards,
    Vamsi.
    Edited by: vamsi koganti on Jan 23, 2008 1:11 PM

    Hi Dear Rajesh
    Many thanks for your reply and your time.
    Few more questions
    *deleting the contents of the global directory (pleasetell me where it is located)
    where to give the CONTROL.SQL file?
    and one more problem
    I am getting the fallowing error when i start sapinst.exe
    starting gui server process:
      sapinstport: 21200
      guiport    : 21212
      guistart   : true
      command    : "C:\j2sdk1.4.2_12/bin\javaw.exe" -cp "C:/WINDOWS/TEMP/sapinst_exe.8596.1201160177\jar\instgui.jar;C:/WINDOWS/TEMP/sapinst_exe.8596.1201160177\jar\inqmyxml.jar" -Xmx256M -Dsun.java2d.noddraw=true SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true
    guiengine: call to bind() for socket 21200 1800 failed . No error
    103 guiengine.connection.failed 21200, 943
    Exit status of child: 1
    I look in some previous post they ask the person to check the port is being used or not? how to check the port is being used or not? and how to assign this to  that port **************
    Please help me rajesh.
    Once again many thanks for your time.
    kind Regards,
    vamsi.
    Edited by: vamsi koganti on Jan 24, 2008 8:49 AM

  • Java system only Database user table name

    Hi all,
    Does anyone knows the table name of the user master data of Java only SAP system? because I want to be able to unlock the user "Administrator" if it get locked.
    Please let me know.
    Thanks in Advance!
    Kumar

    Have a look at note [669848 - Unlocking the Administrator User on the J2EE Engine/AS Java|https://service.sap.com/sap/support/notes/669848] before editing database tables.
    By the way, USR02 is a table of the abap schema. For j2ee only have a look at this message UME table names
    Cheers Michael

  • Java System Communications Express attachment problem

    Hello everyone, please excuse my ignorance on this query as I have very little to do with the Java language and I've really approached this forum as I've run out of ideas for the problem my customer has.
    The customer is connecting to a 'Sun Java System Communications Express' server, from approximately 20 PC's. 2 of the PC's have a problem that is not user based because if they sign in elsewhere their problem disappears and likewise if someone signs into their PC, they experience the same problem.
    If the user receives an email with an attachment and forwards it to a recipient, no problem.
    If the user recieves an emal with an attachment and forwards it to themselves, no problem.
    If however, the user tries to send an email with an attachment (which for all intents and purposes seems to take the correct amount of time to upload, and when you click save appears in the message attached) the attachment disappears, including if you simply save the message in drafts and do not actually send it.
    I have tried uninstalling and reinstalling versions 5 and 6 of Java, resetting the web settings using both IE6 and IE7 (unfortunately the initial secure server refuses any other connections from Firefox / Netscape / Opera / Safari therefore I can only test with IE)
    I have disabled all additional addons, disabled all non-microsoft startup services, disabled all startup programs.
    As you will appreciate, I've done a fair and reasonable amount of testing and simply cannot work out why the attachment fails to stay with the email on these two machines. Help on this problem would be very much greatly appreciated.
    Many Thanks
    Tony

    Unfortunately I do not have access to version information of the server as I am only have access to the client end. All that I can provide you with is the fact that it works on 18 identical systems. The missing attachment(s) occur regardless of whether you save the message to draft or send the message. It should be noted however that if you receive an attachment with a message and save that to drafts, the message retains the attachment so it only seems as though it is affected during the phase of attaching the file to the message from the local PC. The environment that the client is working in uses a verified certificate and is connected through https.

  • Sun Java System Web Server 7.0 available

    I am delighted to announce that Sun Java System Web Server 7.0 is now available for download, purchase, deployment, and more.
    This release builds on the highly scalable and stable heritage of Web Server. It features an entirely re-designed Administration interface designed around clusters, easy access to frequently performed tasks, simplification of frequently performed tasks., and a fully scriptable command line interface featuring functional parity with the browser-based interface.
    In addition to the administration changes this release features:
    o Full 64-bit support for Solaris SPARC and Solaris AMD64 platforms
    o Regular expression pattern matching for URL re-writing and mass hosting
    o If/Then/Else constructs within request processing
    o Advanced sed based input and output filters
    o Dynamic loading of Certificate Revocation Lists (CRLs) without requiring daemon restart
    o Elliptic Curve Cryptography (ECC)
    o Built in request mapping for protection against abnormal load patterns and Denial of Service protection
    o WebDAV ACL support
    o Out-of-box Java support for Servlets 2.4, JSP 2.0, JSF 1.1, JSTL 1.1, JWSDP 2.0 based web services
    o Java session failover and recovery within a cluster of peers
    o Integrated HTTP reverse proxy User-Agent
    o Bundled FastCGI client for use with third party scripting environments such as Perl, PHP, Ruby on Rails, etc
    o Enhancement of perfdump, stats-xml, and SNMP as well as more ability to monitor the Java container and the ACL system
    o Much more
    The software can be downloaded from:
    http://www.sun.com/download/products.xml?id=45ad781d
    The documentation is available at:
    http://docs.sun.com/app/docs/coll/1308.3

    If 7.0 was released, how come http://www.sun.com/webserver still only talks about 6.1?

  • How to make weblogic proxy to work on Sun Java system web server 7?

    Hi Every one,
    I am working on upgrade our Sun one 6.1 webserver to Sun Java system web server 7. Our website uses weblogic server to process jsp, web server only send static pages. I did all configurations as on Sun one. But somehow, the webserver does not forward "get jsp page" request to weblogic. The log record is:
    for host 10.78.124.118 trying to GET /home.jsp, send-file reports: HTTP4142: can't find /www/a/WebServer7/docs/bmd9i/home.jsp (File not found)
    home.jsp is at weblogic server.
    And redirect "NameTrans fn="redirect" from="/" url="/home.jsp"" seems does not work. when I type on IE http://32.69.253.131/ (32.69.253.131 is http listener IP), it always shows index.html page under the document root.
    Could some on can help? I am the first time to configurate web server. Thanks in advance.
    The configuration files are like:
    1. magnus.conf
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="/www/a/WebServer7/weblogic6.1sp6/libproxy.so"
    Init fn="wl_init"
    2. obj.conf
    # Copyright 2010 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="weblogic">
    #Service fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #</Object>
    <Object name="default">
    <Client method="TRACE">
    AuthTrans fn="set-variable" remove-headers="transfer-encoding" set-headers="content-length: -1" error="501"
    </Client>
    #AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="strip-params"
    NameTrans fn="redirect" from="/" url="/home.jsp"
    NameTrans fn="redirect" from="/index.jsp" url="/home.jsp"
    NameTrans fn="redirect" from="/index.html" url="/home.jsp"
    NameTrans fn="document-root" root="$docroot"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/www/a/WebServer7/lib/icons" name="es-internal"
    NameTrans fn="home-page" path="index.html"
    <If $uri =~ "/*.jsp">
    Service method="(GET|HEAD|POST|PUT)" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    </If>
    PathCheck fn="unix-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-compressed" check-age="off" vary="on"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain" charset="iso_8859-1"
    ObjectType fn="set-default-type" charset="iso_8859-1"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error"
    Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    3.mime.types
    I add one line: type=text/jsp exts=jsp

    Quick obvious question - Are you positive you're editing the correct obj.conf? Check the config directory and see if there is a second one called something like <instance>.obj.conf (where <instance> is the name of your configured instance).
    Alternatively you can grep for object-file in the server.xml to see which obj.conf the server is using:
    # grep object-file server.xml
        <object-file>bare-php.obj.conf</object-file>Assuming that you are editing the correct obj.conf file, are you making certain to restart Web Server after making your changes?

  • Regarding Sun Java System Application Server Issue with JVM

    Regarding Sun Java System Application Server Issue with JVM
    Hi
    I have installed SJSAS9.1 on solaris system. I m trying to deploy war file which i compiled in windows enviorment by jdk1.5.0_05. Every time i got the following error :
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
    PWC6199: Generated servlet error:
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler is doing
    [javac] -deprecation Output source locations where deprecated APIs are used
    [javac] -classpath Specify where to find user class files
    [javac] -sourcepath Specify where to find input source files
    [javac] -bootclasspath Override location of bootstrap class files
    [javac] -extdirs Override location of installed extensions
    [javac] -d Specify where to place generated class files
    [javac] -encoding Specify character encoding used by source files
    [javac] -source Provide source compatibility with specified release
    [javac] -target Generate class files for specific VM version
    [javac] -help Print a synopsis of standard options
    note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
    I have cheked jvm version on both system the only difference is :
    Solaris points to jdk 1.5.0_09
    Windows point to jdk1.5.0_05
    Even i tried to run blank jsp also but again i got the same error.
    Can any help me to sort out the problem or give me any idea so i can do something by my own.
    Thanks in Advance
    Gagan

    Do you have ANT installed and available?
    Thanks,
    Kedar

  • Unable to install Sun Java System Web Server 6.1 Service Pack 7 on Wndows

    Dear All,
    I recently downloaded Sun Java System Web Server 6.1 Service Pack 7 and now I am trying to install it.
    The previous version of Web Server 6.1 that i installed is running successfully on Windows 2000 Prof. though it is not meant for it.
    To install SP7, i uninstalled the previous Web Server 6.1. I also removed the folder Sun and all the child folders of it. The Sun ONE Web Server services are still available and i can't able to delete them even from registry so i disabled them.
    Then I tried to install SP7. But after few steps, it gives error:
    You already have a Sun ONE Web Server installed. Install can not proceed.
    I am sure that i am able to remove completely the previous instance of webserver as i removed all the entries from registry also and also disabled the services related to it.
    Still why i am getting this error?
    Will it work on Windows 2000 Professional like its previous version?
    If not can i able to install previous version of the Web server 6.1 (without SP7) on Windows 2000 Prof?
    Please help me regarding this.
    -Sameer

    Sameer, you should have uninstalled Web Server 6.1 using the Web Server uninstallation program instead of just deleting its files and directories. Your Windows registry is now in an inconsistent state.
    If you can restore your previous Web Server 6.1 installation from a backup, you can run the uninstaller to correctly uninstall it.
    If you cannot uninstall Web Server 6.1 using its uninstallation program, you will need to manually delete the Windows services and edit the Windows registry to remove all references to the files you deleted. Note that you can render your computer inoperable by deleting services or modifying the Windows registry. Don't do this if you're not confident with what you're doing.
    To delete the services using SC.EXE:C:\>sc delete https-admserv61
    C:\>sc delete https-hostname(You can find the hostname for the Web Server 6.1 service(s) using the Services program in the Administrative Tools folder of the Control Panel.)
    To clean up the registry, use REGEDIT.EXE to delete HKEY_LOCAL_MACHINE/Software/Sun Microsystems/WebServer.

  • 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

  • Problem of authorization in java system

    Hi all
    I have a problem of authorization.
    I have two sap system: SAP ERP, SAP Netweaver 2004s (only java).
    In my sap ERP I have configured some web services.
    Now I would use those web services from my Netweaver , so I execute those step:
    From sap erp:
    Transaction soamanagerlogon on sap erp  u201CBusiness Administrationu201D  Tab Page  u201Cweb Service Administrationu201D link choose my WS  link u201COpen Web Service navigator for selected bindingu201D now appear a login screen.
    I have created a user u201Cprovau201D with role and group everyone in the java system.
    When I try to login with user u201Cprovau201D the error message u201CYou donu2019t have authorization u2026u201D appear
    I Would know if exist something to Know the authorization to use that service to add at the user u201Cpippou201D.
    Thank you for collaboration     
    Best regards
    giovanni

    HI Thulasi
    thank you for your response.
    I opened  my browser on http://<my ip>:50000/index.html of the java system, I have choose "User Management" and
    selected my user but I didn't find the role "WSnavigator" . The roles that I have in the java system are:
    Administrator     
    CAFAdmin          
    CAFDeveloper     
    CAFUIAdmin
    Everyone
    SAP_ARCH_SUPERADMIN
    SAP_ARCH_XMLDAS_VIEW     
    SAP_JAVA_NWADMIN_CENTRAL                    
    SAP_JAVA_NWADMIN_CENTRAL_READONLY
    SAP_JAVA_NWADMIN_LOCAL
    SAP_JAVA_NWADMIN_LOCAL_READONLY     
    SAP_JAVA_SUPPORT
    Must I choose this role from visual administrator?
    Thank you for collaboration.
    Best regards
    giovanni

Maybe you are looking for

  • Java is not free and Hibernate ?

    I get information, that java is not free. I mean that if we develop for our self, it's free, but if we develop or make program and sell it, we must pay to sun. We must pay with what class or jar that we use. Is it true ? What is the meaning of hibern

  • ORA-011-2 cannot mount database in Exclusive mode

    This is brand new both Oracle 10g and SUSE 9.3 install. The installation went fine, no errors. At the end I tried to verify the installation: sqlplus /nolog SQL>connect / as sysdba Connected to an idle instance SQL>startup ORA-01078: failure in proce

  • Debugging IDOC_OUTBOUND_ORDERS

    HI, any ideas how to debugg the function IDOC_OUTBOUND_ORDERS with  message output of a purchaseorder ? I´ve made an breakpoint in the IDOC_OUTBOUND_ORDERS function and repeated the output in my purchaseorder but without success. Ideas `? Regards, Go

  • SQL prob

    sorry to ask this question here. how to compare a TEXT field in procedure??

  • SRM Certification_need help

    Hi SRM Experts, I am appearing for my SAP SRM certification in the next couple of weeks... I would really appreciate if could you help me with any sample SRM certification questions. My email id is [email protected] many thanks, niru