Using Portable datasource lookup for a java client in OC4J 10g

Hi,
I'm in the process of porting a standalone java client to j2ee. At the moment I have a thick java client which uses jndi to access a global datasource configured on the OC4J server (10.1.2.0.2) and it works fine.
Using the 'Services Guide' I decided the next step was to deploy the client as a J2EE application. At the moment the j2ee application only contains the descriptors (i.e application-client.xml and orion-application-client.xml packaged under META-INF in a .jar. This is, in turn, packaged in an .ear along with application.xml (again under META-INF.)
This is where I'm hitting problems. The following config produces a 'javax.naming.NameNotFoundException' error
application.xml
<application>
     <display-name>appName</display-name>
     <description>appDescription</description>
</application>
application-client.xml :-
<application-client>
     <display-name>appName</display-name>
     <resource-ref>
          <res-ref-name>jdbc/MaptoTest</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
     </resource-ref>
</application-client>
orion-application-client.xml :-
<orion-application-client>
     <resource-ref-mapping name="jdbc/MaptoTest" location="jdbc/Test"/>
</orion-application-client>
jndi.properties :-
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.provider.url=opmn:ormi://<machine>:6004:<OC4J_INSTANCE>/appName
java.naming.security.principal=<USERNAME>
java.naming.security.credentials=<PASSWORD>
client.class
ctx = new InitialContext();
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/jdbc/MaptoTest"));
"jdbc/Test" was configured through OAS and is present in data-sources.xml (it is the ejb-location property).
I'm running the client through Jdeveloper. I've used SJSAS previously and was use to configuring and deploying a application module through it's own tool. SJSAS also has a tool (appclient) for running the client. Is there something similar I should be using in OC4J?
The services guide only mentions web.xml and ejb-jar for portable datasource lookup but I assume it's also possible using application-client.xml.
It seems to me that my descriptors don't mention the j2ee application explicitly. Am I missing an entry in one of the xml descriptors. Any help would be appreciated this is driving me crazy!
Thanks in advance for any advice.

Hi Geoff,
The configurations for your client.xml files look ok. Question: where did you configure the datasources.xml i.e. under j2ee/<OC4J_Name>/config or under the application-deployments/<appname>, kindly check and let us know.
Thanks,
Deepak

Similar Messages

  • Deliverables for non-Java clients

    I'm trying to write my first web service. My server code can be in Java but the client system cannot use Java anything. I'm looking at the Java web services tutorial provided by Sun and it seems to assume a Java client. Do I need to go elsewhere for a tutorial that will show me how to construct a web service that does not assume a Java client? I also won't be using the Sun ap server but tomcat, so I wonder if again that's a reason to not use the tutorial. Suggestions? Thanks.

    I'm trying to write my first web service. My server code can be in Java but the client system cannot use Java anything. I'm looking at the Java web services tutorial provided by Sun and it seems to assume a Java client. Do I need to go elsewhere for a tutorial that will show me how to construct a web service that does not assume a Java client? I also won't be using the Sun ap server but tomcat, so I wonder if again that's a reason to not use the tutorial. Suggestions? Thanks.

  • How to configure OWA in multiple AD sites when using one entry point for external OWA clients ?

    Using Exchange 2013 (e2013), SP1.
    Three locations.  (Let's say  Location-A, -B, and C.)
    Each Location is an AD site, and physically "remote" from the others.
    Each location will have one e2013 server,  each server running both CAS and Mailbox function.
    The main location ( LOC-A) is where all external OWA and EAS will "enter" from the Internet, via a firewall.
    The E2013 server there will "connect" (?) to the e2013 server for "this mailbox",...at any of the 3 locations.
    What "special" configuration do we need on the 2 remote/other e2013 servers for OWA virtual directory (or similar).
    It looked like it was working "out of the box".
    Some users work OK, with no special changes to anything.
    But some users have OWA in a "never ending wait" (browser appears to spin forever), 
    and that might be due to a different Language at the other locations.
    I guess Exchange knows how to "internally route" the OWA traffic from the LOC-A CAS to the LOC-B CAS.
    (In Exchange 2007 we called this "Exchange CAS proxy" as I recall, but not sure that term is correct in e2013.)
    Thanks.
    ==

    Hi,
    L-A
    L-B
    L-C
    User-A
    User-B
    User-C
    Mailbox-A
    Mailbox-B
    Mailbox-C
    CAS-A
    CAS-B
    CAS-C
    Exchange-A
    Exchange-B
    Exchange-C
    User-A logon OWA in L-B.
    Based on my knowledge, if User-A logon OWA in L-B, CAS-B would accept the request first.
    Then it detect the User-A's mailbox located in L-A. CAS-B will proxy this request to CAS-A.
    I find a great blog for your reference:
    Client Connectivity in an Exchange 2013 Coexistence Environment
    http://blogs.technet.com/b/exchange/archive/2014/03/12/client-connectivity-in-an-exchange-2013-coexistence-environment.aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • Message-Mapping: Use same RFC lookup for different target fields

    Hello,
    I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
    Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
    If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
    The input parameter (=source field value) would be the same.
    Thank you for your advice!

    Exactly.
    Here is a UDF example I have that you could adapt to your needs.
    Set
    public String setCounter(String a,String b,Container container){
    /* Store values in global datacontainer
    a: mapping value and return valueparameter
    b: name for stored value parameter
    GlobalContainer myGlobalContainer;
    myGlobalContainer = container.getGlobalContainer();
    myGlobalContainer.setParameter(b.toUpperCase(), a);
    return a;
    Get
    public String getCounter(String a,Container container){
       //write your code here
    GlobalContainer gc = container.getGlobalContainer();
    if (gc.getParameter(a) != null) {
      return String.valueOf(gc.getParameter(a));
    } else {
    return "1";

  • I look for a "java client IRC applet"

    Hello every body and good hollydays!
    For long time, I looked for a open source java "client irc" applet.
    I have found one, but it does' n run! (it needs to be signed and unfortunatly
    I don't doing it !).
    Briefly i need links about all this subject.
    A great thanks.
    elias

    Search in google by "java client IRC applet" found many different links :-)

  • Using portable hard drive for iTunes

    I have windows 8 and am having a hard time figuring out how to use my portable hard drive for iTunes. I have all my media on the portable hard drive in a folder named iTunes. When I change it in iTunes to use that folder none of the media I have in there shows up on iTunes. Can someone please help me out?

    I dragged the folder to iTunes and Its "adding files now". Isn't that putting all the media on the PC? I don't want any of my iTunes media on the PC. I want iTunes to use the portable hard drive to get my media.

  • Use dot matrix printers for printing text reports in Reports 10g

    In Forms 6i, customers had the option to use dot matrix printers for printing text reports.
    I believe, from 9i onwards, text based reports aren’t supported and instead HTML/PDF,DOC,RTF reports are supported which are not text based and use modern day printers.
    Is it still possible to use text printers ??
    Regards,
    Noman

    hi
    check out the following link.
    Re: Is printing to generic text printer and hand-coding the report possible?
    http://download.oracle.com/docs/html/B10314_01/pbr_uxprt.htm#1005700
    sarah

  • Use portable hard drive for Time Machine & other things

    I recently purchased a 1 TB portable hard drive. I'd like to use it for my Time Machine backups, as well as moving my iTunes library there. Is this an easy change? I'm not super familiar with hard drive set ups. Will I have to create any partitions on the drive?
    Thanks!

    You're welcome. Make sure your drive is formated as Mac OS Extended (journaled), GUID partition table.
    Here's a nice link to use for Time Machine information.
    You can partition the drive if you want to organize your various backups. For example you might create a Time Machine partition and Other Files partition. When Time Machine is working, it creates a folder (Backups.backupdb) and places the Time Machine backups in that folder. The rest of the partition is open to add whatever you want. I have multiple partitions on my USB external drive with Time Machine backups separated from other backups.

  • Using Lion Server Radius for authenticating "other" clients

    Hi I've been trying to get the Radius service in Lion Server to authenticate users of my SQUID web proxy. I have followed the squid wiki's instructions to configure the squid server as a radius client and pass authentication requests to the Lion Server Radius (I hope). However I'm trying to configure and test the Lion Server Radius. As Lions Server Admin GUI for radius only lets to add Airport Basestations, I've been trying to dig around for what underlying config files to edit.  I have tried 2 methods of adding the client details to radius:
    1. By editing the /etc/raddb/client.conf, and adding/changing (for example):
    client localhost {
         secret     = mysecretpassphrase
    client 192.168.0.0/24 {
         secret              = mysecretpassphrase
         shortname       = local-lan-clients
    and restarting squid. Nothing seems to get mentioned in the radius log file! So I'm not completely convinced that the Lion Radius took any notice of this!
    2. Instead of above, added the same client info using radiusconfig:
    $ sudo radiusconfig -addclient 192.168.0.0/24 local-lan-clients other <return>
    - then it prompts for the secret. With this command I notice the entry/event is recognised in the radius log file, and also looks like some SQL activity. If I dont specify "other" for the nas-type, it defaults to "Aiport Base Station" or similar.
    OK, so forgetting about SQUID for a minute, I can't even get that far as I'm just trying to test the config using the "radclient" utility from the Lion Server and the squid server:
    $ sudo radclient localhost auth mysecretpassphrase <return>
    and... no response, just hangs, nothing in radius log either.
    The Lion Firewall allows TCP and UDP requests into the Radius authentication port.
    Any ideas what else I need to do? Scratching my head, I'm wondering if it is anything to do with SSL? e.g. do I need to make the authentication using the self-signed certificate that Open Directory has? I presume any Airport Base Stations added to radius will use this certificate to establish a secure connection for authentication.

    The RADIUS server in OS X Server is a standard FreeRADIUS implementation with Apple's own custom GUI frontend for configuring it and which only allows adding AirPort base-stations. In Mountain Lion Server it is even limited to a specific configuration for the AirPort base-station.
    However if you follow the normal command-line instructions and steps for configuring FreeRADIUS then it will be possible to add any type of RADIUS client.
    While as far as I can see by manually configuring the FreeRADIUS server in OS X Server should enable you to do what you want, most people chose to configure Squid to use either a PAM or the LDAP modules for Squid to in this case authenticate directly to Open Directory (which is of course based on LDAP).
    I myself have used a PAM in the past with Squid to successfully configure Squid to authenticate users via Open Directory. I was even able to specific an Open Directory group and only allow members of that group access via the Squid Proxy Server. I then went a bit OTT and set up another open-source tool (which was discontinued and I had to fix to get working) to process the Squid logs and store them in MySQL, and then setup FileMaker Pro to connect to the MySQL database via ODBC to allow producing reports.
    Unfortunately the AFP458 website had a major redesign a while ago and many previous technical articles on it are now hard to find. I had used two articles on that site to guide me through setting up Squid and the PAM on a Mac server. I believe the two articles I used are the ones listed below.
    http://afp548.com/2004/09/08/using-os-x-open-directory-to-authenticate-squid-pro xy-server/
    http://afp548.com/2004/12/13/squid-server-using-ldap-authentication/

  • Using Eclipse Ant tasks - for web service client creation

    Hi,
    I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
    As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
    Please do let me know if anyone have any ideas on this asap.
    Thanks,
    Roopa.

    Hi,
    I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
    As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
    Please do let me know if anyone have any ideas on this asap.
    Thanks,
    Roopa.

  • Possible to use 2 tnsnames.ora for just one client?

    Hi,
    in our organisation we have two different tnsnames.ora files. This because of the
    fact that there are remote locations each with their own IT department. Each department maitains their own databases, but applications are spread over the whole organisation.
    What I would like to to create is a tnsnames.ora in which there is an e.g. include c:\oracle\tnsnames.ora and include c:\oracle1\tnsnames.ore. Would that be possible?
    Fred

    If what you want to achieve is a situation where different users use the same PC, but you want to limit the tnsnames they have access to, what if you try setting the TNS_ADMIN environment variable to point to the permitted directory for each user env profile.
    e.g
    user1
    TNS_ADMIN=c:\oracle\network\admin\user1
    c:\oracle\network\admin\user1\tnsnames.ora
    c:\oracle\network\admin\user1\sqlnet.ora
    user2
    TNS_ADMIN=c:\oracle\network\admin\user2
    c:\oracle\network\admin\user2\tnsnames.ora
    c:\oracle\network\admin\user2\sqlnet.ora
    etc.

  • How to make use of a proxy for a java program

    Hi all..
    Instead of entering in command prompt
    java -Dhttp proxyHost="255.255.255.255" -Dhttp.proxyPort ="XXXX" classname
    how can we set the details in the program itself...
    Any suggetions will be greatfull...

    Dhaval.Yoganandi wrote:
    why do you think this is valueless ?Because they don't mean anything, can easily be gotten without writing good answers (cheating) and are usually rewarded by those who had the question and thus aren't in the best position to judge if an answer is a good one.

  • Java Client Proxy Debugging

    Hello Folks,
                        I am trying to implement the java client proxies for one of my requirements...
    i have used the guides provided for the java client proxies in SDN and trying to implemented the same (Mine is asynchronous..)
    so far I have been able to deploy the EJB into the PI system and able to acces the JSP pages...when i submit the request using jsps..i am not able to see the entry in PI Moni.....and also unable to pinpoint the error ...
    i have used the user role which consists of J2ee login crendetials also...
    My requirement is JSP->Java->Ejbs->XI->DB...  like shown in java proxies guide by sudhir......
    I am not able to see any logs related to errors in defaulttrace and applications log files also...
    Could someone help me in this regard...
    Regards
    Rajesh

    Provide a JSP error page and write the exceptions of the java proxy call to that screen.

  • Using UDS Server with Java Client

    Has any one used a UDS Server and a Java client. we are trying to do this on a Crucial application and we are facing a problem of passing Objects between the server and client. If the Object being passed has a SO associated then it is possible to get a Distributed Reference and there is no problem in this scenario. But when the object is just distributed(or may not be) then we are not able to get a distributed reference. How do we handle such objects.
    Any quick help would be appreciated.
    Thanx

    We are passing object information instead of the objects right now. We used CORBA for the communication and XML for the message to be sent over CORBA. We built an API of five different generic calls which handles every situation. We used reflection to deserialize into and out of XML. We had to have matching classes for each language. If the attribute wasn't present in our target class then we ignore it. This is due to java and forte objects having stuff under the covers that we didn't need for the other language but reflection can see them.
    --Scott Bechtel
    [email protected]

  • Use Enterprise portal theme for Web Client

    Hi Experts,
    I am new to this topic.
    I am working in portal project. We have situation that in portal we have excellent theme but in CRM Web client we donu2019t have fantasy theme like portal.
    Is there anyway can I use my portal theme for CRM web client?
    If you guide me how to integrate portal theme into CRM Web UIs, that will be great.
    Thanks.

    Ashok,
    There is no easy way to extend your portal theme to the CRM WebClient. Lot of effort is needed for identifying the portal CSS files and updating CRm WebClient theme CSS files with the portal theme attribute values.
    Thanks,
    Thirumala.

Maybe you are looking for

  • Disable css in dreamweaver CS4

    Hello to all,  I'm having problems with the new version of dreamweaver 4 that I downloaded from adobe and I'm trying.  In the previous version of dreamweaver cs3 (general), and in preferences could be disabled ing the use of css, using only the html

  • How to create a user parameter for a report

    Hi, I am writing a report in ORACLE 6.0, and I need to create a user parameter for my report. My database includes fields: item_id, item_cost, and item_desc. What I want to do is: set up a user parameter for item_cost, and the report will prompt the

  • Calling a sub screen in an normal screen

    Hi, In module pool program i am having a normal screen 9000. In this normal screen i have call subscreens depending on the radio buttons the user selects. can we do like that. that is if one radio button one sub screen should be triggered and remaini

  • Ghost Panels and Misplaced Tool Sub-Menus?

    I have a dual-monitor setup and after upgrading from CC to CC 2014 I noticed that any panels I have on my second monitor create a ghost toolbar where any tool sub-menus I click also show up. The attached picture is pretty self-explanatory, the left h

  • HT201240 i forgot my password and i need to install the printer

    i forgot my password and the system dosent let me install the printer