How to set resource connection factory?

How to set resource connection factory if JMS is upported through JNDI?

Hi,
The Simplest Way to Load a Property file (Which is outside of your Application) ..is.
Just Place the Property file in the Server Classpath...or in the "C:\bea103\user_projects\domains\7001_Domain\lib" folder of your Domain. It means somehow the Property file should be available in the Server Classpath...
Now Please write the following code in your Application to read the Property file:
java.util.Properties prop = new java.util.Properties();
java.io.InputStream stream=this.getClass().getClassLoader().getResourceAsStream(“my.properties”);
prop.load(stream);
String hostProperty = p.getProperty(“host.name”);
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com/generalweblogic/   (WebLogic Wonders Are Here)

Similar Messages

  • Unable to set up connection factory for stand-alone resource adapter

    I'm testing out JCA 1.5 in OC4J P4, and I try to register a resource apapter by configuring oc4j-ra.xml like this:
    <connector-factory location="MySomething" connector-name="Something">
    However, I get the following error:
    05/09/28 17:14:24 Notification ==> Warning. Unable to set up connection factory
    to location MySomething for a resource adapter deployed as stand-alone.
    Is this a bug, or just me?
    Would appreciate it if someone knew what was wrong.
    Regards
    -am

    Looks like you need to tell us more...
    How is your adapter packaged?
    Which files are included (deployment descriptors, etc)?
    --olaf                                                                                                                                                                                                                                                                                   

  • How to set the connection parameters for SQL

    How to set the connection parameters for SQL to access the MS Access database
    Attachments:
    Quick_SQL.vi ‏21 KB
    Doc1.doc ‏45 KB
    db1.mdb ‏112 KB

    Right-click the WINDOWS desktop, choose New->Microsoft Data Link. That will bring up a dialog that allows you to configure and test your database connection. You might connect to the Access database via ODBC or directly via Jet Engine. The Jet Enginge saves you the trouble of creating an ODBC connection on your PC. After you leave the dialog, the "data link" will show up on your desktop as text file. Open it and copy-paste the connection string to your VI.
    This webpage is an excellent resource for connection strings: http://www.able-consulting.com/ADO_Conn.htm
    If your application requires users to change the database connection at runtime, you can also include the dialog via ActiveX (MSDASC.IDataSourceLocator).

  • How to set VPN Connection in Windows 7 64bit?

    Hi
    How can I set up a Vpn in connection in Windows 7 x64 bit.
    Thanks.

    Hi,
    Go to Control panel-Network and Internet-Network sharing Center.
    http://www.windows7hacker.com/index.php/2009/08/how-to-set-up-a-vpn-connection-in-windows-7/
    Note, you should know the login and password to have the Internet access :)

  • How to access local connection factory created within Foreign Server in OSB

    Hi All
    I am facing an issue in my config plan. We have a RIB Foreign server with the following local connection factory:
    jms/RibAqJmsXATopicConnectionFactory
    I am using the below in my configuration plan:
    <cus:envValueAssignments>
    <xt:envValueType>Service URI</xt:envValueType>
    <xt:location xsi:nil="true"/>
    <xt:owner>
    <xt:type>ProxyService</xt:type>
    <xt:path>RLTPReturnToWarehouse/ProxyServices/ConsumeRIBRTWMessages</xt:path>
    </xt:owner>
    <xt:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">jms://localhost:7001/jms.RibAqJmsXATopicConnectionFactory/jms.etASNInFromRIBToWH1</xt:value>
    </cus:envValueAssignments>
    and i am getting the below error:
    [java]
    [java] Loading customization File ./dev/OSBCustomizationFile.xml
    [java] Customization applied to the created resources only []
    [java] com.bea.wli.config.customization.EnvValueCustomization@553c13
    [java] Unexpected error: com.bea.wli.sb.transports.TransportException
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "D:\VFUKScripts\DeploymentScripts\osb\import.py", line 200, in ?
    [java] File "D:\VFUKScripts\DeploymentScripts\osb\import.py", line 122, in importToALSBDomain
    [java] com.bea.wli.sb.transports.TransportException: Failed to lookup connection factory jms.RibAqJmsXATopicConnectionFactory
    what am i missing here?

    [java] com.bea.wli.sb.transports.TransportException: Failed to lookup connection factory jms.RibAqJmsXATopicConnectionFactory
    Looks like the JNDI that you created for the ConnectionFactory is not reflected in the server.
    Login to WLS Console> Summary of Servers > server_name > View JNDI Tree
    Browse to the JNDI tree and see if your JNDI is visible there. If it is not then, please restart the server and recheck.
    Once you are able to find it in the JNDI tree, then execute the customization file.
    If you have modified the existing JNDI properties (that have a small exclamatory symbol) then any changes to those are not reflected till all the servers in the cluster are restarted.
    If it still does not work, then recreate a new Connection with a different name and then retry. It should work then.
    Thanks,
    Patrick

  • How to set up connection between S and C

    I want to realize a chat between server and client.
    on both side ,there is a textArea to get the information to send to the other.
    I know the socket is must be used,but how to set up the data source(from textarea or textfield),and how to store the data?
    can some one tell me how to do this?
    thanq!

    So what are you saying you dont know how to use the textarea and textfield?Cause it is ez to convert that code that dunedinhigh gave you from console to a gui like what you want I think.So here is a link that shows you how to use text component.You learn this then you can put 2 and 2 together.Also check out the java tut page.
    http://java.sun.com/docs/books/tutorial/
    http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html
    good luck

  • How to set up connection for directv receiver, TV, and home theater system?

    Can some one please show me the CORRECT way to connect my Directv receiver (it has no HDMI), Panasonic Viera HDTV (has 3 HDMIs) and my Samsung home theater HT-Z510 (has 1 HDMI)? The second question is with the set up that you advise, can I play the TV sound through my home theater speakers? and How do I do that each time I want to listen the TV sound through my home theater speakers? I am new and confused about all this so please provide or explain step by step please. Thanks in advance.

    Making sense of your connections on a message board is never easy. Hopefully you can piece this information together.
    Direct TV box to Panasonic TV using S-video cable....assuming it's standard definition. Component video if the box is HD. Run standard stereo RCA cables to the appropriate input for sound threw the TV speakers.
    Your Panasonic TV will have a set of stereo(left/white,right/red) outputs. Run cable from that output into the same inputs on the Samsung surround unit. Use the sound units effects to acheive simulated surround. This is assuming you have no digital outputs on your box. If you do, you'll be able to get 5.1 when available using a digital connection.
    Good luck.
    Disclosure: Former BBY employee.

  • How to set TCP connection timeout in solaris 9

    Hello All,
    I am new to solaris. While using oracle, sometimes I face tcp connection timeout.
    The timeout happens after a long delay like more than 8 min. I want to reduce the tcp connection timeout to 2 min in solaris.
    Please help me to change this setting.
    My current configuration is
    SunOS testmachine 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-V440
    Thanks
    Purushoth

    There's a fair amount of tunables. Without known what is timing out (dns, lost packet...), it's hard to say what you want to tweak. The list of parameters can be seen by using ndd:
    ndd /dev/tcp \?
    or
    ndd /dev/ip \?
    and can be set by using ndd -set (see ndd(1M) ). Note that anything you set has to be reset on reboot, so you have to stick this in a script somewhere, or know what the variable translates to to stick it into /etc/system.
    -r

  • How to set resources message to html:text?

    I'using struct in Jdeveloper 10.1.2.3.0 and I would like to set the bean message to the value of html:text, but not success.
    <html:text value="<bean:message key="xxx.xxx"/>"/>
    How can I do that?

    There appears to be some misunderstanding here.
    I just tested Mark's instructions and I got what it sounds like you're asking for.
    Be sure you are setting the "HTML Form Element Attributes" under "Element". Do NOT set the "HTML Table Cell Attributes" under "Label".
    Hope this helps,
    Gregory
    Edited by: Canis Polaris on Sep 16, 2009 8:02 AM
    P.S. I got a nice light blue using CCFFFF.

  • How to set Internet connection in solaris for DataOne Service in India?

    I am using a P4 system with Inter Board D945GTP and i have a internet connection from BSNL. I wold like to connect internet to Solaris express Developer Edition 2/07
    Help me!
    bye
    P.Sathish Kumar

    In India one need to configure pppoe for connecting BSNL DataONE broadband. So here is a reference quick guide to setup pppoe for BSNL DataONE
    SUNW ppp packages should be already available for you. If you didn't install, you need the following packages. Install them from Solaris CD.
    Packages
    SUNWpppd  - Solaris PPP Device Drivers.
    SUNWpppdr - Solaris PPP configuration files.
    SUNWpppdt - Solaris PPP Tunneling.
    SUNWpppdu - Solaris PPP daemon and utilities.There will be a file myisp.tmpl in /etc/ppp/peers directory. Copy the file to a filename /etc/ppp/peers/bsnl
    ~# cp /etc/ppp/peers/myisp.tmpl /etc/ppp/peers/bsnl
    Note the conventions used here
    USERNAME       - is your BSNL id eg (userid)
    PASSWORD       - provided by bsnl (*****)
    INTERFACENAME  - is your ethernet card name eg (bge0, hme0....) Edit /etc/ppp/peers/bsnl file using an editor. The uncommented section should look like the following:
    Where INTERFACE should be your ethernet interface name and USERNAME is your broadband user name.
    connect "/usr/bin/chat -f /etc/ppp/myisp-chat"  # dial into ISP.<br>
    sppptun
    plugin pppoe.so
    connect "/usr/lib/inet/pppoec INTERFACE"
    user USERNAME           # my account name at my ISP
    remotename bsnl # name of the ISP; for pap-secrets
    noauth                  # do not authenticate the ISP's identity (client)
    noipdefault             # assume no IP address; get it from ISP
    defaultroute            # install default route; ISP is Internet gateway
    updetach                # log errors and CONNECT string to invoker
    noccp                   # ISP doesn't support free compressionNow there are two configuration files that needs to be updated.
    /etc/ppp/pap-secrets
    /etc/ppp/chap-secretsIn these two files add the entry as follows
    USERNAME        bsnl    PASSWORDWhere USERNAME is your broadband username and PASSWORD is you broadband password. Your configuration is almost completed. Now for connecting:
    #/usr/sbin/sppptun plumb pppoe INTERFACENAME
    #/usr/sbin/sppptun plumb pppoed INTERFACENAME
    #/usr/bin/pppd debug call bsnlYou need to specify dns server to resolve dns names. Create a file in /etc with name /etc/resolv.conf and copy the nameserver info. For example:
    echo nameserver  61.1.96.71 > /etc/resolv.confNote: The IP specified here is BSNL nameserver. Please ask your BSNL operator for exact dns address. Or else you can use the opendns.com server IP.
    cp /etc/nsswitch.dns /etc/nsswitch.conf Make a backup copy so that you can copy back when needed.
    cp /etc/resolv.conf /etc/resolv.conf.bsnlIn case you are still not able to resolv dns name, check if dns/client service is running or not.
    svcs -a | grep dns/clientIf not enable
    svcadm enable dns/clientIf not online, try starting
    svcadm restart dns/client
    or
    svcadm refresh dns/clientHere is a simple script that can help you for connecting after configuring PPPoE.
    #!/usr/bin/bash
    ifconfig bge0 plumb
    pkill -9 pppd
    /usr/sbin/sppptun plumb pppoe bge0
    /usr/sbin/sppptun plumb pppoed bge0
    sleep 5
    /usr/bin/pppd debug call bsnl
    echo nameserver 208.67.222.222 > /etc/resolv.conf
    echo nameserver 208.67.220.220 >> /etc/resolv.conf
    echo nameserver  61.1.96.71 >> /etc/resolv.conf
    cp /etc/nsswitch.dns /etc/nsswitch.conf
    svcadm restart dns/clientRegards
    Britto

  • How to set "Resource references" ?

    Hi,
    I'm a novice on EJB.
    I want to use EntityBean to access a Cloudscape database. I create a database named "MyDB" in a directory C:\db.
    When using J2ee deploy tool to build a enterprise bean, I need to specify the coded name of "Resource Refs". Can I just write "jdbc/MyDB" without specify any directory ?
    Thank you.

    I looked at J2ee verbose's output messages, and I got the following message:
    c:\j2sdkee1.3.1\repository\gnrtrTMP\BorrowerApp\borrower\BorrowerBean_PM.j
    ava:69: ')' expected
    return (void) partition.afterEjbCreate(this);
    I don't have BorrowerBean_PM.java, so I guess it is an automatically generated file.
    Please Help!

  • How to set FTP Connection type BINARY with the SOCKET

    hi all,
    manish here.
    could anyone help me in setting the Binary type FTP with the SOCKET.....
    one thing i tried command "TYPE" and argument "I ". but its not accepting and then the Window gets Hang.
    Regards,
    Manish

    X-post:
    http://forum.java.sun.com/thread.jspa?threadID=585104&tstart=0

  • How to set computer to factory default

    Hello,
    I acquired a used mac book air and would like to change the user and reset the computer to factory default settings.
    It is my first time working with an apple computer.
    Regards

    The first thing needed is to know what MBA you have, click the Apple left side of the menu bar, About This Mac, More Info, Hardware and what does it say for MacBook Air and the number?  Also, from the apple and About This Mac what OS X version does it show you have?

  • How to annotate connection factory name in MDB?

    How do I annotate connection factory name in Message Driven Bean?
    @MessageDriven(ejbName = "MyMessageDrivenBean",
        destinationJndiName = "MyMessageDrivenBeanJndiName",
        destinationType = "javax.jms.Queue")
    //I want to annotate the below in MDB
    <connection-factory-jndi-name>local-jndi-name-of-queue-connection-factory</connection-factory-jndi-name>

    I think the problem is in the activation config properties
    @MessageDriven(name = "MyMessageDrivenBean", activationConfig = {
              @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
              @ActivationConfigProperty(propertyName = "destination", propertyValue = "jms/MyQueue") })
    public class MyMDB implements MessageListener
    take a look at http://download.oracle.com/javaee/5/api/javax/ejb/ActivationConfigProperty.html

  • Jaxrpc client  (how to set connection and read time out)

    I have a jaxrpc client using a web service. how to set a connection or a readtime out on the client side so that I can terminatate the service if it does not respond on some time.

    SteveHibox wrote:
    When we tried to send messages to [email protected] ,the debug log on MTA shows that if the first mail server(123.1.1.1) failed , the MTA tried to connect the second server(123.1.1.2) automatically. And it took about 3 minutes until the connection to the first server timed out.
    The OS level timeout (tcp_ip_abort_cinterval on Solaris) is applicable to this situation. It is set to "180000" (3 minutes) by default e.g.
    bash-3.00# ndd -get /dev/tcp tcp_ip_abort_cinterval
    180000
    Is there any way to shorten the default time out ?( I mean to connect the second server faster if the first one failed.)Try changing the OS level parameter.
    If there is only a particular IP address causing the problem, you may want to make use the IP_ACCESS mapping table and the $I flag to skip over this IP address:
    http://docs.sun.com/app/docs/doc/819-4428/gekyh?a=view
    Regards,
    Shane.

Maybe you are looking for

  • IPod nano repaired and no longer recognized how do I get it to sync again?

    I had my ipod nano repaired, during which it was wiped clean. Now when I connect it to my computer it treats it as a new device and won't sync it with my ITUNES...how do I fix this so that it syncs again..please help

  • How to call BAPI in a ABAP prog

    Hi All I have a concern regarding the usuage of BAPI in the ABAP program. i have successfully created a BAPI and i have implemented a method as well using ADD API Method button. Now after doin all the things in SWO1. I wanted to know how to call this

  • Accents and special characters - how to manage

    Hi, please could you explain how it is possible to handle accents and other special characters in Business Objects XI 3.1 (Universes and Reports)? Which are the parameters/settings I need to configure for Database (ORACLE) Application Server (AIX) Un

  • Buttons in Interactive Overlays

    If I create a button in an interactive overlay, will the link be disrupted by interactive features in the layer below?

  • Importing Final Cut Express projects

    Hi, I cannot see how to importing my older Final Cut Express projects into Premiere Pro CS5. I know this can be done with Final Cut Pro via the XML format, but it seems that FCE does not export to XML. Does anybody know of alternative ways of exchang