Difference between stop() and close()
Hi there,
I'm running a JMS test case, and in the setUp routine (run before each test case is called) I'm clearing out any messages in any of my test queues (can't use temporary queues).
My cleanup code looks like this:
-create a connection
-create a session
-setup my messagelisteners to consume the existing messages
-start the connection
-give some time for the messages to be consumed
-call connection.close()
Now, this works, but my question is why can't the last line be:
-call connection.stop()
Seems to me like in this instance the result should be the same, but it doesn't work! Can someone explain why not?
Thanks!
Mark
BTW to test JMS code I find myself frequently using an ActiveMQ broker embedded in the test case - with the 'persistence' option set to false. Then you have a fully functional JMS broker - in RAM - which has no persistence, so there's no messages to delete etc.
e.g.
BrokerService broker = new BrokerService()
broker.setPersistence(false);
broker.start();
// now go ahead and connect on vm://localhost or whatever
James
http://logicblaze.com/
Open Source SOA
Similar Messages
-
Sales order - difference between Cancel and Close?
Hi All,
In Sales Order, is there any differences between Cancelling order and Closing order?
Thanks
RicHi Ric...........
Difference between Cancel and close means if you raised Sales Order and your terms and condition is not accepted by your customer in such situation you have to cancel your order.
if you raised Sales Order and you did not agree with the payment terms sent by your customer in such situation you have to cancel your order.
if you raised Sales Order and put a date on which sale order should be canceled automatically if its not proceeded further from your customer in such situation you have to cancel your order.
But order cancellation must be before raising and type of target document.
Order close means if you have already raised target document against SO and now before completing order you have to stop the transactions or as per the validity of the Sales Contract then in such case you have to close the document......
Hope this is sufficient to know the difference between those....
Regards,
Rahul -
Difference between techo and close order
Dear all
plz tell what is a difference between techo and close production order
guide me
Rgds
SDB
Edited by: surendra patil on Aug 21, 2008 12:18 PMTECO means ending a production order from a logistical viewpoint. This function is usually used, if the execution of an order has to be stopped prematurely or if the order
could not be executed in the required manner and open requirements for the order (reservations,capacities) should be deleted.
The following actions are executed if an order is set to TECO:
· The order is not relevant for MRP planning
· Reservations are deleted
· Capacity requirements are deleted
· Purchase requisitions for external operations or non-stock materials are deleted
· The order and its operations receive the system status (TECO)
If an order is technically complete, you cannot change it. The fields in the order are displayed but
cannot be changed. You can however cancel technical completion, for instance if order data has
to be changed.
After technical completion you can still make posting for order.
For instance,material withdrawal or a confirmation can be posted if they were previously forgotten.
*Closed Order :
*The Closed (CLSD) status has been introduced in the production order. It has the following
characteristics:
· No more costs can be posted to the order, that is, confirmations and goods movements are
no longer permitted for the order.
· The order can no longer be changed. Exceptions to this are revoking the CLSD status and
setting the deletion flag.
· All actions relating to the status technically completed are executed
· In a collective order, the CLSD status is also set for subordinate orders.
· If the system comes across an order in the collective order that cannot be closed, the orders
that come between this order and the leading order are also not closed. Other subtrees are
closed if they only contain orders that can be closed.
Regards,
Hrishi. -
Difference Between Shutdown and Close Database
Hi all,
Let say I want to start the instance of database with the following processes :
1. STARTUP MOUNT
2. ALTER DATABASE OPEN
With two commands above, now the database is open. Then, I want to close the database with command :
3. ALTER DATABASE CLOSE
After this, I want to reopen the database again by using this :
4. ALTER DATABASE OPEN
I know that it will produce an error because when the database is opened and closed, its lifetime has already ended, so we must shutdown it first.
My questions are :
1. What's the difference between CLOSE and SHUTDOWN ? Suppose in the case above, I want to close the database. Why don't I just type SHUTDOWN ? Why is it necessary for me to use command CLOSE instead of SHUTDOWN ?
2. What are the conditions of database when I CLOSE database, also, what are the conditions of database when I SHUTDOWN database ? I want to know more detail because I have tried to find in google, but now satisfying result
Thanks before
Edited by: cycon on Nov 8, 2010 9:00 AMalter database close;this you can execute only from OPEN status
when ever you close the database it will go to mount status here you cannot open the database again, you need to clean sutdown and need to startup.
alter database open;ths you can execute only on MOUNT status, it will takes you to mount --> open status.
Thanks -
Difference between STOP and SHUTDOWN in MMC
Hi all,
When we see SAP MMC & right click the instance, we will get many options including STOP & SHUTDOWN.
Could you please tell me the difference between the two. If we click STOP, all the services like message server, dispatcher will be stopped, what will happen when we click SHUTDOWN?
Thanks & Regards,
Subbu.difference:
STOP will stop SAP application and the database, SHUTDOWN will do OS stop.
so if we want to restart SAP then STOP, and if we want to restart/reboot OS then SHUTDOWN
SO, if you wanna stop OS , then always STOP the application and db first with option STOP and then OS stop using SHUTDOWN
Bhudev -
Difference between billing and invoice? How to stop PGI?
can u please help me in these questions.
Difference between billing and invoice? How to stop PGI?Invoice is document indicating to delivery goods and Billing is a receipt of payment
Tables are VBRK & VBRP. For flow, go to transaction VF03, enter document number and hit 'Display Document Flow' button on toolbar
vbrk and vbrp holds billing/invoice details..
Billing Document:
Generic term for invoices, credit memos, debit memos, pro forma invoices and cancellation documents.
The tables are VBRK and VBRP.
2)-- once u do PGI the delivery document will be created . there is no way to stop it .. the thing u can to do go to the list of created deliveries in VL09.. select the delivery doc which u created.there u have the option of reversing the goods or canceling it.
let me know if i am wrong...
thanks,
madhan
Message was edited by:
madhan n -
Difference between billing and invoice?
Hi all
can anybody say Difference between billing and invoice?
thanksHi Ipsit,
Invoice is document indicating to delivery goods and Billing is a receipt of payment
Tables are VBRK & VBRP. For flow, go to transaction VF03, enter document number and hit 'Display Document Flow' button on toolbar
VBRK and VBRP holds billing/invoice details..
Billing Document:
Generic term for invoices, credit memos, debit memos, pro forma invoices and cancellation documents.
The tables are VBRK and VBRP.
2) -- once u do PGI the delivery document will be created. There is no way to stop it.. The thing u can to do go to the list of created deliveries in VL09. Select the delivery doc which u created. There u have the option of reversing the goods or canceling it.
Billing is generic term and u can say invoice is a type of billing document.
After PGI only way left is to cancel it by Using TCODE MBST as this Tcode is used to cancel any material document.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula -
What's the difference between jsp and jsf?
who can tell me what's the difference between jsp and jsf?
I'm puzzled when I found some of the technology in jsp is so similar to the ones in jsp( javaserver page)Hi,
Find the difference between JSP and JSF
1. A developer has more control with JSP, but (should) get easier development with JSF
2. Event handling is done differently in JSP (HTTP) and JSF (Java)
3. The UI is designed differently (or should be at least) with JSP (markup) and JSF (components).
4. The end product should also be defined differently - JSP page versus a JSF application.
Is this the only thing that is need to make a decision for either or? Probably not. There are other pieces that need to be taken in account when deciding which technology to use - tools support, enough components, type of application etc.... At this point there are not enough JSF components (although there are some interesting projects underway - Ajaxfaces, Myfaces, ADF Faces, and WebChart 3d) and enterprise tools support is still limited to a few tools vendor. Looking at our ADF Faces components they are currently available as early access (not production) and demands for these components are stacking up, literally, outside my office doorstep. Although I would love to make them production - now! - it is not a viable solution since we are still checking features and fixing critical bugs.
All this combined - not enough enterprise level components in production, lacking tools support etc... - leave customers in a vacuum where the decision is either to continue with JSP, since it is mature and has a wide developer base, or move forward with JSF not sure if the support, or the developers will be there. This is particularly sensitive to customers that need to get started now and be production by summer.
If you are in this vacuum here are some key points promoting JSF:
1. Fundamental unit is the Component
2. Built in event and state management
3. Component sets can be provided by any vendor
4. Closer to ASP.Net or Swing development
5. Choice of UI technology
6. Scale up (rich clients)
7. Scale down (mobile devices)
8. Built into J2EE containers in J2EE 5.0 (tentative) -
Differences between LSMW and BDC
Hi All
Please can you give me the few points about the differences between LSMW and BDC?
Awaiting for your Responce
PraveenHai Check with the following document
GOOD
THERE IS THREE TYPE OF METHOD IN BDC
BDC SESSION
CALL TRANSACTION
CALL DIALOG
What is BDC or batch input
The Batch Input is a SAP technic that allows automating the input in transactions. It lies on a BDC (Batch Data Commands) scenario.
BDC functions:
· BDC_OPEN_GROUP : Opens a session group
· BDC_CLOSE_GROUP : Closes a session
· BDC_INSERT : Insert a BDC scenario in the session
· The ABAP statement "CALL TRANSACTION" is also called to run directly a transaction from its BDC table.
It runs the program RSBDCSUB in order to launch automatically the session. The session management is done through the transaction code SM35.
The object itself is maintanable through the transaction SE24.
BDC methods:
Method
Description
Parameters
OPEN_SESSION
Opens a session
SUBRC (Return Code 0 OK)
SESSIONNAME (Session to be created)
CLOSE_SESSION
Closes a session
None
RESET_BDCDATA
Resets the BDC Internal Table...
None. Normally, for internal purpose
BDC_DYNPRO
Handles a new screen
PROGNAME (Name of the program)
DYNPRONR (Screen Number)
BDC_FIELD
Puts a value on the screen
FIELDNAME (Name of the field)
FIELDVALUE (Value to be passed)
CONSTRUCTOR
Constructor - Initializes NO_DATA
NODATA (No data character). The constructor is called automatically when the object is created.
RUN_SESSION
Launches a session with RSBDCBTC
None
CALL_TRANSACTION
Calls a transaction with the current BDC Data
MODE (Display Mode)
UPDATE (Update Mode)
TCODE (Transaction to be called)
BDC_INSERT
Inserts the BDC scenario in the session
TCODE (Transaction to be called)
BDC techniques used in programs:
1) Building a BDC table and calling a transaction,
2) Building a session and a set of BDC scenarios and keeping the session available in SM35,
3) Building a session and lauching the transaction right after closing the session.
BDC using Call Transaction
BDC using Call transaction involves calling an SAP transaction in back ground from within the ABAP
program. The process involves building an Internal BDC table containing the screen information needed to
execute the required transaction and then passing this to the Call transaction command (See code example).
The full procedure for creating a BDC program is as follows:
What is the difference between batch input and call transaction in BDC?
Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
BATINPUT/DIRECT INPUT
A: Batch-inputs can not be used to fill the "delivery due list" screen because it is not a dynpro. This is a standard SAP report. A SAP report (check with "System -> Status") may be called using SUBMIT sentence with the appropriate options . It is preferred to call a report than create a Batch-input program.
GO THROUGH THIS LINK
http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm
The LSM Workbench is an SAP R/3 based tool that supports the one-time or periodic transfer of data from non-SAP systems ("legacy systems") to SAP systems.
The LSM Workbench helps you to organize your data migration project and guides you through the process by using a clear sequence of steps.
The most common conversion rules are predefined. Reusable conversion rules assure consistent data conversion for different data objects.
LSMW vs DX Workbench
The LSM Workbench covers the following steps:
Read the legacy data from one or several files (e.g. spreadsheet tables, sequential files).
Convert the data from source format to target format.
Import the data using standard interfaces (Batch Input, Direct Input, BAPI, IDoc).
Experiences made in successful implementation projects have shown that using the LSM Workbench significantly contributes to accelerating data migration.
SAP provides this tool along with documentation to customers and partners free of charge.
Users of the LSM Workbench receive the usual support via SAP Net - R/3 Frontend (component BC-SRV-DX-LSM).
Releases:
Version 1.7.2 of the LSM Workbench ("LSMW 1.7.2") available
Attention : LSMW 1.7.2 requires an SAP R/3 system with SAP R/3 4.0 or SAP R/3 4.5.
Version 1.8.0 of the LSM Workbench (1.21mb) ("LSMW 1.8.0") available
Attention : LSMW 1.8.0 requires an SAP R/3 system with SAP R/3 4.6.
Version 3.0 of the LSM Workbench (1.89mb) ("LSMW 3.0") available for Web Application Server 6.10
Attention : LSMW 3.0 requires a SAP WAS 6.10. Functionality of version 1.7.2 and 3.0 are identical !
Version 4.0 of the LSM Workbench ("LSMW 4.0") integrated in Web Application Server 6.20
Attention : LSMW 4.0 is an integrated part of SAP WAS 6.20.
Thanks & regards
Sreenivasulu P
Message was edited by: Sreenivasulu Ponnadi -
Differences between Calendar and Reminders
Hi, anybody can give help and let me know the differences between Calendar and Reminders? I found the Calendar got all functions of the Reminders. If I want to mark an appointment, which one I should choose? Calendar or Reminders?
I look at this way. The Reminders app is sort of a To-Do list for simple tasks. It's like writing yourself a note electronically ... Pick up milk on the way home, let the cat out, don't forget to stop at the post office.., things like that.
The calendar app is a more robust app that allows you to share your meetings and appointments with others - if you need to or want to do so, it has the ability to repeat recurring events ( with some limitations), it has the option for multiple alerts (2) and more customization than the reminders app. You can select from and use a number of different calendars in the calendars app as well.
if it were me, I would use the calendars app for appointments, -
What is the difference between pause and save in Hyper-V?
hi,
What is the difference between pause and save in Hyper-V?
What are the benefits of using each function?
ThanksWHen you save VM, Hyper-V saves VM state to disk and frees all memory and CPU resources used by VM. When you pause a VM, Hyper-V saves VM cpu state in memory, and then stops VM's cpu processes without releasing its memory. Since no disk operations are involved,
pausing and resuming can be done much faster than saving and restoring a VM.
Gleb. -
Difference between open_form and start_form
difference between open_form and start_form?
hi,
Any driver program must contain Open_Form, Close_Form and Write_Form. Other function modules are optional.
OPEN_FORM: This function module opens layout set printing. One must call this function module before he uses any of other layout set function modules like Write_Form, Start_Form, Control_Form etc., You need specify a layout set name in the export parameters of this function module. If nothing is passed to Open_Form then one should use Start_Form function module to open layout set before starting the output. The layout set opened by Open_Form should be closed by Close_Form function module, other wise output doesnt appear. We can use any number of Open_Form, Close_Form functions in one single program. But Close_Form must be there for every Open_Form in the program.
Some of the important export parameters we have to pass to Open_Form function module.
Form: Enter the Layout set name here, which then controls the output formatting. If nothing is specified then we must use Start_Form for opening layout set.
Language: Layout sets are Language dependent. Enter the desired language here. If the entered layout set is not in that language, then the function tries to open the Form entered in its original language. The default value is SY-LANGU.
Device: SAP Script can format a text on different device types. The device can be PRINTER or TELEX, TELEFAX, ABAP and SCREEN.
Dialog: Use parameter DIALOG to determine whether to display a dialog box before printing, in which the user can set several spool parameters for print formatting. Possible values: SPACE displays no print parameter screen. 'X' display print parameter screen. Default value: 'X'
Options: Use parameter OPTIONS to set several options for print formatting. The parameter has the structure ITCPO. The user can change some of the defined settings on the print control screen. The default value for Options is . We will discuss about ITCPO structure in detail later.
Other Export, Import and Exceptions are self-explanatory.
Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED. Some of the important export parameters for this function module are
Form: The parameter contains the name of the layout set you want to use for printing. If you specify no layout set here, the system restarts the last active layout set.
Language: Layout sets are language-dependent. Enter the desired language here. If the layout set does not exist in this language, the system tries to call the layout set in its original language. If the parameter LANGUAGE is empty, the system uses the language of the last active layout set.
Startpage: Usually, SAP script starts with the page specified as start page in the layout set definition. If we want to start output with another layout set page, enter the name of the desired layout set page here. If the desired page is not defined, the system uses the start page defined in the layout set.
Program: To replace program symbols, SAP script must know which active program contains the work areas for the values to be passed. If we omit the parameter, the system searches for the field values in the program that was specified in the parameter OPTIONS (field TDPROGRAM) of OPEN_FORM. If we enter a program name, the system replaces the program symbols with the values from this program up to the next END_FORM.
Exceptions and other Export, Import parameters are self-explanatory.
Regards
Kiran Sure -
Looking for new laptop what are the differences between pro and air? Besides size. Does the air preform like the pro?
The NEW macbook Pro and Air are EXTREMELY close in form factor
The newest macbook Pro is essentially a larger macbook Air with Retina display and options for speed in increasing prices up to an independent graphics and quad core processor.
both Air and new Pro now have PCIe SSD and permanent RAM.
The Air is the lightweight portable form factor, fast to boot and shut down, but with longer battery life than any of the macbook pro in 13"
Now the new macbook Pro and macbook Air are extremely close in form factor and nature.
both have 802ac wifi
both have permanent RAM, no superdrive
both are slim profiles and SSD
The only real differences now are (in the most expensive Pros) faster processors and quadcore processors and top end model autonomous graphics.
....and of course the retina display
both are now "very good for travel"
Other than features the form factor of the Air and Pro are VERY close now,....so now its merely a matter of features and price more than anything.
You need an external HD regardless of what you get for backups etc. Drop into an Apple store and handle both and make your choice based on features, such as Retina or non-retina, .... both at a distance now look like the same computer.
The Pro weighs more, ....but nowhere near what it used to just a month ago on the older macbook Pros
The NEW macbook Pro is a different creature entirely than the older macbook Pro, .....the new Pro is thicker than the Air, but id frankly call the NEWEST Pro a "macbook Air with Retina display" , or
Maybe a “macbook Air PRO with Retina display”
Instead of Air VS Pro now,.....its really a smooth transition from Air to pro without comparing say, 2 different creatures, now its like contrasting a horse from a race horse.
Either one in 8gig of RAM (preferably)... the 4gig upgrade costs very little, the I7 you will notice only 15% faster on heavy applications over the I5, and NOTHING on most APPS.....I5 has longer battery life.
As you see below, the non-Retina 13" AIR is 82% of the Macbook with Retina display in resolution
there is no magical number of pixels per inch that automatically equates to Retina quality.
http://www.cultofmac.com/168509/why-you-might-be-disappointed-by-the-resolution- of-those-new-retina-display-macs-feature/
A huge internal SSD isnt a game changer for anything, you need an external HD anyway
what you WONT READ on Apple.com etc. is that the larger SSD are MUCH FASTER due to SSD density
"The 512GB Samsung SSD found in our 13-inch model offers roughly a 400MB/s increase in write speeds over the 128GB SanDisk/Marvell SSD"
http://blog.macsales.com/19008-performance-testing-not-all-2013-macbook-air-ssds -are-the-same
Here is an excellent video comparison between the 11” I5 vs. I7 2013 Macbook Air.
http://www.youtube.com/watch?v=oDqJ-on03z4
http://www.anandtech.com/show/7113/2013-macbook-air-core-i5-4250u-vs-core-i7-465 0u/2
I5 vs. I7 performance 13” Macbook Air 2013
Boot performance
11.7 I5 ……11.4 I7
Cinebench
1.1 I5….1.41 I7
IMovie Import and Opt.
6.69 I5….5.35 I7
IMovie Export
10.33 I5…8.20 I7
Final Cut Pro X
21.47 I5…17.71 I7
Adobe Lightroom 3 Export
25.8 I5….31.8 I7
Adobe Photoshop CS5 Performance
27.3 I5…22.6 I7
Reviews of the newest Retina 2013 Macbook Pro
13”
Digital Trends (13") - http://www.digitaltrends.com/laptop-...h-2013-review/
LaptopMag (13") - http://www.laptopmag.com/reviews/lap...play-2013.aspx
Engadget (13") - http://www.engadget.com/2013/10/29/m...-13-inch-2013/
The Verge (13") - http://www.theverge.com/2013/10/30/5...ay-review-2013
CNet (13") - http://www.cnet.com/laptops/apple-ma...-35831098.html
15”
The Verge (15") - http://www.theverge.com/2013/10/24/5...w-15-inch-2013
LaptopMag (15") - http://www.laptopmag.com/reviews/lap...inch-2013.aspx
TechCrunch (15") - http://techcrunch.com/2013/10/25/lat...ok-pro-review/
CNet (15") - http://www.cnet.com/apple-macbook-pro-with-retina-2013/
PC Mag (15") - http://www.pcmag.com/article2/0,2817,2426359,00.asp
Arstechnica (15") - http://arstechnica.com/apple/2013/10...-pro-reviewed/
Slashgear (15") - http://www.slashgear.com/macbook-pro...2013-26303163/ -
Difference between Error and Exception
Can anyone tell me the difference between error and exception
ThanzErrors and Exceptions, in a Nutshell
Errors and exceptions both inherit from Throwable, but they differ in these ways:
Exceptions
Can be checked or unchecked
Indicate an error caused by the programmer
Should be handled at the application level
Errors
Are always unchecked
Usually indicate a system error or a problem with a low-level resource
Should be handled at the system level, if possible
pretty much exceptions cause abnormal flow of the program, errors stop it, least thats my idea, it can get pretty complicated, below is a really good link for htat, also, Google it.
http://www.fawcette.com/javapro/2002_09/online/errors_jstreet_09_13_02/
really good site
-brian -
Difference between Abort and Terminate
What is the difference between aborting and terminating a sequence?
Solved!
Go to Solution.Create a sequence with some steps in the setup, some in the main and some in the clean-up stepgroup. You should also add a subsequence with an equal setup. Call this sub from a main step in the MainSequence.
Terminate/Abort at a step in the main stepgroup of the subsequence. Look into the report for the result.
Hint: Give unique names to your steps (statements) that you see with one blink of an eye from which stepgroup the steps are.
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Maybe you are looking for
-
Error in phase creating java users during installation!!
Hi, We are getting error at step "Creating java Users" while installing NW 2004s SR1 non unicode dual stack on HP Ux Pa Risc 64 bit with database Oracle 10g. Erro logs of file /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/sapinst_dev.log are as:
-
Error message when syncing Ipad: unable to load data class
for the past hour my itunes have been trying to sync. it's on step 2 of syncing ipad and it's been on that for a while. when I get to step two, after it asks me if I want to sync my purchased on my ipad to itunes, I click ok. then i keep getting t
-
How can I connect to WinCC database (best by use of OLE DB provider)?
Post Author: MarkusR CA Forum: Data Connectivity and SQL Hello, if I connect to the WinCC database by using the WinCC OLE DB provider I do not get the tables I expect. E.g. I would like to see the AlgViewEnu or other tables/views of AlarmLogging or T
-
Sync between computer, iCloud and phone is a mess.
I started when I noticed that some newly added contacts on my computer were not showing up on my phone, and when I checked iCloud they weren't there either. Following the advice in multiple other discussions, i turned off, then back on, contacts syn
-
Problem deleting Content Areas
Hi! i have just encountered the following error while deleting a content area An unexpected error has occurred (WWS-32100) ORA-6502: ORA-06502: PL/SQL: numeric or value error (WWC-36000 Thing to mention is... before that when i tried to delete anothe