Custom finders in CMP dealing with BMP Beans as parameters
Hi all,
I need to create a custome finder method in a CMP Bean which has a parameter of type EJBLocalHome which is a BMP bean that has been already built. The problem is, I can't understand how to write the EJB-QL part of the finder. I will give some examples of my situation :
CMP Finder definition :
findByCustomer(CustomerLocal customer);
The CMP bean which I want the finder to be implemented has a CMP field for the Customer's primary key which is of type Integer. But, I need to pass a CustomerLocal object to the finder. How can I write a EJB-QL to this situation ?
Is there any known patterns for CMP-BMP relationships...?
Thanks.
Indy.
Hi,
Your first point is, I think, is out of the question because, if you call a business method, then the bean will be loaded. That will lose the sole purpose of finders.
Second Point : There may be situations or projects that have to deal with CMP as well as BMP Beans together in a single project for reasons like the BMP beans coming from an already existing development. So, I can't really agree on your point saying that our design is questionable. We had to do it because, we had no other alternatives like changing all the BMP's into CMP's..
So, still my question seems to be unanswered....!!!!!!
Thanks anyway,
Indy.
Similar Messages
-
Hacked Account, Credit Card Fraud, Customer Support Won't Deal With It.
Hello!
I have contacted ''customer support'' twice about my hacked account - answer I have received left me baffled and angry as apparently I have not passed security checks - yet I have passed them when giving the same answers to un-suspend my account!
My account was hacked on the night of 5th July, approx. 3-3.30am on Sunday.
Person who hacked it tried to make continuous purchases (I believe at around 100 pounds in total) using stolen credit cards Visa and Eurocard/Mastercard (Mastercard is still attached to my account as whoever did it just left it there).
They have tried to call numbers in Turks & Caicos and in British Virgin Island.
I have asked ''customer support'' to trace it and deal with it, as in today's day and age it could be terrorist or contract killers using other people's accounts to make their dealings, but both times I was told I have not passed security checks and they won't deal with it.
I do not remember when I've open Skype account, sorry it was years ago.
I also have only 3 contacts on my Skype list from form required 5 (I simply don't need any more).
I have contacted Action Fraud UK in this matter and have made a report. I have report number which I send to ''customer support'' with my second message.
Action Fraud UK have advised me to contact ''customer support'' again and ask again to deal with this unpleasant matter - again ''customer support'' refused.
I am really angry about it and if ''customer support'' (Skype should change their name as they are not supportive nor customer orientated) do not want to deal with it then I would appreciate for someone to close my account as in that case I won't nothing more to do with company who does not take matters like this seriously!
Sincerely
MagdalenaFOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
iTunes Purchase Problems: How to Report a Problem to iTunes Support
http://tinyurl.com/7tscpa7
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Getting Refunds for your iTunes Store Purchases
http://www.labnol.org/software/itunes-app-store-refunds/13838/
Canceling a Digital Subscription
http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
Cheers, Tom -
Do you know how to specify custom query strings for finder methods of CMP beans?
null<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Piotr Czarnas ([email protected]):
Do you know how to specify custom query strings for finder methods of CMP beans?<HR></BLOCKQUOTE>
Go look at www.orionsupport.com - they have some instruction on how to do custom finder methods....
Cheers
Ray
null -
Hi there!
I'm developing an app in NetBeans that has a 'complex' object/backing bean structure. For example a CalculationBean has an ArrayList of ProductBeans.
How can I make it so that the user tells how many Products he wants in the Calculation, after that the application creates the Beans, and shows the productForm bound to them? ( Also, is it possible to show the productForm-s on the same page, created dynamically? )
Any help will be appreciated!
DanielI would also suggest Tomahawk's dataList component, if dataTable is not to your liking.
-
JSP tag collaboration with BI Beans
Hello!
We need to reorganize a dimension hierarchy in runtime during presentation. It's merely a matter of formatting. We use a tag handler that reeds its body doing some operations and puts a new content for body in page.
We tried this
====================
<My:BodyReaderTag>
<orabi:ListCombo renderAs="combo" autoSubmit="true" biList="${tagtest_dimMemList1_data}"/>
</My:BodyReaderTag>
====================
When doing this my tag grabs all content except the output from orabi:ListCombo. It seems like orabi:ListCombo does not push the JspWriter on the stack (by collaboration with orabi:BIBody tag). When, for testing purposes only, I removed the orabi:BIBody tag, I got the result I would like to get.
How can I get the output from orabi:ListCombo tag? Or if that is not possible, where can I find detailed information so I can create my own customized tag handlers that collaborates with BI Beans,
Thanks in advance,
MatsThe implementation of the <orabi:ListCombo> is based on UIX JSP tags technology. It uses an instance of oracle.cabo.ui.RenderingContext created earlier by the BIThinSession tag to do the actually rendering.
May I ask what are you trying to do with the <my:reformatter> tag? The ListCombo tag has attributes like "styleClass" and "inlineStyle" that can be used customize the look and feel of the content it renders. Also, we provide a set of built-in styles. Have you looked into whether you can use "styleClass" or "inlineStyle" attributes to satisfy your formatting needs?
Hope this helps,
Keith
Oracle Business Intelligence Product Management
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Beans http://www.oracle.com/technology/products/bib/index.html
Discoverer: http://www.oracle.com/technology/products/discoverer/
BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
BI Samples: http://www.oracle.com/technology/products/bi/samples/
Blog: http://oraclebi.blogspot.com/ -
Call 1: I spoke to them to see if I was eligible for an upgrade. It turned out they had accidentally counted a temporary phone switch to an old device as an upgrade. The representative was extremely slow minded and took over an hour to read through my notes and process what I was saying happened, consulting with his supervisor multiple times. He claimed to have noted everything and told me I had to go to a verizon store to verify in person that I was still using my original phone, and that then I would be able to get an upgrade immediately.
Trip to the store: Drove an hour only to be told by the store rep that there were NO NOTES on my account about the issue and there was nothing he could do to help me and that I'd have to call customer support again. The store was closing in 20 mins and customer support seems to take 45 minutes minimum to resolve anything, so I left.
Call 2: Asked a woman to speak to a supervisor about the guy who wasted 2+ hours of my life and gas money. She put me on hold for a long time, came back and said they were all busy right now, would I like to leave my complaint with her? I said no thank you, I will keep waiting. She said ok, and proceeded to hang up.
Call 3: Asked a different woman to speak to a supervisor, she put me on hold for a long time and then told me that since I wasn't an authorized user I could not speak to one... lol ok. Had a family member call and authorize me.
Call 4: Asked a guy to speak to a manager. He insisted on taking the complaint himself. Why would I trust someone to take a complaint about their colleague possibly sitting a few desks away when many of them have proven to be incredibly incompetent already? It sounded like we were making progress... then he hung up too.
Call 5: Asked yet another woman to speak to the manager. She demanded a reason, I told her it was to make a complaint and she told me about a dozen times that the managers would just tell her to take the complaint. I insisted, she refused... finally I threatened to close all of our accounts unless she let me speak to a manager. She said they couldn't right now since the office was closing soon, but that one would call me within 24-48 hours. I'd bet my life savings that never happens. At that point I tried to talk to her about the original upgrade issue, and she said her system had suddenly crashed and that I'd have to call back the next day... Seriously???
Absolutely unreal how horrible their customer support is. Will be switching to T-Mobile immediately.Having worked in customer service, I have some experience with this kind of situation. Reps are typically trained to make all attempts to handle complaints by themselves, because there are obviously many more reps than supervisors. They're usually REQUIRED to fully authorize the account and to get the whole situation from the customer prior to referring you to a supervisor. One of the biggest problems is that many customers think that demanding a supervisor is a way to guarantee you will get what you want. If the reason for your request to escalate isn't a valid one, the supervisor won't give in to you either.
There are plenty of times in my own experience, especially as a brand new rep out of training, that I took a long time to research and get an understanding of the issue. Yes, I wasn't moving at light speed, but that doesn't make me an idiot. It means I was trying to gather as much info s possible to try and deal with the issue. But I had plenty of customers tell me I was stupid and to transfer them to my supervisor, simply because I took longer than their patience could tolerate to get all the details I needed.
I have never had a job that I executed flawlessly day in and day out. Maybe you have and that's why you can't tolerate a person taking a little longer to wrap their head around the issue, but I'd rather doubt it.
I also don't think you will find reps who work at light speed and utilize a magic wand to fix people's issues at T-Mobile, either, but I guess it never hurts to try.
Just to clarify: I do not work for Verizon and never have. I worked for a residential phone and internet company. -
How to create a workflow dealing with customizing program(Add-on program)
Dear ALL,
I am new to workflow and I was assigned to create a workflow related to an customizing program(Dynpro screen).
I know we can refer to some std. template for workflow developing.
However, I don't know how to create a brand new workflow to deal with the add-on program and table.
My major difficulty is how to create a new object:
--How to create the new event to track the operation of add-on program, for example, push 'submit' button.
--How to create method to update the add-on table.
I do hope someone could give me some guidance.
Thank,
GaryThis is a Function Module that triggers an event ob Business Object tht you will create by making a subtype of Business Object. Use Transaction Code SWO1 to do so.
FUNCTION zwf_process_trip.
""Local Interface:
*" IMPORTING
*" VALUE(I_EMP_NUMBER) TYPE PERNR_D
*" VALUE(I_EMP_TRIP) TYPE REINR
INCLUDE <cntn01> .
DATA:i_emp_details TYPE STANDARD TABLE OF p0001, "Employee Details
wa_request TYPE p0001, "Workarea for Employee details
v_country_grp TYPE molga, "Country SubGrouping
v_object_key TYPE sweinstcou-objkey. "Key for the buisness object ZWOBUSTRIP
CONSTANTS: c_bo_trip TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
c_event_trip TYPE swo_event VALUE 'TripCreate',
c_infy_type_1 TYPE infty VALUE '0001'.
Event Container declaration
swc_container i_event_cont.
swc_create_container i_event_cont.
Reading the INFO TYPE 0001 to obtain the
Employee details
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = i_emp_number
infty = c_infy_type_1
begda = sy-datum
endda = sy-datum
TABLES
infty_tab = i_emp_details
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
SY-SUBRC check is not required as the error
handelling will be done by WorkFlow rule
resolution.
CLEAR wa_request.
READ TABLE i_emp_details INTO wa_request INDEX 1.
IF sy-subrc = 0.
Retrieving the Country SubGrouping for the employee
SELECT SINGLE molga
FROM t001p
INTO v_country_grp
WHERE werks = wa_request-werks
AND btrtl = wa_request-persk.
ENDIF.
Sending the relevant data to event container
swc_set_element i_event_cont 'EmpId' i_emp_number.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'PersonnelArea' wa_request-werks.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'EmpSubGrp' wa_request-persk.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
swc_set_element i_event_cont 'EmpTripId' i_emp_trip.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
Raising the event to trigger the workflow
v_object_key = i_emp_number.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = c_bo_trip
objkey = v_object_key
event = c_event_trip
TABLES
event_container = i_event_cont
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
No Processing needed.
ENDIF.
COMMIT WORK.
ENDFUNCTION.
SWEL Transaction Code is used to track event linkage.
SWUS is used to test Workflow manually with single test.
<b>Please reward points if useful</b>
Thanks
Arghadip -
How you deal with the situation if the vendor/supplier is also a customer ?
Dear All,
Could you please help me with the idea on how to deal with the suppliers/vendors who also are customers to you in MM?
Thanks in advance,
RanjanIt depends what you are intentions are..
However
1. Create a customer master record for that vendor that is also a customer.
2. Enter Vendor number in Vendor field in control data-customer master record.
3. Enter customer number in Customer field in Control data- vendor master record
Finally, Check "Clrg with vend." field or "Clrg with cust." field -
Dealing with customer services!!!
Anyone had the delight of trying to deal with ADOBES online customer service team?
opening an issue on June 1st with one or two responses, that had completely mis-read my issue. They finally got around to answering (again) this morning!!!
With the answer 'You should try the many Adobe help forums around the world...don't worry these are free'
The question was, if Photoshop CS2 is incompatible with VISTA HOME, how would I be able to purchase Photoshop CS4 upgrade?
One of the answers they gave me was that I only have DREAMWEAVER!! Well no I don't!!!!
And having already asked the question on a few forums, as to whether photoshop CS2 is compatible the answer was no...I am therefore spending the day writing this on all forums I can find.... Because I am certainly not going to get any help from ADOBE.....who are the producers of this software and if the best they can come up with is to go to forums, run by other people than themselves...well what a state that comapny must be in.
If they don't know why their software is incompatible!!!!!!! Reminds me of baths and inability to run one!!!Yeah,
I chatted with a rep. online...
This was my question:
where do I submit my educational form?
Answer:
So you want the link for the educational store,
Sure right here! *Link*
And yeah....
I thought that was messed.
I dont even bother with emailing them!
It took them two months to answer
one question. -
BMP bean with finalizers, performance issue?
Hi Guys,
I am using BMP 1.1, websphere 6.1, and have been reading up on profiling my application.
Reading through the JProfiler manual, I found the following suggestion.
[http://resources.ej-technologies.com/jprofiler/help/doc/indexRedirect.html?http&&&resources.ej-technologies.com/jprofiler/help/doc/helptopics/config/finalizers.html]
I have about 5 BMP that would be closing connections via finalizers, and there would be thousands of calls to these BMP finders when the app is busy.
My question is, what do you guys think about the above link.
And what would the best way to implement this daemon thread, I am not sure where to put it in my code.
ThanksI am not sure if this is an issue or not.
I think the try-catch-finally executed synchronously and explicitly, and this is what is in my BMP beans.
And the problem in the above link is only pertaining to overriding.
protected void finalize () throws Throwable {} -
SessionSynchronization methods in Stateless Bean with BMP
Hi,
Why cant we use SessionSynchronization methods in Stateless Bean with BMP?
Just cos the bean has full control over the transactions and it doesnt make sense at all or there is something more to add to this.
Thanks in advance,
SeeteshHi,
Why cant we use SessionSynchronization methods in
Stateless Bean with BMP?Stateless Session Bean does not miantain the state across the method call.And the Transaction control is lying within the method call.
Just cos the bean has full control over the
transactions and it doesnt make sense at all or there
is something more to add to this.I dont understand what you are trying to say here.As stateful session bean maintains the state across the method calls and maintains the conversational state which lies is as cache.The Transaction can be aborted either by making the changes to old value and throwing the Exception to client indicating regarding the failure.But this will be great lost of work hence you make(find mechanism) a recovery from the old values which should be saved.
It is for this the specification has come up with SessionSynchronization interface (useful for only Stateful) Session Bean and with (declarative Transaction) CMT.
Regards
Vicky -
Need a Tx aware datasource when using CMT with BMP entity beans?
When using Containter-Managed Transactions with entity beans that have
bean-managed persistence, do I need to use a transaction-aware datasource?
Thanks,
Ken Gertsen
Hi ad13217 and thanks for reply.
I'm sorry but my code is like this:
javax.naming.Context ctx=new javax.naming.InitialContext();
arguments was an error on copy, but it doesn't work.
Thanks
Fil -
Hello:
I ve been trying to learn EJBs using Wrox's Professional EJB.
At page number 145 sequence diagram, it shows that ( for a bean
managed persistance Entity bean ) every find<METHOD>(args) invoked on
an EJBHome object will be delegated to a corresponding
ejbFind<METHOD>(args) method on the bean implementation object. I m a
bit confused here.
1. Since from the OO point of view, "find" is about finding, shouldn t
this have been a method on some kind of broker object, that should
have created/found the corresponding implementation objects and
returned the corresponding handles ( object references ). In the case
of findInRange() that returns multiple objects this becomes more
apparent, wherein one need to have an ejb implementation object to
start with in order to get the collection of objects he has been
looking for. Where did I 'didn t get it'
2. One of my friends says Container managed persistence ( CMP ) is not
at all popular due to the inefficiency compared to BMP, and that only
very few projects will be actually using it. Is there any truth in
this.
3. Is there a vendor neutral newsgroup ( and more specific that
comp.java.lang.help ) for posting ejb related discussions.
Thanks
--sonyHi Sony,
"Sony Antony" <[email protected]> wrote in message
news:[email protected]..
Hello:
I ve been trying to learn EJBs using Wrox's Professional EJB.
At page number 145 sequence diagram, it shows that ( for a bean
managed persistance Entity bean ) every find<METHOD>(args) invoked on
an EJBHome object will be delegated to a corresponding
ejbFind<METHOD>(args) method on the bean implementation object. I m a
bit confused here.
1. Since from the OO point of view, "find" is about finding, shouldn t
this have been a method on some kind of broker object, that should
have created/found the corresponding implementation objects and
returned the corresponding handles ( object references ). In the case
of findInRange() that returns multiple objects this becomes more
apparent, wherein one need to have an ejb implementation object to
start with in order to get the collection of objects he has been
looking for. Where did I 'didn t get it'In fact, a bean serves as the "broker" object, though I don't like
the name that much. Finally, this is the Spec, and you have to
live with it.
2. One of my friends says Container managed persistence ( CMP ) is not
at all popular due to the inefficiency compared to BMP, and that only
very few projects will be actually using it. Is there any truth in
this.It depends on application requirements. CMP are perfect for writing
simple persistance objects with "one object per one DB table" pattern.
From efficiency point of view weblogic does it's best to optimize
bean's behaiviour. You shouldn't be concerned about it.
BMPs are good when you need to deal with coarse-grained persistance.
I'd recomend you to get hands on experience with CMPs and
BMPs. Practice is invaluable source of knowlege.
3. Is there a vendor neutral newsgroup ( and more specific that
comp.java.lang.help ) for posting ejb related discussions.weblogic.developer.interest.ejb is a perfect place for this type of
discussions.
Regards,
Slava Imeshev -
Hi
I am trying to import two beans(TestBean and HelperBean)into my Web Dynpro project to create a model. These beans are dealing with a List(ArrayList). This List is considered as a Relation. I am facing problem in handling this relation.
I am having both the TestBean and HelperBean in the same package. Below is the code of TestBean. This bean is in turn calling HelperBean ,which is returning a List.
I am getting an error while creating model -
<b>[Error]: There are one or more relations unresolved. Importing the model without resolvoing the relations might result in erratic output.</b>
<u><b>Code For TestBean</b></u>
public class TestBean implements Serializable{
private List customerList= null;
HelperBean helper = new HelperBean();
public void execute(){
try{
customerList = (ArrayList)helper.getCustomerList();
catch(Exception ex){
ex.printStackTrace();
* @return
public List getCustomerList() {
return customerList;
* @param list
public void setCustomerList(List list) {
customerList = list;
I am new to Web Dynpro and don't know how to deal with relation.Please inform if there is some solution.
regards,
SujitSujit,
Not every bean becomes model class during import. So your HelperBean is irrelevant here. But you miss other bean, namely Customer bean. You must add it as model class during import, then select problematic 0..n relation and resolve it to model class Customer.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
How can I create unique partnerships to deal with like EDI messages?
I have an EDI to Application partnership setup currently that deals with translating MEDRUC type EDIFACT messages to a mainframe format. The setup is
Sender = PARTNERA,
Receiver = PARTNERB
DocType = MEDRUC.
In the Input EDI tab the
Sender Qualifier ID = ZZ:PARTNERA
Receiver Qualifier ID = ZZ:PARTNERB
Standard = EDIFACT
Version = D
Release Number = 97B.
Use UNG to locate partnerships = No
EDIFACT messages contain all this information in their UNB and UNH segments which is where SunONE IS B2B looks to then match against the relevant partnership. My problem is this does not go to enough granularity for me to distinguish uniqueness for the second partnership I need to create.
The problem is the "Association assigned code" field in the UNH for EDIFACT messages is not catered for anywhere in the partnership details area. This means then that whilst my existing partnership deals with Simplified Billing Claim MEDRUC's which is Association assigned code = SBC20, I can't create an EDI to Application partnership for PARTNERA and PARTNER B to cater for Two Way Gap Claiming MEDRUC's which are Association assigned code = TWC10, ie the two messages are D97B MEDRUC type messages only distinguished from each other by this Association assigned code.
Any ideas how can I then create a unique EDI to Application partnership for this TWC10 MEDRUC message?
What I am thinking I will have to do is make this second partnership Application to Application and create a custom service to wrap the MEDRUC message with a HREC/TREC and use the parameters in the HREC to dictate the DocType rather than use the UNB/UNH segments in the MEDRUC?Hmmm. It looks like way back when the decision was made on how specific the keys had to be, they didn't get quite specific enough for your case. I'm not super experienced with EDIFACT but I'll throw out some suggestions based on my HREC and X12 knowledge.
A. Could you handle both instnaces through the same partnership, but alter the map to create unique outputs based on the two different types? At least of the cards would need to be handled through Route, but you could have that picked up by a simple Outprep / Gateway Service list that put the data where you wanted it.
B. Before Parse, run a custom service that is capable of inspecting for which type of data it is, then modify one of the key fields in place to find the Second partnership. Really getting adventurous, maybe you could alter keys in the UNG to make the distinction. This assumes that you don't have both types of documents in the same interchange.
C. Your idea may be workable. Can you give some more detail on the make-up of the Service list and the destination/processing of the two differnt types of MEDRUC?
Thanks.
Maybe you are looking for
-
Moving the log file of a publisher database SQL Server 2008
There are many threads on this here. Most of them not at all helpful and some of them wrong. Thus a fresh post. This post regards SQL Server 2008 (10.0.5841) The PUBLISHER database primary log file which is currently of 3 blocks and not extendable, m
-
Using Western Digital Hard Drive on PC and Mac
I just bought a Western Digital 1 TB portable hard drive. I am looking to use the hard drive on my Mac at home, and PC at school. I was wondering if anyone could tell me how I partition the hard drive to work on both operating systems. Thanks, Bobcat
-
Distribution List not displaying user in Outlook
Hi All, Running Exchange 2010 with SP3. I have a user that when added to a distribution list only appear in the distribution list using ADUC or Exchange Management Console but in outlook 2013 if I expand the distribution list are not present but will
-
the application what I am working is in java & rmi, I have a batch file to run the application it is working fine, I want to Debug the application so i am trying to do the same in Eclipse it is failing and throwing following error... com.psc.dsg.di.b
-
Hi, I have updated my server today with security update 2009-001 as well as 10.5.7. Amavis has crashed as expected but I cannot get it working. Here is the error message: nemo:~ admin$ amavisd fetch_modules: error loading required module MIME/Head.pm