Can I use two different database with DBSystemLoginModule?

Finally I can login with Database user id by DBSystemLoginModule on Embedded oc4j server.
But I confused between [b]jazn-data.xml and system-jazn-data.xml.
Which xml do I have to edit for jdbcUrl and jdbcDriver?
Now I would like to use two different database(such as only sid is different).
In this case I want to show specific database name as realm name.
What should I do?
When I use DBSystemLoginModule, I edit JdbcUrl in system-jazn-data.xml.
So can I pass the parameter for sid programmatically?
And also I tried to run my application with other database with DBSystemLoginModule on Embedded oc4j server.
I changed few things(jdbcUrl at system-jazn-data.xml,jazn-data.xml in embedded-oc4j-server/config and database connection for BusinessComponents at Project Properties of Model/ViewController.
But I got some error.
Did I miss something?
----< my error messgae >------
500 Internal Server Error
JBO-30003: The application pool (customer.model.datamodel.CMAppModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)     Message was edited by:
Message was edited by:
sdcsdc

I think I understand now, you are modifing the custom login modules configuration within the system-jazn-data.xml file. This is a bit dangerous! Didn't you register the login module in your orion-application.xml? For example, this is the way I do it:
<web-module id="customProv-web" path="customProv-web.war" />
<persistence path="persistence" />
<!--data-sources path="./data-sources.xml"/-->
<security-role-mapping name="sr_developer">
<group name="developers" />
</security-role-mapping>
<security-role-mapping name="sr_manager">
<group name="managers" />
</security-role-mapping>
<jazn provider="XML">
<property name="custom.loginmodule.provider" value="true"/>
<property name="role.mapping.dynamic" value="true"/>
<property name="role.compare.ignorecase" value="true"/>
</jazn>
<!-- Configuring a Login Module in an Application EAR file. -->
<jazn-loginconfig>
<application>
<name>customProv</name>
<login-modules>
<login-module>
<class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
<control-flag>required</control-flag>
<options>
<option>
<name>data_source_name</name>
<value>jdbc/OracleDS2</value>
</option>
<option>
<name>roles_fk_column</name>
<value>userName</value>
</option>
<option>
<name>table</name>
<value>userinfo</value>
</option>
<option>
<name>groupMembershipTableName</name>
<value>groupinfo</value>
</option>
<option>
<name>groupMembershipGroupFieldName</name>
<value>role</value>
</option>
<option>
<name>usernameField</name>
<value>userName</value>
</option>
<option>
<name>user_pk_column</name>
<value>username</value>
</option>
<option>
<name>passwordField</name>
<value>passWord</value>
</option>
</options>
</login-module>
</login-modules>
</application>
</jazn-loginconfig>
<log>
<file path="application.log" />
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>

Similar Messages

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • HT204053 If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    Each user account may have its own Apple ID.

  • How Can i Use two Different Public IP Addresses no my DMZ with ASA Firewall.

    How To Using Two Different Public IP Address on My DMZ with ASA 5520
    Postado por jorge decimo decimo em 28/Jan/2013 5:51:28
    Hi everyone out there.
    can any one please help me regarding this situation that im looking for a solution
    My old range of public ip address are finished, i mean (the 41.x.x.0 range)
    So now i still need to have in my DMZ another two servers that will bring some new services.
    Remember that those two server, will need to be accessable both from inside and from outside users (Internet users) as well.
    So as i said, my old range of public ip address is finished and we asked the ISP to gives some additional public
    ip address to address the need of the two new servers on DMZ. and the ISP gave us the range of 197.216.1.24/29
    So my quation is, on reall time world (on the equipment) how can i Use two different public ip address on the same DMZ
    on Cisco ASA 5520 v8??
    How my configuration should look like?
    I was told about implementing static nat with Sub Interfaces on both Router and ASA interface
    Can someone please do give me a help with a practical config sample please. i can as well be reached at [email protected]
    attached is my network diagram for a better understanding
    I thank every body in advance
    Jorge

    Hi,
    So looking at your picture you have the original public IP address range configured on the OUTSIDE and its used for NAT for different servers behind the ASA firewall.
    Now you have gotten a new public IP address range from the ISP and want to get it into use.
    How do you want to use this IP address range? You want to configure the public IP addresses directly on the servers or NAT them at the ASA and have private IP addresses on the actual servers (like it seems to be for the current server)?
    To get the routing working naturally the only thing needed between your Router and Firewall would be to have a static route for the new public network range pointing towards your ASA OUTSIDE IP address. The routing between your Router and the ISP core could either be handled with Static Routing or Dynamic Routing.
    So you dont really need to change the interface configuration between the Router and ASA at all. You just need a Static route pointing the new public IP address towards the ASA outside IP address.
    Now when the routing is handled between the ISP - ISP/Your Router - Your Firewall, you can then consider how to use those IP addresses.
    Do you want to use the public IP addresses DIRECTLY on the HOSTS behind the firewall?This would require you to either configure a new physical interface with the new public IP address range OR create a new subinterface with the new public IP addresses range AND then configure the LAN devices correspondingly to the chosen method on the firewall
    Do you want to use the public IP addresses DIRECLTY on the ASA OUTSIDE as NAT IP addresses?This would require for you to only start configuring Static NAT for the new servers between the inside/dmz and outside interface of the ASA. The format would be no different from the previous NAT configuration other than for the different IP addresses ofcourse
    Of the above ways
    The first way is good because the actual hosts will have the public IP addresses. Therefore you wont run into problems with DNS when the LAN users are trying to access the server.
    The second way is the one requiring the least amount of configurations/changes on the ASA. In this case though you might run into problem with DNS (to which I refer above) as the server actually has a private IP address but the public DNS might reply to the LAN hosts with a public IP address and therefore connections from LAN could fail. This is because LAN users cant connect to the servers OUTSIDE NAT IP address (unless you NAT the server to public IP address towards LAN also)
    Hopefully the above was helpfull. Naturally ask more specific questions and I'll answer them. Hopefully I didnt miss something. But please ask more
    I'm currently at Cisco Live! 2013 London so in the "worst case" I might be able to answer on the weekend at earliest.
    - Jouni

  • Can you have two different users with itune accounts on the same computer?

    Can you have two different users with separate itune accounts on the same Ipad?

    Yes, create another user profile on the computer and each user can log into their own profile that way.

  • Can i use two apple tvs with one itunes account?

    can i use two apple tvs with one itunes account?

    yes and you can use more then 2
    just don't give them the same name

  • Can I use two different itune accounts on one computer?

    Can I use two different itune accounts on one computer?

    1. Give her a separate user account on your computer. If you have a backup copy of the library, you can restore it.
    2. If you encounter a 90-day waiting period, click here and ask the iTunes Store staff if they'll remove it.
    (125941)

  • How can I use two differant iphones on one itunes

    I can i use two differant iphones on one itunes, and keep the content seperate?

    You can sync as many iphones/ipod/ipads as you like to one computer.
    Each is different and is recognized as such

  • SLI - Can I use two different video card versions for SLI?

    Hello,
    Can I use two different generations of MSI video cards that implement the same GPU for SLI?   
    The two video cards are:
    MSI N260GTX-T2D896-OCv2 GeForce GTX 260 896MB <-- What I currently have
    MSI N260GTX-T2D896-OCv3 GeForce GTX 260 896MB
    MSI N260GTX-T2D896-OCv4 GeForce GTX 260 896MB
    The main difference between these three seems to be that the OCv3 has two fans and a different heatsink than the OCv2.  The OCv4 has one fan like the OCv2 and but it is located in a different location and some weird spikey heatsink thing going on.  I already have the OCv2 but I am looking to get another card for SLI and newegg doesn't sell the OCv2 anymore.  The important thing is that I am looking for is stability and it seems that the most ideal setup would be to get identical cards.
    By the way, why are there so many versions (updates?) to this card?  Have there been issues related to the card that necessitate a revision?
    Thanks

    Different coolers(HS and fans) and possibly different makers of vRAM.  But, you should be able to run SLI without issues regardless of the versions.

  • Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    I doubt it is possible to run two instances of iTunes on the computer at the same time.  To do so would require two users to be signed in and running iTunes under each user.
    The better solution would be to either clean up and merge the two libraries or have iTunes running on a second computer.

  • Can I use two different HD's to backup my Mac?

    I was thinking how to make my backups more resilient. At the moment I take one weekly backup from my Mac using Time Machine - I then store the TM hard-disk away somewhere safe. (BTW - the reason I don't leave the TM disk connected all the time and run continuous backups is that I figure if someone breaks into my house, they'll just take the Mac and the hard disk!).
    I'm now thinking what happens if the TM hard disk fails and I can't restore from it? So I thought about maybe getting a second external hard disk, and alernating my backups each week to a different disk. As well as providing extra protection against a failure, I could also store the two backup disks in different places to add further resilience.
    Would TIme Machine get confused however if I use two different disks to run backups from the same Mac?
    Thanks for any advice...

    Time Machine won't get confused if you use it to back up to alternating disks. You have to run a complete, full initial backup on each machine, of course. When you swap disks, use the Time Machine pref pane to "choose" the backup disk that's currently connected.
    The "Preparing Backup" stage takes longer on the first backup after the swap - but it would do that if you had just not used the same drive for a week, too.
    Of course, YOU might get confused with this setup if you're looking for an older version of an existing file and the specific one you want is on the "other" drive, but it sounds like you're just looking for a "restore in case of disaster" solution rather than using the versioning history Time Machine provides.
    (Also - if the drive isn't big - physical dimensions, I mean - it might be easier to unplug it and shove it in a drawer if you think your Mac might be grabbed but the rest of the place not get ransacked.)

  • How can I use two different ToolTipUIs?

    Hi,
    I want to use two different ToolTipUIs depending (in my case) on the JRadioButton that the Cursor is hovering over. For some JRadioButtons, I want to use the default ToolTipUI, and for others I wish to display a large amount of text over multiple lines. It seems to me that this is not easily possible as ToolTipManager uses the same JTooltip for each component, so setting the UI for JToolTip will affect every tool-tip-text.
    Does anyone know of a simple method to achieve this goal? Or can someone please correct me if my understanding is wrong?!
    And yes, I do realise that I could just use the multi-line ToolTipUI for all tooltips.
    Thanks,
    Muel.

    As a point of interest, does anyone know why JToolTip doesn't have a public setUI(ComponentUI) method? Most other JComponents have such a method. This is really annoying because it means you have to do 1 of 2 things:
    1. Subclass JToolTip and subclass the particular JComponent
    public class WrappableToolTip extends JToolTip {
         public void setUI(ComponentUI ui) {
              super.setUI(ui);
    } //end class
    // and the subclass of the JComponent
    public class WrapToolTipRadioButton extends JRadioButton {
         public WrapToolTipRadioButton(String text) {
              super(text);
         public JToolTip createToolTip() {
              JToolTip toolTip = new WrappableToolTip();
              toolTip.setComponent(this);
              toolTip.setUI(new WrappableToolTipUI());
              return toolTip;
    } //end class
    2. Rank work around in particular JComponent
    public class WrapToolTipRadioButton extends JRadioButton {
         public WrapToolTipRadioButton(String text) {
              super(text);
         public JToolTip createToolTip() {
              JToolTip toolTip = super.createToolTip();
              ComponentUI oldUI = UIManager.getUI(toolTip);
              UIManager.put("ToolTipUI", WrappableToolTipUI.class.getName());
              toolTip.updateUI();
              UIManager.put("ToolTipUI", oldUI.getClass().getName());
              return toolTip;
    } //end classThis problem is really annoying, because I have to write 2 or 3 (depending on above methods) classes for something simple. If it were a different component, I'd just have to write 1 class - the UI class. Irritating!

  • Can I use two iPod touches with one computer?

    I have my iTunes library on my computer for my iPod touch but we got my daughter an iPod touch for Christmas. Can I use two iPod Touches and only one computer for both and yet still have different iTunes Libraries?

    Click here for options.
    (49891)

  • Can you use two different apple ID's on one Ipad?

    I would like to use two different apple id's on one IPAD.  One apple ID is for work and the other is for personal use.

    Read this.
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
     Cheers, Tom

  • Can i use two different itunes and/or computers to download?

    i just got a new ipod, downloaded a couple cd's from my friend's comp/itunes and when i tried using my itunes it automatically deleted the songs i had previously downloaded. is there any way to prevent this? can i only use one computer or itunes account every time i want to download anything?

    Welcome to Apple Discussions!
    The reason iTunes does this is because it is illegal to use your friend's music.
    If have you two different computers you want to sync your ipod with though...
    Using iPod With Multiple Computers
    btabz

Maybe you are looking for

  • Processing msgs one at a time

    Hi, Is there any way in JMS which will help in processing messages received by onMessage() on a one at a time basis. What I mean is, I shud not process the next message till the first one is processed? I am assuming that onMessage() executes as soon

  • Variable screen for Selective Retraction

    Dear All, We are planning for selective retraction using user defined variables assigned at planning level. We want to have a front end to be given to the user other than BPS0 tcode to execute this. We have tried to create tcode using SAP standard  f

  • Inserting logon date & time into a table

    hi, i want to insert the logon date&time into a table which have a field called log_track and data type as date. i want to insert the information as 'dd/mm/yyyy hh24:mi:ss' . I tried to insert with the follwoing insert into log_chek values ( to_date(

  • PO warning message

    Hi. When I first time change the PO delivery date and press enter without save the PO, system will display warning message base on SAP calendar setting. Let say 1st, 2nd and 3rd September 2008 is already set as non working day and 4th September 2008

  • Microsoft Exchange Server 2013 - Unable to recieve emails from outside

    I'm having problems setting up brand new installation of EXCH 2013 on the VM server. Infrastructure - main server Windows Server 2012 Standard, a VM server. Domain vwc.local, VM server introduced to domain. EXCH 2013 installed on VM server. I'm able