How can i commit my operation
Hi everyone
I have a code like this
@Stateless(name = "MetadataSessionBean",mappedName="ejb/MetadataSessionBean")
@TransactionManagement(TransactionManagementType.CONTAINER)
public class MetadataSessionBean implements MetadataSession{
@Resource
private SessionContext context;
private EntityManagerFactory fact = null;
private EntityManager mgr = null;
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public boolean insertTheme(Integer id,String name)
// TODO Auto-generated method stub
boolean ret = false;
InspireDataThemeEB eb = new InspireDataThemeEB();
eb.setAdi(name);
eb.setId(id);
try{
eb = mgr.merge(eb);
mgr.persist(eb);
ret =true;
catch(Exception ee)
context.getRollbackOnly();
finally
return ret;
There isn't any exception.But my InspireDataThemeEB does not load to database.
And at the web tier
my code is
try {
Context ctx = new InitialContext();
MetadataSession sess = (MetadataSession)ctx.lookup("ejb/MetadataSessionBean");
sess.insertTheme(2, "john");
} catch (NamingException e) {
How i can i commit this operation?
So the advice I gave in your [earlier thread|http://forums.sun.com/thread.jspa?threadID=5428326] was useless?
Suppose an exception does happen, you are catching it and silently rolling back the transaction. You don't e.printStackTrace(); it or log anything.
Similar Messages
-
I have bought Mac Os X Mauntain Lion Operating System for my mac book pro some time ago.I then reinstalled my system.The original operating System on my Mac is 10.7 Lion. Now I cannot download Mac Os X Mauntain Lion Operating System.It says"This product is not avaible for Turkish App Store".How can I get this Operating System?
http://www.apple.com/tr/support/
-
how can I downgrade my operating system as my bluetooth work ok with my holde commodore on the 4.2.1 system but now it is upgraded to the latest system it does not operate properley
thankyou but it looks like we won't be buying another iphone
-
How can I commit my local m/c code to staging?
Hi
How can we commit local m/c code to staging? Do we have to publish code from local m/c to staging environment? or is there some different procedure?
ThanksPublishing is a step by step process.
in high level i can Say in 4 steges:
stege1: you will make your Delivery System Ready.
stege2: You'll move Site Configuration Data to the Destination Database(this time what are all the Tables(assettypes) are in your source system will be created in Delivery system). Site level Information
stege3:You'll approve list of asset to be moved to Delivery system.
stege4:You'll publish(move) the List of assets which you approved in previous step.
In your case you got stopped in stege 2 i thinks(reason as i know Some of the table have already been created in you delivery system, when you try to do the same step again , it is giving error)
And,
Though you didn't get a SUCCESS from the Contribution System, You can see list of sites in your delivery system, why because(as you are in stege2) some of the table are already moved. So you can able to see some sites in your delivery system even though your publishing process failed.
Delete the Site completely in Delivery System which is partially published.
Then check with the bellow steps:
step 1: Create the Batch User Account (If One Does Not Exist):
A batch user account is required before any type of publishing can take place. We can use fwadmin user account for publishing. If we want another separate user follow this step:
Log in to the administrator’s interface on your source system.
In the Admin tab, expand Management Tools and double-click User.
Assign following ACL’s for the above created User:
Browser
ElementEditor
PageEditor
TableEditor
UserReader
Visitor (if your installation includes Oracle WebCenter Sites: Engage)
VisitorAdmin (if your installation includes Oracle WebCenter Sites: Engage)
-xceladmin
–xceleditor
Step 2: Create the RealTime user on the destination system:
For publishing we can use fwadmin user account in destination system. It is always advisable to create a specific user for destination system by following the below steps:
In delivery system Log in to the administrator’s interface on your source system.
In the Admin tab, expand Management Tools and double-click User.
Provide the basic privileges for the above created User by assigning following ACL’s
Browser
ElementEditor
PageEditor
TableEditor
Visitor
VisitorAdmin
xceladmin
xceleditor
Step 3: If a Proxy Server Exists, Identify it to the Source System
To identify the local proxy server to the source system for all destinations
1. Open futuretense.ini in the Property Editor on the source system, select the Export/Mirror tab, and specify values for the following properties:
cs.mirrorproxyserver
Set this property to either the name or the IP address of the local proxy server.
cs.mirrorproxyserverport
Set this property to the port number of the local proxy server.
2. Save the property file and close the Property Editor.
3. Restart the application server.
To identify the local proxy server to the source system per destination
1. In the Admin interface, select the Admin tab. Expand Publishing, then expand Destinations, and open the destination.
The destination opens in the main screen.
2. Click Edit.
The “Edit Destination” screen for the destination displays.
3. In the More Arguments field, enter
PROXYSERVER=wcs.example.com&PROXYPORT=8080
Where wcs.example.com is the local proxy server, and 8080 is the port the proxy is
running on.
4. Click Save.
If no proxy server exists then this step is optional and not needed.
Step 4: Identify the Mirror User to the Source System:
Identify the name and password of the mirror user on the destination system to the source system by setting property values in the futuretense.ini file on the source system.
1. Start the Property Editor and open the futuretense.ini file on the source Sites system.
2. In the Export/Mirror tab specify values for the following properties:
cs.mirroruser= above created user of destination system
cs.mirrorpassword=password of above user
3. Save the property file.
Step 5: Create a RealTime Destination Definition on the Source System
To create a RealTime destination definition
1. On the source system, log in to the administrator’s interface.
2. In the Admin tab, expand Publishing, then Destinations.
3. Under Destinations, double-click Add New.
4.fill the details.then " add new Destination"
Step 6: Initialize the Destination Database:
You must initialize the destination database before you can publish to it.
To initialize the destination database follow the below steps
1. In the Admin tab on the source system, expand Publishing, then Destinations.
2. Under Destinations, double-click the RealTime destination you want to initialize.
3. In the “Publish Destination” form, click Initialize RealTime Destination.
The “Initialize RealTime Destination” screen appears:
4.click on "Initialize RealTime Destination" only once.
Step 7: Mirror the Site Configuration Data to the Destination Database
In this step, we will mirror the source’s site configuration data (such as asset types and start menu items) to the destination database.
To mirror the site configuration data follow the below steps:
1. In the Admin tab on the source system, expand Sites and double-click the site whose data you want to publish to the destination.
2. In “Publish Destinations” (near the bottom of the screen), click Mirror site
configuration for destination
Step 8: Approve Assets(Bulk approval)
We can approve single asset or multiple assets for publishing. For approving group of assets follow below steps:
1. In the Admin tab, expand Publishing, then expand Destinations, and then expand the destination that you want to approve assets for.
2. Under that destination, double-click the Approve Multiple Assets option.
The “Approve Assets” form appears:
3. select the list of assets you want approve for publishing.
Step 9:Publish the Assets
To run a test publishing session on the approved assets
1. On the source system, Select the "Admin" app , then click "Publishing" in the button bar.
2. In the Publish Console, select your RealTime destination from the drop-down list and
click Select Destination.
3. WebCenter Sites displays information about the assets that are ready to be published
to this destination.
4. Click Publish.
After this log in to Delivery system, assign user to Site and give the ACLs and Roles.
Refresh it.
You can find your Site in Destination.
Please let me know if you have any issue.
Thanks,
Rajendar Pilli. -
I have Mac OS X 10.5.8. How can I upgrade the operating system?
I have a Mac OS X 10.5.8. How can I upgrade the operating system so I can get i Life 11?
You will need Snow Leopard which is available as a retail disk for $29 from the Apple store or online resellers. Make sure your Mac meets the system requirements; 1 GB RAM is the absolute minimum - 2 GB would be better.
-
How can I deploy the Operation find all
Hello together,
I have a big problem.
How can I deploy the operation find all so that I can see it in the WSNavigator.
There I can just see the CRUD operations and if I try to select the operation in the Developer Studio ,when I expose the webservice, the operation is highlighted grey. But if I test the Service I can see the operation and it works.
?????? But why can I test the service with the operation find all and why is it not possible to see the operation in the WSNavigator.
Thank youHi Srinivasan;
thanks a lot. I could solve the problem with my <Cars>. I just deleted it. Now I have just a warning - message.
The code looks know like:
@com.sap.caf.dt.CAFOperation(name="GetAllCars")
public gennari.mhp.types.Ret_Cars GetAllCars() {
Ret_Cars ret_cars = new Ret_Cars();
try {
Collection docList = this.getcarsService().findAll();
ret_cars.setTest((List) docList);
} catch (CAFFindException fe) {
return ret_cars;
But if I try to run the operation as a webservice in the webservice navigator I have following error message:
"com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException "
Is this a problem with my Java AS or is still something in my Application Service responible fort that???
Thats the XML Content:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException</faultstring>
<detail>
<yq1:com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException xmlns:yq1="http://sap-j2ee-engine/client-runtime-error">
<!-- com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException -->
</yq1:com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thank you
Regards Marco -
How can we manage the operations subcontracted in B1 ?
Good morning
How can we manage the operations subcontracted in B1?
For example.
I have a purchased item (a box A0001)
I must paint (Service Item P0001)
I have a finished product that I sell (The box painted A0002)
I have a BOM for this item which contains
A0001 + P00001
Can we have a floating price for article P0001?
Can we have a purchase order for the Item P0001 from a production order of item A0002 ?
etc. ...
I am a new French partner. My apologies if this issue already exists and then for my English .....Can we have a floating price for article P0001?
P0001 being a service item would be defined as a standard cost item with Issue method backflush. In this case using a floating price might not be possible.
You could actually consider the quantity to be the price and define the price as 0.1 / any lowest mutiple and in the Production Order change the quantity to equal the total cost of painting.
Can we have a purchase order for the Item P0001 from a production order of item A0002 ?
P0001 if defined as a labor / service item cannot be purchased. -
الترجمة
I have a problem how can I cancel all operations evaluated by so I can use the service again in the same payment method because Apple stuck processes evaluated by on my account and I can not purchase againIf your CC was banned for fraudulent activity, you will need to use another CC. If the account was disabled, try changing the password to enable it at : https://appleid.apple.com
Otherwise, try contacting the iTunes store via : https://expresslane.apple.com , choosing iTunes and then iTunes store and from there selecting the topic as it pertains to your query. -
How can the safe recommended operating temperature be only up to 95F when it is designed to fit into a pocket next to the body and the body can be at 98.6F or higher?
98.6F is the approximate average internal temperature of the human body. It is not the external temperature. Do not insert your phone into any bodily orifice or carry it for long periods of time in your armpit and you'll be fine.
-
How can I bind a operation with a table
Hi !
I'm trying to bind a operation with a table, so what type of operation return ? ViewObject or a Vector? And how can i set params to these operation if my operation has some param ( getSubscriber(int iSubId, int iSubType) )
Thank a lot for your helpHi,
it depends on the release you are asking this question for. In JDeveloper 10.1.3 you can expose a method (e.g. on a session facade) that returns a Collection. The input parameters can be dragged and dropped as input fields to the page.
The same can be done in JDeveloper 10.1.2, but here you have to prgrammatically apply the input arguments.
Frank -
How can I change the operational language within iTunes?
I'm recently downloaded the latest iTunes on my Mac but is operating in Hungarian language. How can I change the language back to english?
I'm currently located in Hungary.
Thanks for helpCheck out this Apple article -> iTunes: Changing the display language
It's done through System Preferences for the iTunes application and by your billing address for the iTunes Store. -
How can I commit the Child's Child Flow ?
Hi All,
I have 3 task flow they contain one page each.
GoalOveviewFlow contain GoalOverviewPage
GoalInformationFlow contain GoalInformationPage
AttachmentFlow contain AttachmentPage.
The relationship of the 3 flow is that:
AttachmentFlow embed in GoalInformationPage as a region.
GoalInfomationFlow embed in GoalOverviewFlow as region.
In other words GoalInfomationPage is parent of AttachmentFlow, GoalOverviewPage is parent of GoalInformationFlow.
GoalOverviewFlow---->GoalInformationFlow----> AttachmentFlow (this flow always begin not trans and not share AM with his parents)
What I want to achive is when click a button on GoalOverviewPage the data in AttachmentFlow get commited and parent Flow not commited? How can I achieve this?
Edited by: Guohua on Oct 9, 2012 2:10 AM¿will you create a detail rows only?(AttachmentFlow).
If no,you have a FK that launches errors, no?
maybe this will hel you:
see the doc about transactios and taskflows:http://docs.oracle.com/cd/E15051_01/web.1111/b31974/taskflows_complex.htm#CHDFJDCE -
How can I restore the operating system of my iPad?
By mistake, one of my grandson's installed a new OS version in our iPad (I think he installed iOS 8.0. The iPad is about 2 years old; my wife uses it, and she would like it to be returned to the original operating system that was installed because that's what she's familiar with. How do I do this?
Apple dosnt allow you to downgrade the ios (os) version, but with some programs you can downgrade, but they can sometimes be risky and they are not apple sertified, either google and find a program, or maybe take it inot a apple store or call up apple.
-
How can i incorpurate multiple operating unit feature in rdf(Custome AP Report)
Hi, Team,
i have a requirment is..will select 1 Operating unit need to get data for only that OU, if will provide Null value need to get data for ALL OU's.
i am trying below script using in Report level 'AfterPForm'
if :P_ORG_ID IS NULL THEN MO_GLOBAL.SET_POLICY_CONTEXT('M',null);
ELSE MO_GLOBAL.SET_POLICY_CONTEXT('S',:P_ORG_ID);
END IF;
getting below error.
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing APPLLCSP Environment Variable set to : Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are : AMERICAN_AMERICA.AL32UTF8 '.,' Enter Password: MSG-00000: And so it begins ... MSG-00001: After SRWINIT REP-1419: 'beforereport': PL/SQL program aborted. REP-0069: Internal error REP-57054: In-process job terminated:Terminated with error: REP-1419: MSG-00000: And so it begins ... MSG-00001: After SRWINIT REP-1419: 'beforereport': PL/SQL program aborted.
but this report running fine for Single OU, that is the parameter value is provided.
appriciate your assistence on this. need to clos this ASAP, please do the needfull.
Thanks,
Venkat.Hi,
Just simple ...
You can take the Operating Unit (OU as you said) in the where condition of you query...
e.g.,
where
(p_parm_ou = :ou or :ou is null ) -
I have an imac with OS X 10.5.8 and I want to update my iphone which needs the new itunes however I cannot update my itunes until I update my operating system. What are my options?
Choose About this Mac from the Apple menu and check the processor.
If it's a PowerPC Mac, it's already running the newest OS it can.
If it's an Intel Mac, click here, install the DVD, and run Software Update. Mac OS X 10.6 also requires at least 1GB of RAM.
(97009)
Maybe you are looking for
-
It all started with 'clearing disk space'.
Hey guys, So i'm having this grey blank screen problem. 1) It started off while i was trying save some documents, didn't work so I went to Disk Utility, cleared the free space and then it was fine. 2) I then tried to surf the web on safari. Some site
-
What are the differences between the following Oracle database views?
What are the differences between the following Oracle database views(or function)? Can they be instead of each other? Can all of them be used to pull out the execution plan from the library cache? V$SQL_PLAN DBA_HIST_SQL_PLAN dbms_xplan.display_curso
-
Youtube: security sandbox violation
Does anybody have a recipe for loading the AS3 chromeless player into a Flex application such that you don't get the 'incompatible context' errors constantly? *** Security Sandbox Violation *** SecurityDomain 'http://core-dev.thismoment.com/client/De
-
Problem Of Not Changing Current period in Simulation
Hi Guys, We face a peculiar problem in payrol ,after exiting for a certain month ,In simulation it is not going to next month also it is not releasing the next month Any Idea!!! Thanks Sur Edited by: surajitsurajit on May 7, 2010 10:47 AM
-
Flash Builder Premium and Create Stuite CS5 not compatible
Hello, After installing Create Suite CS5 Master Collection, my exisiting Flash Builder Premium becomes Flash Builder Standard. I tried to reinstall Flash Builder, but it always picks up the serial number from CS5. How to restore Flash Builder Pre