Duplicate call
I have been coding in JSF for 2/3 years now, but never read a book on, been learning as I go. I do have a book now to try further my understanding of what happens behind the scenes but I'm rather perplexed at this code below, I can not understand why it does what it does. This is my code, it is list of email addresses which are displayed and can be modified, added to, delete...
JSF
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<f:view>
<h:form id="updateForm">
<h:dataTable value="#{FeedbackReceiversHandler.receivers}" var="receiver"
headerClass="headerBlue" rowClasses="white, altbg"
border="0" cellpadding="3" cellspacing="0" width="500">
<h:column>
<f:facet name="header">
<h:outputText value="Id" />
</f:facet>
<h:outputText value="#{receiver.id}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Check Details" />
</f:facet>
<h:inputText value="#{receiver.email}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Enabled" />
</f:facet>
<h:selectBooleanCheckbox value="#{receiver.enabled}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Preference" />
</f:facet>
<h:selectOneMenu id="preference" value="#{receiver.preference}">
<f:selectItem id="item1" itemLabel="Daily" itemValue="DAILY" />
<f:selectItem id="item2" itemLabel="Monday" itemValue="MONDAY" />
<f:selectItem id="item3" itemLabel="Tuesday" itemValue="TUESDAY" />
<f:selectItem id="item4" itemLabel="Wednesday" itemValue="WEDNESDAY" />
<f:selectItem id="item5" itemLabel="Thursday" itemValue="THURSDAY" />
<f:selectItem id="item6" itemLabel="Friday" itemValue="FRIDAY" />
</h:selectOneMenu>
</h:column>
<h:column>
<h:commandLink id="deleteReceiver" action="#{FeedbackReceiversHandler.delete}">
<h:graphicImage id="deleteImg" value="/images/delete.gif" alt="Remove email receiver" />
<f:param name="receiverId" value="#{receiver.id}" />
</h:commandLink>
</h:column>
</h:dataTable>
<h:commandButton id="save" action="#{FeedbackReceiversHandler.saveChanges}" value="Save Changes" />
</h:form>
</f:view>
Managed Bean
public class FeedbackReceiversHandler extends BaseBean {
private static final Logger logger = Logger.getLogger(FeedbackReceiversHandler.class.getName());
private ArrayList<ReceiverVO> receiversData;
public ArrayList<ReceiverVO> getReceivers() {
logger.debug("Get List Data...");
receiversData = new ArrayList<ReceiverVO>();
System.out.println("CALLED");
Connection conn = null;
ResultSet rs = null;
PreparedStatement ps = null;
try {
conn = PooledConnectionHelper.getConnection("DS_WFMT_DATA");
if (conn != null) {
logger.debug("Attempting to execute SQL: " + buildSQL());
ps = conn.prepareStatement(buildSQL());
// bind the variables
ps.setString(1, getPerspective());
rs = ps.executeQuery();
// Add each rows data into a data bean object and place into bean
while (rs.next()) {
ReceiverVO oneRecord = new ReceiverVO();
oneRecord.setId(rs.getString("RECEIVER_ID"));
oneRecord.setEmail(rs.getString("EMAIL"));
oneRecord.setEnabled(rs.getString("ENABLED").equalsIgnoreCase("Y"));
oneRecord.setPreference(rs.getString("PREFERENCE"));
receiversData.add(oneRecord);
} catch (Exception ex) {
logger.error("FAILED TO EXECUTE SQL: " + ex);
} finally {
PooledConnectionHelper.closeAllDatabaseObjects(conn, rs, ps);
logger.debug("List of rows return contains "+ receiversData.size() +" records");
return receiversData;
private static String buildSQL() {
// Main SQL to return all rows data for Records Return search without search criteria where clause
SELECT
receiver_id,
email,
enabled,
preference
FROM
feedback_receivers
WHERE
perspective = ?
final String RETVAL = "SELECT receiver_id, email, enabled, preference FROM feedback_receivers WHERE perspective = ?";
return RETVAL;
}What I can not understand is why the getReceivers() method gets called twice??? I have added System.outs into this method and also run the code through in debug mode in Eclipse so I know this get called twice when the page loads. What I don't know is why, and how do I stop this.
Depending on how fast the getReceivers() method runs, I very often get duplicate rows displayed which is the problem, plus even if it does display ok, it still means the database is getting hit twice.
Q's
1) So my questions are, why is this called twice?
2) How do I stop it being called twice?
TIA,
Dale Ellis
Dale_Ellis wrote:
What I can not understand is why the getReceivers() method gets called twice??? I have added System.outs into this method and also run the code through in debug mode in Eclipse so I know this get called twice when the page loads. What I don't know is why, and how do I stop this.Bean getters can indeed be invoked more than once in bean's life. Bean getters are purely intented to return data, not to load data. You normally use the bean class constructor, or init block, or lazy loading, or action(event) methods for this.
1) So my questions are, why is this called twice?
2) How do I stop it being called twice?Carefully read those articles.
[http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html]
[http://balusc.blogspot.com/2006/06/using-datatables.html]
That said, the name of your ' PooledConnectionHelper' class scares me... At that stage in the code you normally really shouldn't worry about if it is a pooled connection or a normal connection. This is honestly a smell.
Similar Messages
-
Duplicate Call on Gatekeeper with CME
Hi,
I have an architecture with 2 CME.
CME A is connected to a gatekeeper and there is no problem when users make some calls.
CME B is not directly connected to the gatekeeper but when a user call an other one on the CME A, I can see the call on the gatekeeper.
Moreover, if a user on CME B try to call a user that is not on the CME A, the call will be forwarded to the gatekeeper and in this case, I have a duplicate call on the gatekeeper.
I have the following dial-peer on the CME B:
voice dial-peer 10 voip
destination-pattern XXXXX
session target ipv4:X.X.X.X (CME A)
On the CME A, I have an incoming dial-peer for CME B calls and an outgoing dial-peer for every call to the gatekeeper (session target ras).
Could you help me to fixe this problem ? I tried to use 2 different loopback interfaces but the problem is still there.
Thank you in advance
VincentHi,
I tried the configurations but it did not change my problem.
I still can see the call on the gatekeeper:
Total number of active calls = 1.
GATEKEEPER CALL INFO
====================
LocalCallID Age(secs) BW
1066-17702 3 16(Kbps)
Endpt(s): Alias E.164Addr
src EP: 0001
Endpt(s): Alias E.164Addr
dst EP: TRUNK_CME_A 0002
CallSignalAddr Port RASSignalAddr Port
10.206.48.236 1720 10.206.48.236 52937
Any other idea ?
Thanks
Vincent -
System Duplicate All Manual calls From Maint Planu2026
Hi All,
The scenario is like this; our plant was shutdown for 3 moths so maintenance team deactivated all the Maint plans. After 3 months or so today they activate the Maint plans and generate manual calls through IP10. Now the problem is, the system generate all these calls twice say duplicating all the calls( one call is generating two times). Same case I am trying to re produce in quality client but its working fine. Can anybody throw some light on it what is the reason behind such system behavior?
Regards,
AnishHi NNR,
NO user has not skip any calls. In IP10 user just go in Manual call tab and enter selection date and due package. What i observed here is all the duplicate call having same Maintenance Item no.
for Example Say for plan A, user generate manual call and system generate call no 1 and 2 (call is duplicating) but both orders having common Maintenance Item number 5 why?
Regards
Anish -
Calling r25con32.exe from the command prompt
how to call r25con32.exe from the run prompt.
Duplicate:
Calling r25con32.exe from the command prompt
:) -
Duplicate calls on two devices?
That is a new feature described in Connect your iPhone, iPad, and iPod touch using Continuity
You can turn it off:
Turn off iPhone cellular calls
To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls. -
Way too many calls when putting up a simple UITableView
I did this just for grins to see what I came up with. Boy was I surprised!
Here's a listing of the calls made loading a table with 2 sections where the first section has row and the second has 2 rows. Each section has a header title and a footer title.
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: initWithStyle:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: viewDidLoad
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: viewWillAppear:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: numberOfSectionsInTableView:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: viewDidAppear:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: numberOfSectionsInTableView:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:numberOfRowsInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:numberOfRowsInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:cellForRowAtIndexPath:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:cellForRowAtIndexPath:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:cellForRowAtIndexPath:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForHeaderInSection:
NavBasedTestBed[37232:20b] >> Object: <RootViewController: 0x3d1d3a0> Received: tableView:titleForFooterInSection:
To summarize, there are:
9 tableView:titleForHeaderInSection:
8 tableView:titleForFooterInSection:
2 numberOfSectionsInTableView:
2 tableView:numberOfRowsInSection: -// I hope we all agree
3 tableView:cellForRowAtIndexPath: --// these make sense
But can anyone explain all the other duplicate calls?
Waiting with baited breath.
-PhilIt's probably the same code which caused loadView and viewDidLoad to run a total of 9 times for a simple (single) call to pushViewController:newViewController. I still can't believe the fix was to either comment out the loadView method, or add a call to super loadView to it. It makes no sense.
Really! -
Getting error-ORA-24381: error(s) in array DML
Hi i have written the following code to bulk insert into a database table.
I am getting an error while returning the result of the bulk insert query into the collection
I have tried to track it by using sql%bulk_exceptions.error_code.
But the error code that it is showing is just 1.
I trapped it using sqlerrm.
and that is showing-error(s) in array DML
What do i do?
DECLARE
CURSOR temp_rec_tap_cur
IS
SELECT *
FROM temp_records_tap;
TYPE temp_rec_tab IS TABLE OF temp_rec_tap_cur%ROWTYPE;
v_test_tab temp_rec_tab;
v_rec_num num_tab;
v_filename temp_records_tap.file_name%TYPE;
v_error_code tap_reject.error_code%type;
v_rej_value tap_reject.field_rej%type;
v_errors number;
BEGIN
SELECT file_name
INTO v_filename
FROM table1
WHERE ROWNUM<2;
OPEN temp_rec_tap_cur;
LOOP
BEGIN
FETCH temp_rec_tap_cur
BULK COLLECT INTO v_test_tab LIMIT 1000;
FORALL i IN v_test_tab.FIRST .. v_test_tab.LAST SAVE EXCEPTIONS
INSERT INTO tapdetail_tapin
VALUES v_test_tab (i)
RETURNING record_num
BULK COLLECT INTO v_rec_num;
EXCEPTION
WHEN DUP_VAL_ON_INDEX
THEN
NULL;
WHEN OTHERS
THEN
v_errors:=sql%bulk_exceptions.count;
for i in 1..v_errors
loop
dbms_output.put_line(sql%bulk_exceptions(i).error_code);
p3_errorlog ('TAPINDETAWARE', SQLERRM, v_filename);
end loop;
END;
--RAISE;
EXIT WHEN temp_rec_tap_cur%NOTFOUND;
END LOOP;
INSERT INTO table2
SELECT file_id, file_name, sender_pmn, recipient_pmn, call_date,
call_date_only, call_type, call_number, FIRST_RECORD,
service_type, service_code, home_bid, serve_bid,
chargeable_subs_type, imsi_min, msisdn_mdn, air_charges,
air_charges_sdr, air_time, national_call_charges,
national_call_charges_sdr, national_call_time,
international_call_charges, international_call_charges_sdr,
international_call_time, dir_assist_charges,
dir_assist_charges_sdr, dir_assist_time, other_charges,
other_charges_sdr, other_time, volume_charges,
volume_charges_sdr, volume_units, tot_charges, tot_charges_sdr,
tot_duration, state_tax, state_tax_sdr, local_tax,
local_tax_sdr, state_and_use_tax, state_and_use_tax_sdr, va_tax,
va_tax_sdr, other_tax, other_tax_sdr, charge_refund_indicator,
advised_charge_currency, advised_charge, advised_charge_sdr,
advised_charge_commission, advised_charge_commission_sdr,
exchange_rate, mcc, mnc, process_date, chargeable_units,
record_num, mscid,null,null,decode(call_type,0,'250',1,'251',5,'255'),null,'Duplicate Call'
from temp_records_tap
where record_num not in (select column_value from table(v_rec_num)) ;
EXCEPTION
WHEN OTHERS THEN
p3_errorlog ('TAP', SQLERRM, v_filename);
END;Edited by: user8731258 on Sep 14, 2010 2:58 AM
Edited by: user8731258 on Sep 14, 2010 3:01 AMWhat is the type declaration of num_tab and how is record_num defined?
ORA-24381: error(s) in array DML
Cause: One or more rows failed in the DML.indicates that you fail on the insert itself. Are the table definitions the same? Same primary/unique keys?
Edited by: MBr on 14-Sep-2010 03:16 -
I have a site with around 100 pages, all based on a single
template that has never given me problems until now. My template
includes a pop up menu that I made in Fireworks. I am not trying to
make changes to the popup menu. I am only trying to add some links
in an editable region of the template. It has always worked fine
until now.
I make the change, then proceed to save the template. It asks
me if I want to apply changes to all pages, I say yes of course,
but then this message appears.
"You are attempting to edit a pop up menu in an unsaved
document. This could cause your menus to appear incorrectly or not
at all when the document is previewed in a browser.
We strongly recommend that you save your document before
proceeding."
Cancel or Ok
If I click on OK, the next window says,
“At line 1620 of file Mac HD:Applications: MAcromedia
Dreamweaver MX 2004: Configurations: Behaviors: Actions: Show Popup
Menu.js: the function saveDoc is currently unavailable."
OK:
I click on OK because that is the only option, the DW
proceeds to do the same for each of my 100 pages! Until it finally
unexpectedly quits!
I have downloaded the trial of DW 8 and the same thing
happens.
Can someone give me a solution here?There's no way to know how errors creep into pages, but this
particular page
has duplicate instances of the javascript to support those
menus - look at
the code.
Line 9-10
function mmLoadMenus() {
if (window.mm_menu_0409201323_0) return;
Line 71-72
function mmLoadMenus() {
if (window.mm_menu_0409201323_0) return;
That can't be good. One of these (the former) is in a NON
editable part of
the page, and the other is in an editable part of the page.
Other anomalies are -
1. Broken links - <link
href="file:///Macintosh%20HD/Users/cavallaro
2. Duplicate calls to build the menus -
<body bgcolor="#ffffff">
<div align="left">
<script
language="JavaScript1.2">mmLoadMenus();</script>
<img name="pscamasthead" src="images/pscamasthead.jpg"
width="780"
height="172" border="0" usemap="#m_pscamasthead" alt="">
<map name="m_pscamasthead">
</table>
<script
language="JavaScript1.2">mmLoadMenus();</script>
<map name="m_pscamasthead">
<area shape="rect" coords="575,153,659,167" href="#"
alt=""
onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0409201323_0,573,172,null,'pscamasthead');"
>
along with duplicate instances of map names (no two elements
on a page can
have the same name).
3. Invalid uses -
<h2>
<div align="center"> (you cannot put a <div>
within an <h#> tag.
Any one of these is a candidate for triggering the error
message you are
getting. What's the solution? Fix the problems in the
template file, but
you will have to work in code view. Then delete the duplicate
stuff from
the editable region IN EACH CHILD PAGE - again in code view.
But - having done all of that, you are still left with a menu
system that is
basically uneditable in the template file....
I'm sorry Macromedia did this to you. Really....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"mikeant" <[email protected]> wrote in
message
news:[email protected]...
> My site is pasoccercoaches.org.
>
> I don't understand why it HAS been compatible for the
last 18 months until
> now. Is it because I have too many pages? I read one of
the other posts
> about
> something to that effect, but I can't find it anywhere
in DW
> documentation.
> -
Recurring To Dos and multiplying events from subscribed calendars
The density and volume of discussion about iCal's recurring ToDos and Events is too overwhelming to survey in its entirety so I will try this new post focussed on my problems.
My iCal has been starting up (beach ball icon turning) for more than a day, a process that began when I opened the ToDos column (push pin icon at bottom of window). Rightly or wrongly I entered a large number of birthdays and other anniversary dates as ToDos instead of Untimed Events. The bulk of my ToDos are such annually recurring events although there are plenty of others with shorter intervals (like those involving taking the trash out or renewing library books).
I suspect that it is these recurring ToDos running many years into the future that is preventing iCal from completing its start up and clogging up the application's data capacity. I can force quit the application, but the whole process only "recurs" when I launch the application again. I would happily sacrifice my entire ToDo file (Calendar) and re-enter the information under recurring untimed events, but I cannot figure out how. Moreover, Michael Lafferty wisely cautioned in regard to an iSync post about removing any files in OS 10 from the location where Apple placed them.
So how can I escape this bewildering and frustrating situation and get back to my more serious problem with using iSync to synch my Zire 71 with iCal on my G4?
Thanks
G4 400Mhz Mac OS X (10.3.9) another G4 400 Mhz w/ OS 19.3.9, PPC8100AV Mac OS 9.2, Palm Zire 71, Handheld Visor
G4 400Mhz Mac OS X (10.3.9) another G4 400 Mhz w/ OS 19.3.9, PPC8100AV Mac OS 9.2, Palm Zire 71, Handheld VisorIn another post, information was provided for removing duplicates, one an Applescript its creator supplied for finding and deleting iCal duplicates (called Delete iCal Duplicates) and another a shareware application UnDupe available from the Palm Store or Stevens Creek Software that will find and remove duplicates on a Palm device such as my Zire 71. I used both, finding few duplicates in iCal with the Delete iCal Duplicates Applescript, but a staggering number of duplicate ToDos on my Zire with UnDupe which I removed.
However, I still am unable to complete a sync with HotSync Manager and iSync because the Conduit Manger fails in mid-sync repeatedly. I am getting in the HotSync log the following message, but iSync continues the syncing process as though nothing has happened. Here is the message:
Sync type is Fast
iSync Conduit starting 7.28.06 11:31:23 PM
Setting Hello Response, type is PalmSyncTypeFast, language is 0
(BladeLanguageEnglish) 7.28.06 11:33:51 PM
Timeout waiting for Sync Engine, exiting 7.28.06 11:40:39 PM
iSync Conduit: received NULL message, disconnecting... 7.28.06 11:40:39
PM
iSync Conduit synchronization failed
“iSync Conduit” failed (error = #-1)
Do I need to re-install Palm Desktop v4.2.1 to replace a defective Conduit Manager component or what other solution to this repeated failue in mid-sync. Also note as I said that iSync does not stop and report the sync failure but just continues running and cannot be "Cancelled" either. Only a force quite and a complete re-start will stop iSync from continuing the synching process long after HotSync Manager has reported and logged the iSync conduit sync failure. Correction: some 40 minutes after HotSync Manager declared an interruption and failure, iSync has finally stopped with a sync failure alert
Thanks for help although at this point after 2-3 days no one has responded to my orginal question. Should I have cross-posted to the iSync Forum?
G4 400Mhz Mac OS X (10.3.9) another G4 400 Mhz w/ OS 19.3.9, PPC8100AV Mac OS 9.2, Palm Zire 71, Handheld Visor
G4 400Mhz Mac OS X (10.3.9) another G4 400 Mhz w/ OS 19.3.9, PPC8100AV Mac OS 9.2, Palm Zire 71, Handheld Visor
G4 400Mhz Mac OS X (10.3.9) another G4 400 Mhz w/ OS 19.3.9, PPC8100AV Mac OS 9.2, Palm Zire 71, Handheld Visor -
Looping problem...How to create and lock a set of PathItems?
Greetings all!
I'm a noob....a very confused one
And I'm trying to get this thing work
So here is what I have. The first loop grabs the geometries drawn in the current document and rotates it around itself creating duplicates. The second loop is supposed to circumvent more geometries around the newly created geometries.
But instead of creating a radiant pattern, this code builds a tower: for the second loop everytime it grabs the last drawn geometry instead of what is in the "Original"
Can somebody explain what is wrong? Thanks!
for NumPaths = 1 to frontDocument.PathItems.count
set myPath = frontDocument.PathItems.item(NumPaths)
For index = 0 To 30
set newPath = myPath.Duplicate
call newPath.translate(100*sin(6.14* index/30),100*cos(6.14* index/30))
call newPath.rotate(360 * index/30)
Next
Next
Set Original = frontDocument.PathItems
for NumPaths = 1 to Original.count
set myPath = Original.Item(NumPaths)
For index = 0 To 30
set newPath = myPath.Duplicate
call newPath.translate(100*sin(6.14* index/30),100*cos(6.14* index/30))
call newPath.rotate(360 * index/30)
Next
Nextsomething like this?
first loop makes a "ring", in order to make this "ring" revolve around to make the sphere you have to make it a group, so the second loop duplicates the "ring" (grouped) and basically makes the same thing as the first one, but uses the group instead of pathItems.
For NumPaths = 1 To frontDocument.PathItems.Count
Set myPath = frontDocument.PathItems.Item(NumPaths)
Set myGroup = frontDocument.GroupItems.Add 'add a group
For Index = 0 To 30
Set newPath = myPath.Duplicate(myGroup) 'add each duplicate to the group
Call newPath.translate(100 * Sin(6.14 * Index / 30), 100 * Cos(6.14 * Index / 30))
Call newPath.rotate(360 * Index / 30)
Next
Next
Set Original = frontDocument.GroupItems 'make original all groupItems instead of pathItems
For NumPaths = 1 To Original.Count
Set myGroup = Original.Item(NumPaths) '
For Index = 0 To 30
Set newGroup = myGroup.Duplicate 'duplicate the groups
Call newGroup.translate(100 * Sin(6.14 * Index / 30), 100 * Cos(6.14 * Index / 30))
Call newGroup.rotate(360 * Index / 30)
Next
Next -
Hello,
We are in the process of writing an EJB-based application
running on top of WLS in a clustered environment and wonder
about the following:
1. We have transactional control in a session bean to make sure
that proper synchronization is used when concurent clients (JSPs)
invoke services on instances of the same session bean.
Would this work fine in the clustered environment? i.e. is any
additional code/care needed so that the same
transaction/synchronization control work equally well in the
clustered environment?
2. Some entity EJBs will certainly be replicated. Does the
clustering automatically take care of data validity? i.e. in
cluster 1 the database info the entity bean gets updated while
in cluster 2 a client (say a session bean) accesses the entity bean,
do we have guarantee that cluster 2's client gets the data as
was updated by cluster 1's client?
Any information would be greatly appreciated. Many thanks
in advance!
Please Cc your replies to [email protected], if
not a burden.
-Mourad
The dbIsShared property of the deployment descriptor will also address the
concerns in your second question.
--Joe Sherwin
Senthil Kumar S wrote:
> Mourad Zerroug wrote:
>
> > Hello,
> >
> > We are in the process of writing an EJB-based application
> > running on top of WLS in a clustered environment and wonder
> > about the following:
> >
> > 1. We have transactional control in a session bean to make sure
> > that proper synchronization is used when concurent clients (JSPs)
> > invoke services on instances of the same session bean.
> >
> > Would this work fine in the clustered environment? i.e. is any
> > additional code/care needed so that the same
> > transaction/synchronization control work equally well in the
> > clustered environment?
>
> Statefull session bean`s Home can be clusterable not the remote objects.
> So if the client connects to a session bean then it will be pinned
>
> Stateless session beans:
> In this case u have ot make sure the services are idempotent. The
> implementation should take care of those duplicate calls
>
> >
> > 2. Some entity EJBs will certainly be replicated. Does the
> > clustering automatically take care of data validity? i.e. in
> > cluster 1 the database info the entity bean gets updated while
> > in cluster 2 a client (say a session bean) accesses the entity bean,
> > do we have guarantee that cluster 2's client gets the data as
> > was updated by cluster 1's client?
>
> It depends on the isolation level u set.
> weblogic.com/docs51/classdocs/API_ejb/EJB_reference.html#1056190
>
> >
> >
> > Any information would be greatly appreciated. Many thanks
> > in advance!
> >
> > Please Cc your replies to [email protected], if
> > not a burden.
> >
> > -Mourad
-
Problem with a total...
I'm a beginner..hope this won't bother..
I have 3 groups. In the last i want 2 calculate something based on some columns(something like (SN-S1)*price).
For that i use a PL/SQL function(code between begin and end : return((:sn-:s1)*:price)). So far so good.
The problem appears when based on this function i calculate a sum with data wizard. I belive this is the problem because if i save my file before that point and reopen at that state everything is just fine.
The problem is not shown until i close and reopen my report. At this time i get the "REP-0002:Unable to retrieve a string from the Report Builder message file" error.
What could be the problem?Thread is closed..as it is duplicate call.
Sairam. -
I'm using an older mac (2008 iMac). Things were getting slow and I used a program called DupZapper to get rid of a lot of duplicate files. It worked and my computer is running better. The only problem is now InDesign crashes at startup. I have the original disks and serial number (CS3) The error message is "required resources are missing". Same message if I try to uninstall. Any clues as to how to re-install?
reset your preferences and retry launching id: InDesign Help | Setting preferences
if that fails, uninstall (properly with the uninstaller), clean and reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 -
Is there one simple button or option called "delete or remove duplicates" ??
is there one simple button or option called "delete or remove duplicates" ??
to clarify..in winamp you simply click remove duplicates and all duplicate songs are removed. In Itunes it appears you have to click on each individuale song. (yes you can hold the control key and hit delete one time , but when yo uhave hundreds or thousands of songs this is very time consuming
Surely there must be a faster simpler way??????
Message was edited by: IanLeg
NO THIS DIDS NOT SOLVE ANYTHING i'M ADDING TO MY ORIGINAL QUESTION. I DID NOT SAY IT SOLVED IT
THE ITUNES APPLE CRAP IS REDICULOUS -
Service call to have duplicate function
Hi All,
I was trying to duplicate a Service Call, but the function is not available under Data Menu. Any idea why this function is missing from Service Call screen?
Regards,
MHRaise the case to helpdesk.
Maybe you are looking for
-
Hi Friends, I have to add new pushbuttons in the application tool bar of standard FBL5N report output. For that i have copied FBL5N into ZFBL5N and also copied status 'ALV_ITEMS_AR' into 'ZALV_ITEMS_AR' and copied the function 'FI_ITEMS_DISPLAY' i
-
Force modified style be applied to previously created docx files as well
Hi friends new to word. i have about 30 .docx documents. inside one of them, i selected a word which it's font is bold & is red & then i goto styles and right click on Heading1 and click on "update heading1 to match selection" then i right click on h
-
Spell checking dont working with "Automatic by language" option
Russian spell checking dont working with "Automatic by language" option in Sys. prefs.
-
Using Java Objects in my JSP page... objects are in a different directory
Hi, I would like to call and use an object from a JSP page. The java object is in one directory, the jsp is in another. When I call my object, I get a JSP error that says it can't find the object and lists the directory name as part of the file. For
-
Having trouble with The speed of my streaming wifi and internet connectionn work fine, ir seems The problem starter when i upares my airport bases, any support would be appriciated