JNDI Service Implementation

Greetings,
I would like to create a JNDI service implementation for searching information from a database.
1- It's easy to implement such service?
2- Can I deploy the service as JNDI service a J2EE application server?
For instance, my client in J2EE would set the initial parameters in context and would access to my service implementation. This implementation could be done by J2EE modules (EJBs, and others).
However, I never done this and I don't know if it's possible and how much work it would give. Some sample of a custom service would be also very helpful.
Thanks,
Pedro Salazar

That's exactly what I'm planning!
What I want to do is having some cache in memory (~hashmap) avoiding query all the time a big database table (~about 50 million records) with concurrency updates. I think entity beans are not very suitable (however it could be planned to replace the database queries itself) but ...
Now, I really don't know if my JNDI custom implementation is replicated with the cache (hashmap), how often, what happens if a server instance reloads and how the locks are handled. What happens if I bind an object (cache) in the default JNDI tree?
It's very important that a server instance when starts load the cache from other servers to avoid a clean cache. (I could also live with a unsyncronized caches - distributed and independent caches in each server through a singleton).
I don't know if a JMX or even a RMI could help on loading the cache from other servers...
Any comments about it?
regards,
Pedro Salazar.

Similar Messages

  • JNDI service returns a different ConnectionFactory implementation

    Hello,
    I have a WebSphere server that runs a JNDI service, in which I defined an entry for a ConnectionFactory declared on a remote server. On the server I run an EJB application which connects the JNDI and gets the ConnectionFactory. I also have a stand-alone Java application which gets the ConnectionFactory from the JNDI on the server.
    The problem is that the implementation class for the ConnectionFactory I get is different between the EJB and the stand-alone applications. The stand-alone application recieves a MQXAQueueConnectionFactory, which is just fine because I want to use XA transactions, but the EJB application receives a JMSQueueConnectionFactoryHandle!
    What can be the reason for that? How does the JNDI service determine which implementation class to return?
    (I suppose that is a specific behavior for Websphere...) How can I control that, if at all?
    Thanks!

    I have a similar situation occurring. Was therre any resolution found?

  • Accessing Tomcat 4.03 JNDI service from JAAS LoginModule

    Hi!
    I have following problem:
    I have custom JAAS LoginModule that uses JNDI to lookup DataSource object.
    My LoginModule and LoginConfiguration implementation classes are located
    in Tomcat's classpath.
    I tried first to put JAAS related classes under [TOMCAT-HOME]/common/lib,
    but that caused exception:"Unable to load LoginConfiguration".
    It looks like Java's core classes have no access/visibility to classes under Tomcat.
    I'm using JAAS authentication directly from a servlet, so I'm using no
    Tomcat specific realms in authentication.
    Servlet just calls:
         LoginContext lc = new LoginContext( jaasApplName,
    customUserPasswordCallbackHandler );
         lc.login( );
    Everything works fine until LoginModule tries to lookup datasource
    after obtaining InitialContext with
              InitialContext initCtx = new InitialContext( );
              DataSource ds = (javax.sql.DataSource) initCtx.lookup(
    dataSourceName );
    I got exception with message : "Name MIPCoreDS is not bound in this
    context.".
    MIPCoreDS is configured in Tomcats configuration file server.xml under
    <GlobalNamingResources> tag.
    Should this be visible for JAAS Login module or not?
    When servlet's make same lookup under Tomcat, datasource is found fine.
    It seems that loginModules have no visibility to JNDI objects configured
    under Tomcat.
    Is this right?
    Is it possible any way to put JAAS working with Tomcat 4.0.3, so
    that LoginModules can access JNDI objects bound to Tomcat's JNDI service?
    Is it possible to call Tomcat's JNDI service outside Tomcat?
    Any help is appreciated.
    Best Regards,
    Aki

    Using JAAS in Servlets is messy - I found a working example at
    http://www.loadedanswers.com
    go to the Documents section and the eg is there.
    Have fun :)

  • Do I have to use opmn:ormi in the JNDI Service Provider URL?

    Trying to create a new Enterprise Message Source (JMS) and it's not updating the Data Object. Tested the OC4J queue using a Java POJO listener ... sending and receiving text message seems okay. I created a basic Plan (there's only one data element for now) and it is running.
    Any suggestions would be appreciated!

    Here is a document from Ranga on how to connect BAM to OJMS (hope it helps):
    Database Trigger - OJMS - BAM Integration Sample
    Last updated 07/27/05 Ranga
    OJMS setup
    Step 1 - Oc4j setup
    •     Install Standalone/Developer 10g OC4J or production version Application server.
    Developer version download -http://www.oracle.com/technology/software/htdocs/devlic.html?/technology/software/products/ias/htdocs/utilsoft.html#1012 or from http://bamqa.us.oracle.com/bamqaWiki/attach?page=Downloads%2Foc4j1012_extended.zip
    •     Modify following configuration files
    o     Add entry in <OC4J_Install_location>\j2ee\home\config\data-sources.xml for your database, use below sample replacing HOST, PORT and SERVICE_NAME in url tag
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="TTTDS"
    location="jdbc/OracleTTTDS"
    xa-location="jdbc/xa/OracleXaBamDS"
    ejb-location="jdbc/OracleEjbBamDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott"
    password="tiger"
    url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=stank04)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=db10g)))"
    inactivity-timeout="30"
    />
    o     Add a resource provider entry in <OC4J_Install_location>\j2ee\home\config\application.xml
    <resource-provider name="BAMTTT" class="oracle.jms.OjmsContext">
    <description>BAM for Generic</description>
    <property name="datasource" value="jdbc/OracleTTTDS"/>
    </resource-provider>
    Step 2 - Database setup
    •     Install 10g or 9i database, below steps will setup AQ in sample schema scott.
    •     Connect to database as sys and grant AQ permissions to scott user
    connect sys/welcome1@db10g as sysdba
    grant SELECT_CATALOG_ROLE to scott;
    GRANT EXECUTE ON DBMS_APPLY_ADM TO scott;
    GRANT EXECUTE ON DBMS_AQ TO scott;
    GRANT EXECUTE ON DBMS_AQADM TO scott;
    GRANT EXECUTE ON DBMS_CAPTURE_ADM TO scott;
    GRANT EXECUTE ON DBMS_FLASHBACK TO scott;
    GRANT EXECUTE ON DBMS_STREAMS_ADM TO scott;
    execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY', 'scott', TRUE);
    grant aq_administrator_role to scott;
    grant execute on dbms_lock to scott;
    grant execute on sys.dbms_aqin to scott;
    grant execute on sys.dbms_aqjms to scott;
    •     Connect to database as scott user and create AQ
    connect scott/tiger@db10g
    execute dbms_aqadm.stop_queue( queue_name => 'bam_ttq' );
    execute dbms_aqadm.drop_queue( queue_name => 'bam_ttq');
    execute DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'bam_ttq_tab');
    execute dbms_aqadm.create_queue_table( queue_table => 'bam_ttq_tab', queue_payload_type => 'sys.aq$_jms_text_message', multiple_consumers => true );
    execute dbms_aqadm.create_queue( queue_name => 'bam_ttq', queue_table => 'bam_ttq_tab' );
    execute dbms_aqadm.start_queue( queue_name => 'bam_ttq' );
    Database Trigger setup
    Run the following sql connected to database as scott user, it creates a trigger on EMP table.
    create or replace trigger send_recs_Employee AFTER INSERT OR Update ON EMP
    FOR each row
    declare
    xml_complete varchar2(8000);
    v_enqueue_options dbms_aq.enqueue_options_t;
    v_message_properties dbms_aq.message_properties_t;
    v_msgid raw(16);
    temp sys.aq$_jms_text_message;
    v_recipients dbms_aq.aq$_recipient_list_t;
    Begin
    temp:=sys.aq$_jms_text_message.construct;
    v_recipients(1) := sys.aq$_agent('istante',null,0);
    v_recipients(2) := sys.aq$_agent('test',null,0);
         v_message_properties.recipient_list := v_recipients;
    xml_complete :=
              '<?xml version="1.0"?><row>' ||
              '<EMPNO>' || :new.EMPNO || '</EMPNO>' ||
              '<ENAME>' || :new.ENAME || '</ENAME>' ||
              '<JOB>' || :new.JOB || '</JOB>' ||
              '<MGR>' || :new.MGR || '</MGR>' ||
              '<HIREDATE>' || :new.HIREDATE || '</HIREDATE>' ||
              '<SAL>' || :new.SAL || '</SAL>' ||
              '<COMM>' || :new.COMM || '</COMM>' ||
              '<DEPTNO>' || :new.DEPTNO || '</DEPTNO>' ||
              '</row>' ;
              temp.set_text(xml_complete);
    dbms_aq.enqueue(queue_name => 'bam_ttq',
              enqueue_options => v_enqueue_options,
              message_properties => v_message_properties,
              payload => temp,
              msgid => v_msgid );
    End ;
    BAM Setup
    •     Administrator - Fix the classpaths for oc4j jar files for Oracle (AS JMS and OJMS) Message source type using the OC4J_Install_location. If you are using production App Server you need to add extra classpath entry <App Server Location>\opmn\lib\optic.jar
    •     Architect - Create a new Enterprise message source of type Oracle (AS JMS and OJMS)
    Initial Context Factory:      com.evermind.server.rmi.RMIInitialContextFactory
    JNDI Service Provider URL:      o     For Standalone oc4j: ormi://machine name/
    Where machine name is OC4J installed host
    o     For Production App Server: opmn:ormi://<machine name>:<opmn request port>:home
    Where machine name is App server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
    TopicConnectionFactory Name:      java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
    Topic Name:      java:comp/resource/BAMTTT/Topics/bam_ttq
    JMS Message Type:      TextMessage
    Durable Subscriber Name (Optional):      Istante
    Message Selector (Optional):      
    Client ID (Optional):      ClientID
    Name     Flow name     Type     Max size     Formatting
    row.     row.     String     4000     (none).
    •     Enterprise Link Design Studio – create a basic plan with
    o     Oracle BAM Enterprise Message Receiver, selecting the message source you created in above step.
    o     Display sink Grid
    •     Create file jndi.properties in C:\Program Files\Oracle BAM\j2re1.4.1_01\lib with entries
    java.naming.security.principal=admin
    java.naming.security.credentials=welcome1 (App server/Oc4j password)
    Running
    •     Start OC4J
    •     To enqueue messages update or insert records in EMP table connected to database as scott user
    Insert into emp values (&empno,'FORD','ANALYST',7566,sysdate,60000,3000,20);
    •     Run update on the enterprise plan
    In above sample no parsing of the data is done, its got as one single string.
    OJMS setup
    Configuring JMS
    http://www.oracle.com/technology/books/pdfs/2352_Ch06_FINAL.pdf
    Oracle® Application Server Containers for J2EE Services Guide 10g Release 2 (10.1.2) for Windows or UNIX
    http://iasdocs/iasdl/101200doc/web.1012/b14012/toc.htm

  • How to change JNDI service provider for EJB's?

    I need EJBean's home interface to be bound to another JNDI provider, not Weblogic.
    How can I do it?
    The most simple solution is not working: to specify <jndi-name> in weblogic-ejb-jar.xml
    for bean as "xxx:bean_name".
    By JNDI rules for such names context factory with name com.sun.jndi.url.xxx.xxxURLContextFactory
    will be used. But for Weblogic this does not work. An exception is thrown during
    bean deployment -
    javax.management.MalformedObjectNameException: ObjectName: Invalid value -> xxx:bean_name
    at javax.management.ObjectName.validateAndAdd(ObjectName.java:440) at javax.management.ObjectName.initObjectName(ObjectName.java:409)
    at javax.management.ObjectName.<init>(ObjectName.java:254) at weblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:196)
    at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:90)
    at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:83)
    at weblogic.ejb20.internal.BaseEJBHomeMBean.<init>(BaseEJBHomeMBean.java:33) ......................

    This is not an answer on my
    question - My questions was: how to force a Welogic EJB Container to BIND EJBean's
    home interface to another JNDI Service provider, not Weblogic.
    But you wrote how to use JNDI in general - I already know how to use it :)))
    Phil.
    "VSK" <[email protected]> wrote:
    Hi
    Have a look at the code below
    private Context getInitialContext () throws NamingException
    String from = "CtxHelper::getInitialContext ";
    String webLogicHostUrl = t3://SERVERNAME:9001
    Logger.debug(from, "Begin Method", 3);
    Hashtable h = System.getProperties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory
    h.put(Context.PROVIDER_URL, webLogicHostUrl);
    return new InitialContext(h);
    } //end getInitialContext
    This way we will get the InitailContext and then do a jndi lookup using
    the
    Context object as follows
    ctx.lookup..........
    Now in the above code replace weblogic.jndi.WLInitialContextFactory by
    ur
    provider.
    Hope this helps.
    -VKS
    "Phil Peshin" <[email protected]> wrote in message
    news:[email protected]...
    I need EJBean's home interface to be bound to another JNDI provider,not
    Weblogic.
    How can I do it?
    The most simple solution is not working: to specify <jndi-name> inweblogic-ejb-jar.xml
    for bean as "xxx:bean_name".
    By JNDI rules for such names context factory with namecom.sun.jndi.url.xxx.xxxURLContextFactory
    will be used. But for Weblogic this does not work. An exception isthrown
    during
    bean deployment -
    javax.management.MalformedObjectNameException: ObjectName: Invalidvalue -> xxx:bean_name
    at javax.management.ObjectName.validateAndAdd(ObjectName.java:440)at
    javax.management.ObjectName.initObjectName(ObjectName.java:409)
    at javax.management.ObjectName.<init>(ObjectName.java:254) atweblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:196)
    atweblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelega
    te.java:90)
    atweblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate
    ..java:83)
    atweblogic.ejb20.internal.BaseEJBHomeMBean.<init>(BaseEJBHomeMBean.java:33)

  • "No service implementation available" with adhoc template in 1.3

    Hello
    I'm trying to use the adhoc template available since 1.3, using "X" global variables for connection name, system, query name and query type ...
    And I systematically get the error message :
    "No service implementation available"
    query could not be loaded
    I know that some have faced this issue and that it's known from many specialists here...
    - I've checked that everything is OK when I don't use the variables and execute the adhoc template app as a standard one (incl. the DSource, everything works well).
    - I've also checked that the olap connection language was not saved (it solved most of the cases described in the community)
    But I still have it.
    Any idea?
    Thanks a lot in advance
    Best Regards

    Hello Karol
    Thanks a lot for your answer.
    In fact it all has to do with events order : datasource manually assigned in designer will be initialized before X parameters evaluation, so if this datasource is an inexisting one, I'll get an error message before X parameters evaluation.
    Understood!
    It's not a problem to manually assign the datasource in designer.
    By the way, if you refer to Michael Howles "making-adhoc-analysis-template-images-and-css-work" document, you have to manually set at least the datasource connection, whether or not it is replaced at run time by XSYSTEM parameter, to make the template work on BI platform.
    So it works with a manually assigned query, as soon as this query exists : OK it's useless in case of X parameters usage, as this query will be initialized and immediately replaced by the one defined in the XQUERY parameter, but it works. It was not working for me (no effect from X parameters) because the manually assigned query was wrong and execution was some kinda stopped after the error message.
    Question)
    Finally, this template doesn't work for me (same error message : no service implementation available) if I use the system alias in the XSYSTEM parameter (for example "B73"). It works only if I use the cuid of the OLAP connection defined in the CMC (...&XSYSTEM=cuid:AUoUxgljSKNFkFeselrOJ1Q&XQUERY=DSTUDIO_DASH_4&XTYPE=BW). When I look at the adhoc template start up script :
    DS_1.assignDataSource(XSYSTEM, DataSourceType.QUERY, XQUERY);
    the assigndatasource method first parameter is supposed to be set with that kind of cuid : even if the contextual help describes a "Q99" parameter as an example - i.e. the connection name - in fact it doesn't accept this "name" format ; furthermore, using the wizard leads to a cuid anyway!
    DS_1.assignDataSource("cuid:AUoUxgljSKNFkFeselrOJ1Q", DataSourceType.QUERY, "DSTUDIO_DASH_4");
    I guess it's not normal, because both contextual help, documentation and tutorial (where "HBW" is used as XSYSTEM parameter) would then be wrong, and because this template would not be user friendly at all, if cuid were mandatory, as no one knows them by heart.
    So where did I go wrong? Do you have any idea why I can't use connection alias ?
    Thanks in advance,
    Regards
    Rémi
    DS 1.3 SP0, BI Platform

  • Service implementation in ABAP

    This is regarding,
    From proxy generation to service implementation. I have successfully created service interface at my PI 7.1 EHP1 system and I went to my ECC box and from sproxy I developed my server proxy and the code is ready to give the result.
    Now I am trying to enable the service from my ECC box. So from my ECC I did the soamanager->Application and Scenario communication -> single service Administration. Here for my created service I am trying to create the service enablement and end point creation.
    But here it is showing an error as, Error: Preconfiguration is invalid
    Also when I check the classification tab, there the classification value is not released, I hope it should be Released.
    For this please kindly suggest any preconfiguration is required for my SAP ECC box to service registry. If need please inform the configuration details.
    Where as my PI 7.1 ehp 1 service registry configuration is working fine.
    BTW my user having the authorizations, UDDI_Admin, SERVICE_REGISTRY_READ_WRITE.

    Hi,
    Please check below thread.
    Logical ports - SRT Framework exception: Preconfiguration is invalid
    Hope this helps.
    Regards,
    Deepak.

  • No Service Implementation Available

    Hi Gurus,
    I have issue when I am executing Bex Query in Browser( Able to execute same query in Analyzer ). Below are the error details
    Diagnosis
    You have attempted to open query ZSD_MF02_Q001_PERFMANCE from the Query Designer. However, this query does not exist in the database in the system to which you have made a connection.
    System Response
    Opening the query was terminated.
    Procedure
    Make sure that you have connected to the correct BW system. Note: The query may have been deleted by another user.
    Cannot load query "ZSD_MF02_Q001_PERFMANCE" (data provider "DP_1": No service implementation available).
    If I need to configure any settings in SPRO, please advise me the steps.
    Your quick help is really appreciated.
    Thanks
    Ganesh Reddy.

    Hi
    You have attempted to open query ZSD_MF02_Q001_PERFMANCE from the Query Designer. However, this query does not exist in the database in the system to which you have made a connection.
    You are able to open your Query in Browser because it is saved in the History. But actually, the query is deleted from the Analyzer(May be by other User).
    Best Approach:
    Goto Query designer and check whether the Query is available or not?
    Goto RSRT and make necessary Cache settings and Query Read Mode in Properties tab.
    Check the query in RSCRM_BAPI t-code for inconsistencies.
    You may get some clue.............
    Regards,
    Suman

  • Web Service Implementation Heavily Based on The Singleton Pattern

    Dear all
    I have recently joined a project that is 2/3 through development of a medium sized application providing synchronous and asynchronous implementations for a number of Use Cases exposed as Web Services. The design is one that I have not come across before and am keen to understand.
    Web Service calls enter the application through a singleton, which in other respects is a POJO. This class manages a number of instance variable references to other classes responsible for implementing each Web Service method, including data access using Hibernate. Since the top level singleton class is, well, a singleton, I understand this to mean that all of the other classes maintained as instance variables will themselves only ever have one object instantiated (assuming of course that no other thread of execution instantiates them except our singleton WS entry point). To my way of thinking this turns the whole of the Web Service implementation into a kind of singleton application. This strikes me as a procedural programming idiom that happens to be implemented using Java, since Objects with state are not being used. I have not yet asked the question "why?" of my new colleagues but I would like to ask you what the consequences of this design are likely to be. Particularly considering that this application will be expected to handle concurrent servicing of Web Service requests - and so be thread-safe. Can it be thread safe? Are there likely performance implications? Forgive my ignorance is what I describe known as a Singleton Web Service?
    Regards
    David

    Web Service calls enter the application through a
    singleton, which in other respects is a POJO. I'm confused about this sentence. Is the application somehow separate from the web service? Is the application acting as a service to this web service? How is the application being hosted? Does it run in a container as well?
    This
    class manages a number of instance variable
    references to other classes responsible for
    implementing each Web Service method, including data
    access using Hibernate. If all the references are stateless, preferably interfaced-based, you aren't likely to have thread issues.
    Since the top level
    singleton class is, well, a singleton, I understand
    this to mean that all of the other classes maintained
    as instance variables will themselves only ever have
    one object instantiated (assuming of course that no
    other thread of execution instantiates them except
    our singleton WS entry point). To my way of thinking
    this turns the whole of the Web Service
    implementation into a kind of singleton application.You keep using web service and application. Are we just talking about a web service implementation here?
    This strikes me as a procedural programming idiom
    that happens to be implemented using Java, since
    Objects with state are not being used. You are correct, sir. If services are stateless, and they should be, then they aren't exactly rich objects with state and behavior. It's very procedural, indeed.
    I have not
    yet asked the question "why?" of my new colleagues
    but I would like to ask you what the consequences of
    this design are likely to be. Particularly
    considering that this application will be expected
    to handle concurrent servicing of Web Service
    requests - and so be thread-safe. Can it be thread
    safe? If the web service is indeed stateless, then it should be thread-safe.
    Are there likely performance implications?Maybe. Best to measure if those arise to see if the web service is the cause.
    Forgive my ignorance is what I describe known as a
    Singleton Web Service?I don't know if it's been given a pattern name. If it's a Singleton, then that's true. If it's a service, that applies. If it's deployed on the web, I'd say the label fits.
    %

  • Repository service implementation: custom property

    Hi,
    Is there any sample implementation of repository service for custom properties?
    I tried with eclipse PDK plug-in to create and deploy. but no success. Any pointers for repository service implementation docs ?
    thanks in advance for any help in this regard.
    John

    Hi John,
    there is no deep doc on RepServices. Primarily, search on the forums. Maybe Permissions on XML Forms resources is a good starting point for you?!
    Additionally, to add custom properties (I think you think about configuration properties?!) you'll have to understand the config framework and it's file structure.
    For this, have a look under src.config of you project created by the wizards; watch how they are deployed; and compare other configurations you can find within CM with their corresponding configuration files. That's the best way to get behind the secrets
    Hope it helps
    Detlev

  • Service Implementation Error in PO_APPROVAL Apps

    Any body can help in this,
    when we are trying to open the service implementation of 'ZGBAPP_POAPPROVAL ' seystem is redirection us to class builder page of ' /IWFND/CL_MGW_RUNT_RCLNT_PRXY' but it suppose to go to the display service page of GBAPP_POAPPROVAL.
    Tags edited by: Michael Appleby

    Hi Niladri,
    Adding to Masa's comments,
    It is taking you to class builder screen in gateway itself, coz you have assigned local alias to your app specific services.
    In general, if you click service implementation from /IWFND/MAINT_SERVICE after double clicking on PO approval service, you should see this screen : It will take you to your backend erp system.
    So please check if you have assigned system alias of your back end system for application specific services. For task processing service only it will be local alias, rest will be of of type /iwpgw/bwf (backend) (This is in case you have gateway and backend in different system, if 1 system only gw and erp is there, thn you have to give local )
    Also please specify your system architecture. Is GW system and ERP system is sitting in same system or different.
    Regards,
    Tejas

  • Service Implementation methods in SEGW Transaction

    Hi Experts,
    I have created a project using SAP NetWeaver Gateway Service. In service implementation node, there is five methods. In this section, I have faced problems and have confusion. I am trying to explain my problems in below -
    1. What are purpose for every individual method? In which requirement, which method I need to implement ?
    2. Suppose I have implemented all five methods individually and I want to test the update method. How to execute update method and get_entity_set method in browser?
    Kindly provide the details for above problems.
    Thanks in Advanced,
    Regards,
    Arindam Samanta

    Hi Arindam,
    you can refer my blog Let’s code CRUDQ and Function Import operations in OData service! where I explained purpose of individual method and its implementation.
    Regards,
    Chandra

  • OAAM web services implementation class for WebSphere 6.1

    Hi All,
    My client is running OAAM 10.1.4.5 and looking to migrate to WebSphere 6.1. I'd like to replace the (default) Apache Axis web services implementation class with a custom-built WebSphere 6.1 implementation class. Does anyone have any code they'd been willing to share?
    Regards,
    Steven

    It is may be because BO is not ready for Java 2 and you can find more info about readyness of applications at
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/csec_rsecmgr2.html
    I am not sure if BO is prepared for the very fine-grain access control programming model that Java 2 security is capable of enforcing.
    May be some one from PG should be able to answer readyness of BO with Java2.
    -Gokul.

  • J2EE service implementation

    Hi,
    having the portal service implementation from earier times in mind and
    look for a way to write a backgroung job, which will be started when the webas instance is started.
    Therefore each portal service implements the start() method.
    Does the webas provide possibilities to write J2EE services?
    Thanks,
    Jens

    for CE solved by using jobs...
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/2da75e13363f0ae10000000a114a6b/frameset.htm

  • Does client container provides JNDI services?

    I'm confused in a client side JNDI lookup question. A requirement to me is to obtian ConnectionFactory from JNDI and connect to a EIS via client-side Resource Adapter, but on my client side, the JNDI string is java:comp/env/eis/local/ABC. I'm wondering does client container provides JNDI services? I'm a newbie on this, so any help will be apreciated. Thanks!
    [email protected]

    I am just pasting some contents regarding this. This may solve ur doubt
    Obtaining the InitialContext Using the Client's Environment
    The properties can be initialized in the client's environment, thus avoiding the need to hardcode the values for these properties inside the client's code. To do this, the following environment variables must be set. If any of the properties isn't set, its default value (if any) is assumed:
    java.naming.factory.initial? Provides the value for Context.INITIAL_CONTEXT_FACTORY
    java.naming.provider.url? Provides the value for Context.PROVIDER_URL
    java.naming.security.principal? Provides the value for Context.SECURITY_PRINCIPAL
    java.naming.security.credentials? Provides the value for Context.SECURITY_CREDENTIALS
    These properties may be set in the Java runtime's system properties, or in cases of an applet, in the applet's parameter list.
    Another way of setting these properties in the JNDI environment is by the use of resource files. A resource file is a flat file containing key-value pairs that define the JNDI's environment. The keys are the different properties that have been discussed in this section. This file should be named jndi.properties and should be available in the application's class path. In addition to this, JNDI also looks for the jndi.properties file under the lib/ subdirectory under java.home. All the readable resource files are loaded into the application's environment. In most cases, if the same property is defined in different resources, the first value found is used. In a few other cases, where it makes sense, the values found in the different resource files are concatenated.
    After these properties have been set, you can initialize the InitialContext simply by invoking its default constructor:
    Context ctx = new InitialContext() ;
    You can find this example in ch08/com/wlsunleashed/jndi/Example2.java. This example obtains the InitialContext object from the WebLogic Server and tries to looks up javax.transaction.UserTransaction. To execute this example, start the WebLogic Server instance in your local host, listen in port 7001, and execute the corresponding class. Pass in the different fields discussed in this section as command-line parameters. For example, you can execute the class file using the following command line:
    C:> java -Djava.naming.factory.initial=
    weblogic.jndi.WLInitialContextFactory
    -Djava.naming.provider.url=t3://localhost:7001
    com.wlsunleashed.jndi.Example2
    Experiment with this example a little more by creating a jndi.properties file and putting it in your classpath. Now execute this class without the command-line arguments. You'll get the same results. Perform the test again, but this time provide the command-line arguments along with the jndi.properties file. Make the port number in the command line incorrect. You'll notice that the value provided in the command line is used, and the class file errors out. It's quite easy to notice that the command line gets precedence over the jndi.properties file.

Maybe you are looking for