Is there a method that allow pub decide which sub to get message?
In durable mode, the subscriber has provide an unique ClientId to tell from other subscriber. so when the server get a message that specified which ClientId should read the message, the sever should send the message to only the ClientId other than broadcast it out to every subscriber of the topic.
an filter will do the same thing, but it is Setted by client, not from the sender, the sender should has the ability to decide where the message should be send.
At a slightly higher level the TopicConnectionFactory can reject Connections from users that it does not want to accept.
A client can create a TopicConnection using createTopicConnection(java.lang.String userName, java.lang.String password), and the server can reject those connections by throwing a JMSSecurityException. So if your particular situations is that you have some group of users that should be able to subscribe to a topic, and another set that shouldn't, this could give you the hooks you need.
Similar Messages
-
Is there a datatype that allows me to store more than one item at a time
Hello Everyone,
Is there a datatype that allows me to store more than one item at a time , in a column in a row?
I have to prepare a monthly account purchase system. Basically in this system a customer purchases items in an entire month as and when required on credit and then pays at the end of the month to clear the dues. So, i need to search the item from the inventory and then add it to the customer. So that when i want to see all the items purchased by a customer in the current month i get to see them. Later i calculate the bill and then ask him to pay and flushout old items which customer has purchased.
I am having great difficulty in preparing the database.
Please can anyone guide me! i have to finish this project in a weeks time.
Item Database:
SQL> desc items;
Name Null? Type
ITEMID VARCHAR2(10)
ITEMCODE VARCHAR2(10)
ITEMPRICE NUMBER(10)
ITEMQUAN NUMBER(10)
Customer Database:
SQL> desc customerdb;
Name Null? Type
CUSTID VARCHAR2(10)
CUSTFNAME VARCHAR2(20)
CUSTLNAME VARCHAR2(20)
CUSTMOBNO NUMBER(10)
CUSTADD VARCHAR2(20)
I need to store for every customer the items he has purchased in a month. But if i add a items purchased by a customer to the customer table entries look this.
SQL> select * from customerdb;
CUSTID CUSTFNAME CUSTLNAME CUSTMOBNO CUSTADD ITEM ITEMPRICE ITEMQUANTITY
123 abc xyz 9988556677 a1/8,hill dales soap 10 1
123 abc xyz 9988556677 " toothbrush 18 1
I can create a itempurchase table similar to above table without columns custfname,csutlnamecustmobno,custadd
ItemPurchaseTable :
CUSTID ITEM ITEMPRICE ITEMQUANTITY
123 soap 10 1
123 toothbrush 18 1
ill just have it as follows. But still the CUSTID FK from CustomerDB repeats for every row. I dont know how to solve this issue. Please can anyone help me.
I need to map 1 customer to the many items he has purchased in a month.
Edited by: Yukta Lolap on Oct 8, 2012 10:58 PM
Edited by: Yukta Lolap on Oct 8, 2012 11:00 PMYou must seriously read and learn about Normalization of tables; It improves your database design (at times may increase or decrease performance, subjective cases) and eases the Understanding efforts for a new person.
See the below tables and compare to the tables you have created
create table customers
customer_id number primary key,
fname varchar2(50) not null,
mname varchar2(50),
lname varchar2(50) not null,
join_date date default sysdate not null,
is_active char(1) default 'N',
constraint chk_active check (is_active in ('Y', 'N')) enable
create table customer_address
address_id number primary key,
customer_id number not null,
line_1 varchar2(100) not null,
line_2 varchar2(100),
line_3 varchar2(100),
city varchar2(100) not null,
state varchar2(100) not null,
zip_code number not null,
is_active char(1) default 'N' not null,
constraint chk_add_active check (is_active in ('Y', 'N')),
constraint fk_cust_id foreign key (customer_id) references customers(customer_id)
create table customer_contact
contact_id number primary key,
address_id number not null,
area_code number,
landline number,
mobile number,
is_active char(1) default 'N' not null,
constraint chk_cont_active check (is_active in ('Y', 'N'))
constraint fk_add_id foreign key (address_id) references customer_address(address_id)
create table inventory
inventory_id number primary key,
item_code varchar2(25) not null,
item_name varchar2(100) not null,
item_price number(8, 2) default 0,
item_quantity number default 0,
constraint chk_item_quant check (item_quantity >= 0)
);You may have to improvise and adapt these tables according to your data and design to add or remove Columns/Constraints/Foreign Keys etc. I created them according to my understanding.
--Edit:- Added Purchases table and sample data;
create table purchases
purchase_id number primary key,
purchase_lot number unique key not null, --> Unique Key to map all the Purchases, at a time, for a customer
customer_id number not null,
item_code number not null,
item_price number(8,2) not null,
item_quantity number not null,
discount number(3,1) default 0,
purchase_date date default sysdate not null,
payment_mode varchar2(20),
constraint fk_cust_id foreign key (customer_id) references customers(customer_id)
insert into purchases values (1, 1001, 1, 'AZ123', 653, 10, 0, sysdate, 'Cash');
insert into purchases values (2, 1001, 1, 'AZ124', 225.5, 15, 2, sysdate, 'Cash');
insert into purchases values (3, 1001, 1, 'AZ125', 90, 20, 3.5, sysdate, 'Cash');
insert into purchases values (4, 1002, 2, 'AZ126', 111, 10, 0, sysdate, 'Cash');
insert into purchases values (5, 1002, 2, 'AZ127', 100, 10, 0, sysdate, 'Cash');
insert into purchases values (6, 1003, 1, 'AZ123', 101.25, 2, 0, sysdate, 'Cash');
insert into purchases values (7, 1003, 1, 'AZ121', 1000, 1, 0, sysdate, 'Cash');Edited by: Purvesh K on Oct 9, 2012 12:22 PM (Added Price Column and modified sample data.) -
Is there a program that allows you to black out most of the screen content of a PDF (on an iPad) and slide down like you would with an overhead (covered with a piece of paper) for teaching purposes??
Maybe this online manual would help.
* http://en.flossmanuals.net/thunderbird/interface/
Not sure how well printing it out would work, though. -
is there an app that allows a person to take a picture of ei: a safeway card and the UPC to just pull out the phone instead of looking for cards out of wallet o purse?
I've seen a number of them that appear to do what you want. Search the app store.
-
Is there an application that allows you to read iBooks purchased from iTune
Is there an application that allows you to read iBooks purchased from iTune. like Amazon books for Kindle ?
Yes it is the iBooks reader that comes with the iPad.
There are readers foe Barnes and Noble (eBook) & (nook) and Amazon (kindle).
But iBook comes preinstalled. -
Is there an app that allows you to write in an ipdad
Is there an app that allows you to write like S notes with google
There are hundreds of apps that let you write with your finger or a stylus. Penultimate and Noteshelf are two I've used.
-
I am trying to save one picture in different versions- How do I do that- there is nothing that allows me to save as- How do I do that??
http://www.apple.com/aperture/
Regards
TD -
Is there any app that allows me to control the cell phone from the computer with the mouse?
Is there any app that allows me to control the cell phone from the computer with the mouse?
No this is not possible.
But you could use the iPhone Simulator of Xcode if you have access to an Mac. Like the name explains, it simulates an iPhone on an Mac, but you cannot use all standard apps -
Is there a screen that allows a manager to change details of their employee
Is there a screen that allows a manager to change details of their employee?
Using Manager Self Service, we would like to be able to have our users change the job title, department etc. of their 'reports' i.e. their employees. Is there a way to do this using standard Manager Self Service functionality?Yes, it is possible to change the department related changes through Manager self service using function Change Cost Center, Location and Manager and it is possible to change the job using Change Job.
Hope this clarifies your Question. -
Is there a setting that allows for simultaneous downloading and watching of a rental movie on ATV?
Apple TV has no storage, it is caching the movie and needs to load a portion before playback starts. The time it takes is dependent on your network.
What is your current connection via speedtest.net?
Make sure DNS is set to auto (settings - general - network)
If on wifi try ethernet -
Is there an app that allows you to download and read pdf files on your ipod touch?
Is there an app that allows you to download and read pdf file on your ipod touch (5G)?
There are many apps that allow reading PDFs. GoodReader allows downloading some items. It all depends upon how the site handles the download. It also uses file sharing in iTunes.
iBooks also reads and had file sharing. -
I want to control a PowerPoint presentation on my iPad remotely from my iPhone. Is there an app that allows me to wirelessly control my iPad from my iPhone?
Yes.
The app is called Keynote Remote and is available for both iPhone and iPad from the App Store. This app can also run Keynote presentations from your Mac from either your iPad or iPhone.
Both your iPad and iPhone need to be on the same WiFi Network. With your iPad Keynote file loaded, go to:
iPad > Keynote > Tool Menu (wrench) > Advanced > Remote and turnon "Enable Remotes"
on your iPhone set up the link:
Keynote Remote > Settings > New Keynote Link and follow instructions - you will be given a set of numbers, enter those numbers on the iPad and you are all set.
Good Luck -
Revision: 9866
Author: [email protected]
Date: 2009-09-01 00:56:48 -0700 (Tue, 01 Sep 2009)
Log Message:
Adding '@throws' clauses to ILayoutRenderer add/remove target methods, and adding a 'targets(target:ILayoutTarget)' method that allows checking addition/removal validity up front.
Modified Paths:
osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/ILayoutRenderer.as
osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/LayoutRendererBase.as -
Is there an App that I can buy which will significantly improve the volume of my i-phone 4 whilst using i-tunes?
It's already on your device - Settings > General > Accessibility > AssistiveTouch > On
-
Is there an adapter that allows youto use ethernet cables in hotels?
I travel for work and don't want to use wireless in countries such as Nigeria. Is there an adapter that will allow me to use the ethernet cable in my hotel room for the ipad2?
No. However, you can travel with an Airport Express. The hotel's Ethernet connects to the AEX. Then the AEX is configured to provide a local wireless network in the room. You will need the Airport Utility app for the iPad.
Maybe you are looking for
-
I would like for my notifications to just show something like a red badge with maybe a number by it that represents the number of unread messages I have. I DO NOT want the OS to open the Messages app every time I get a new message. It takes me away f
-
Oracle Demand Planning - No data available to view in worksheets sheets.
Hi, We are facing issues with demand planning, the data is not coming into the worksheets, Do we have to do certain setups in the worksheets so that the data will appear? Here is the demand plan log. 02/19/2009-16:08:23 -> ODP Version 1.15500 02/19/2
-
Headers & Footers Do Not Allow Typing The Letter "S
Hai After Upgradation of P6.8.2 I am not able to type the letter S in Header & Footer Primavera Version : P6.8.2 Database :Oracle Windows :Windows 7 Professional & 64 bit I did the below step as mention in Primavera Knowledge base [ID 1362694.1] to f
-
I set up a HTTP Receiver Adapter and successfully sent a message to a http destination. The problem is, I can't find the Response Message from the HTTP destination. Where can I find it, and how can i handle it? Thanks!
-
The mouse pointer is a slowstarter
My mousepointer is real slow as I start the computer, it takes up to a minute until it is possible to move, is that ok? The computer is not mor then two months old.