Changes do not persists to DB?
Hi all,
I managed to configure coherence but changes that I made do not persists to DB?
My cache-config.xml:
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>*</cache-name>
<scheme-name>distributed-eclipselink</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>distributed-eclipselink</scheme-name>
<service-name>EclipseLinkJPA</service-name>
<serializer>
<class-name>oracle.eclipselink.coherence.integrated.cache.WrapperSerializer</class-name>
</serializer>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<local-scheme/>
</internal-cache-scheme>
<!-- Define the cache scheme -->
<cachestore-scheme>
<class-scheme>
<class-name>oracle.eclipselink.coherence.integrated.EclipseLinkJPACacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>HRPU</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>I'm trying to use TopLink Grid Cache Configuration.
Thanks in advance.
Ah. I missed that. If you are using container managed transactions then you need to change from RESOURCE_LOCAL to JTA and set the target-server property. You also need a JTA datasource. Here's an example from http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#JTA_Datasource
Note that in an EE application there is no need to list your classes.
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="example" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>OracleDS</jta-data-source>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.logging.level" value="FINEST"/>
</properties>
</persistence-unit>
</persistence>--Shaun
Similar Messages
-
I have imported an mp3 to my Library. I want to keep it as media kind = podcast but no matter how often I change the tag in get info > options > media kind, the change will not persist, and the file remains in my Music list not my Podcast list.
Resolved in update.
-
"Open With" is not persistent for Numbers
Depsite my best efforts to avoid installing the new iWork apps, OS X defeated me.
Now, I want to set the files to "Open With..." the iWork '09 versions. I have gone thru the typical Change All procedure, but these changes are not persistent.
I am insanely frustrated with the behavior, that is compounding my frustration over the new iWork apps with poor functionality compared to the brilliant iWork '09 apps.
Any advice? ...for my OS X issue
Thank you, ChuckDo you have KM configured within the EP System? Make sure the user has the Business Interlligence role also.
-
RoomExtension: Room manipulation (parameters) not persistent
Hi Folks,
im going crazy with RoomExtensions.
(ExtensionPoint: ON_CREATE_ROOM)
I get the actual Room via the IRoomInfoReader.
If I change for example the description - everything is fine. (I enter the room - and the description is changed)
BUT: If I add parameters (via IRoom.addParameter()) - I see the changes in the extension afterwards, but its not persistent. When I enter the room, the parameters are gone. How can this be?
Held would be VERY appriciated!
Thanks,
SimonHi Detlev,
thanks for your response!
You are completely right, the exact name is addRoomParameter().
The code from the process method of my extension. As the logfile shows: The parameters are added (the result is always
true
and the
getAllParamsNames()
shows all parameters(in the extension).
But when I enter the room, the parameters are gone.
And it is definitely the same room - I double checked the room-ID.
IRoomInfoReader roomInfoReader =
(IRoomInfoReader) context.getOptionalValue(PARAMETER2_ID);
log.println("Inforeader from context: " + roomInfoReader.toString());
String l_roomID = roomInfoReader.getId();
log.println("RoomID: " + l_roomID);
log.println("RoomDesc: " + roomInfoReader.getDescription());
boolean param1_success;
boolean param2_success;
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
try {
IRoom this_room = roomsAPI.getRoom(l_roomID);
// TODO: handle partial projects differently
log.println("EXTENSION: Parameterschleife (2!!)");
String[] allparams = this_room.getAllRoomParameterNames();
String paramname;
for (int i=0; i< allparams.length; i++){
paramname = allparams<i>;
log.println("EXTENSION: Raumparameter vor Anlage (neue Vorlage): " + paramname);
IRoomParameterValue l_parameter_wf =
TemplateDataFactory.createRoomParameterValue(
Workflow.WorkflowDynPage.ROOM_PARAM_WF,
"Workflowstate",
"3",
false);
IRoomParameterValue l_parameter_name =
TemplateDataFactory.createRoomParameterValue(
Workflow.WorkflowDynPage.ROOM_PARAM_WFNAME,
"Name of current Cycle",
"Name of Cycle not yet set",
false);
IRoomParameterValue l_parameter_dum =
TemplateDataFactory.createRoomParameterValue(
"Dummy",
"Proof of concept",
"could be working",
false);
param1_success = this_room.addRoomParameter(l_parameter_wf);
param2_success = this_room.addRoomParameter(l_parameter_name);
this_room.addRoomParameter(l_parameter_dum);
allparams = this_room.getAllRoomParameterNames();
if (allparams != null){
// for (int index=0; i<allParams.length; index++){
// debug += allParams[index];
List l = Arrays.asList(allparams);
Iterator it = l.iterator();
while (it.hasNext())
log.println ( (String) it.next());
else{
log.println( "kein Param vorhanden");
log.println( "Param adding. State: " + String.valueOf(param1_success) + " Name: " + String.valueOf(param2_success)) ;
} catch (RoomInstantiationException e) {
log.println(
new java.util.Date() + ": " + "Room Instanciation failed. RoomID: " + l_roomID);
e.printStackTrace();
error = true;
finally
log.println(
new java.util.Date() + ": " + "finished processing Extension");
log.close(); -
To persist or not persist....
Hi,
I have a table that contains a clob field. when I persist this table in the unit of work and make some changes to other fields, I would expect toplink to trigger an update ONLY on those fields that I modified. However, I've noticed that toplink is trying to update the clob field as well with 'Ljava.lang.Character;@123' ...am I missing something?
Thanks,
HenryI mean my question was how does Toplink implement CLOB support not if Toplink supports it or not. The issue is from a CLOB perspective how does support for a LOB different than any other data type ?
In any case here is the link for LOB support via Toplink
http://www.oracle.com/technology/products/ias/toplink/technical/tips/lob/index.html
The issue I raised was for an update of a CLOB how does Toplink know if the underlying LOB has changed its value or not ? If you see updates to the LOB field even though it has not changed that means it goes ahead and updates the LOB irrespective of whether the LOB value has changed or not.
I dont know Toplink implements CLOBs internallybut
we can ask this question-how does Toplink know
whether a CLOB field has changed or not ? This would be a nice feature if Toplink can persist a
clob field.
why would toplink try to update a column thathasn't
change? still testing...
I still haven't figured out how does Toplink track
changes to a CLOB field. If Toplink does not support
clob persistance...what's the workaround? -
[SOLVED] netcfg static IP not persisting across reboots in VM
I ran into an issue with netcfg static IP not persisting across reboots in a VM. I figured it out, but it took me awhile as a brand new user, so I thought I'd post it.
Setup
Using VMWare Workstation 8.0.3 build-703057 with bridged networking
Host OS: Linux Mint 14 64-bit
Guest OS: Arch Linux 2013.03.01 x86_64
Given a fresh install on the guest, setup netcfg:
cd /etc/network.d
cp examples/ethernet-static ./myprofile
nano myprofile
# customize this file. I also added NETMASK='255.255.255.0'
systemctl enable netcfg@myprofile
systemctl start netcfg@myprofile
Test the configuration. It should be successful:
ping google.com
Problem
See if the changes survive a reboot.
reboot
ping google.com
I got the error "connect: Network is unreachable".
Check the logs:
journalctl
G
I found the following netcfg failure..
[email protected]: main process exited, code=exited, status=1/FAILURE
..prior to the following device initialization:
kernel: e1000 0000:02:00.0 eth0: Intel(R) PRO/1000 Network Connection
system-udevd[117]: renamed network interface eth0 to emp2s0
Solution
It looks like netcfg is being started before the device it depends on has been initialized. Inform systemd of the
dependency so they start in the proper order:
# nano /etc/systemd/system/multi-user.target.wants/[email protected]
# Add the following to [Unit]. Remember to replace enp2s0 with your device name.
Requires=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-enp2s0.device
Test again:
reboot
ping google.com
This should now be successful.fukawi2 wrote:
$ man netcfg-profiles wrote:
Miscellaneous options
IPCFG
Array of arguments to pass to ip. The power of this options is
that it allows both simple and complicated routing
configurations, within the framework of netcfg.
SKIPNOCARRIER
‘yes’/‘no’. Don’t abort interface setup if no carrier is
found.
Thank you, [Solved]. -
How can we find out data in an editable ALV grid has been changed or not?
Hi Experts,
How can we find out whether a data in an editable ALV grid has been changed or not.
I am using the
FM -> REUSE_ALV_GRID_DISPLAY_LVC
for ALV display.
I have to chekc whther data has been changed or not befor saving. if changed then only i want to
SAVE
. I cannot use the internal table comparison method for this purpose also i am not using OOP ALV.
So kindly sugest me an alternative.
Thanks and Regards,
ShahanaHi,
Thanks for your answer. I already saw this post.
See this method.
CALL METHOD reuse_alv_grid->check_changed_data
IMPORTING
e_valid = lv_check.
This will update the internal table with the edited values. Then we can go for internal table comparison.
But my scenario will not allow me for itab comparisons.I just want to know the ALV data has been changed or not.
Regards,
Shahana -
New changes are not getting reflected in the bam reports.
Hi
I have created a BPEL process and it polls the data from a table and populate an object created in Bam.I have accomplished the above task by createing two database adaptors.One is on 10g database and another one is on Bam database.I have created a view based on the bamobject and used a database adaptor to populate the data. BPEL process is populating the data properly to that bamobject but those changes are not reflecting to bam reports automaticaly. We need to refresh the report or reprompt the report to see the changes.Could some help me to reslove this issue.
Thanks in advance
Laj AbrahamHi charles
I have tried that option too.But that is also not working. BPEL Procees is able to populate the BAM object with the help of the sensor.But those changes are not getting reflected in BAM Reports.But if i create or update an existing record in BAM object through BAM Architect, those changes are getting reflected in BAM Reports(No manual intervention is required).
Your help in this regard is highly appreciated.
Thanks
Laj Abraham -
Termstore changes are not getting reflected in the list items in SharePoint 2010 farm environment
Hi,
I had created managed metadata with termstores from central admin. Then I had created one list in which added a column of type managed metadata using the managed metadata which I had created. And also added few list items to this list.
The problem is that after updating a termstore the changes are not reflecting in the list items which were added before the update.
I have referred the following links:
http://www.paulgrimley.com/2011/02/managed-metadata-changes-not-applied-to.html
http://davidfrette.wordpress.com/2010/05/26/taxonomy-update-scheduler%C2%A0timer%C2%A0job/
According to the links we need to run Taxonomy Update Scheduler on the server for updated termstore to get reflected. After running
this scheduler on development environment changes are getting reflected but not working on the production environment.
Kindly help!
Regards, ShrutiYou should check the obvious. You made the change in dev, but did you make the change in production too? And, is the term you updated, actually the one that you are looking at in the list item?
There is not much, if anything, that can go wrong with that timer job. so I'd guess that the term you are looking at is not the one you think you are updating.
If you have double checked everything (the term is is in fact the same term id), then you may have something erroring in the update process. In this case, you should check the ULS logs for any errors.
Chris
Chris Givens CEO, Architecting Connected Systems
Blog Twitter -
HT4759 change do not show up on all my divices like contacts
change do not show up on all my divices like contacts
Are you saying that changes to your contacts are not syncing to your other devices? If so, you need to make sure that the contacts you are changing belong to the iCloud account. To do this, open the contacts app on your device and tap Groups. Do you have any non-iCloud accounts listed, such as On My iPhone, Gmail, Yahoo or an exchange account?
Also go to Settings>Mail,Contacts,Calendars>Default Account (in the Contacts section). Do you have the Default Account setting there, and if so, what is selected as your default account. -
I don't have a public version as I'm just staring development.
For an example I have completed the walk-thru at [http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/updating-related-data-with-the-entity-framework-in-an-asp-net-mvc-application]. Then I tried changing minor items in site.css (such as font size) and the changes did not show up on FireFox, but do show up on Chrome and Internet Explorer.
Example of change below: I changed the background from #e8eef4 to #ff0000. The table header background shows up in red for chrome & IE, but stay in light blue for FireFox.
<code>
table th {
padding: 6px 5px;
text-align: right;
background-color: #ff0000;
border: solid 1px #e8eef4;
</code>You can also reload web page(s) and bypass the cache.
*Press and hold Shift and left-click the Reload button.
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Cmd + Shift + R" (MAC) -
Payroll area change is not possible
Hi,
When we are doing promotion action, i.e, one paryoll area to another paryoll area, In actions whatever the date we are giving is taking, but when come to org assignment it is not allowing to save with that date and throwing error " payroll area change is not possible at the end of payroll period"
For example: In Actions start date is 04.01.2010, in org assign is not allowing to save the entry with that date, but if we give 01.01.2010, it is allowing to save the record. As paryroll period is starting of the month to end of the month, that is the reason it allowing the start date of the month in org assign, but user wants the record from his desired date..
Please help me on the issue.
Thanks & Regards
KumarHi Kumar,
Mid-payroll payroll area change is allowed for only a few countries including:
Canada (country grouping 07), the United States (10), South Africa (16), Mexico (32), Taiwan (42), Finland (44), and Spain (04)
Please check the notes below for further reference:
1104733
849363
744563
Regards,
Dilek -
User profile images not persisting after log off on Server 2012 R2 RDS Session Hosts
Hi,
We have a 2012 R2 remote desktop deployment, with two session collections, a gateway server, and connection broker.
We have set these session collections to use centralised user profile disks.
What I am having an issue with, is that when a user sets their profile image through the server they have logged on to (I have the desktop experience pack installed so they are able to do this), they can see the user tile has been set with that image in
settings and also on the start menu, but as soon as they log off the server and back on, their profile image has been reset to the default blank image.
I have checked all of my group policy options, and cannot find any settings that could be impacting this.
Does anyone have any ideas why these images are not persisting for users or admins?
Thanks, EdsPlease check that the user is not getting a temporary profile each time he logs in. Also, make sure that the RDP client is properly configured to display the Wallpaper: http://www.webapper.com/blog/index.php/2007/10/18/enabling-desktop-wallpaper-on-remote-desktop-terminal-services/
This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
Get Active Directory User Last Logon
Create an Active Directory test domain similar to the production one
Management of test accounts in an Active Directory production domain - Part I
Management of test accounts in an Active Directory production domain - Part II
Management of test accounts in an Active Directory production domain - Part III
Reset Active Directory user password -
[Forum FAQ] How to tell if the DAC port is automatically changed or not
Introduction
Per Books Online:
http://msdn.microsoft.com/en-us/library/ms189595.aspx
SQL Server listens for the DAC on TCP port 1434 if available or a TCP port dynamically assigned upon Database Engine startup.
Also, we can go to the following registry to specify the DAC port number manually:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
The error log contains the port number the DAC is listening on. Besides looking at the error log, how to find which port is used by DAC connection and how to tell if the DAC port is manually set by us or assigned automatically by SQL Server?
Solution
The following query can be used to check if there is an existing DAC connection and it also give us the port number used by dedicated admin connection.
SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
join sys.endpoints e
on (ec.endpoint_id=e.endpoint_id)
WHERE e.name='Dedicated Admin Connection'
Here is the scenario to test if the DAC port is automatically changed or not.
There are two instances are running on one server. I specified the same DAC port number 5555 for the two SQL Server instances by modifying the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
Opened the DAC connection to instance 1. Executed the above query, it returns the result:
name
local_tcp_port
Dedicated Admin Connection 5555
Then, opened a DAC connection to instance 2. It throw out the following error message:
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection because an error was encountered during handshakes before login.
Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server..
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : TCP Provider: An established connection was aborted by the software in your host machine..
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection.
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection due to prelogin failure.
The above error message was thrown out because the DAC port number 5555 was not available for instance 2 which was occupying by instance 1. After restarting the SQL Server engine service of instance 2, if checking in the registry, you would see a new DAC port
number has been assigned to the second instance.
Then, the DAC connection to instance 2 succeed this time and executed the above query, it returned the same port number which is same as the one in the registry key and the port number was assigned automatically.
DAC port will not change even SQL Server service is restarted only if the TCP port is available.
More Information
http://msdn.microsoft.com/en-us/library/ms189595.aspx
Applies to
SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.I tested your script after
establishing a DAC connection from SSMS 2014. It worked as described. Thank you.
SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
join sys.endpoints e
on (ec.endpoint_id=e.endpoint_id)
WHERE e.name='Dedicated Admin Connection'
name local_tcp_port
Dedicated Admin Connection 1434
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Error in connection to SEM, changes will not be saved
Hi All,
When i am creating an opportunity i am getting an error
"Error in connection to SEM, changes will not be saved", and it does not allow me to save the opportunity.
Regards,
RadhikaDear Mangesh,
Thank you for your post. It's really helpful.
Best Regards,
Duc Lam.
Maybe you are looking for
-
I have gotten the problem after updated IOS to version 7.0.2. I signed up my IPhone with su* @pttplc.com as Apple ID via older IOS version and can use it normally but after I update the IOS version from 6.0 to 7.0.2, the Apple ID that commented on m
-
Issue connecting with PC office network
I have a macbook pro in an office of PCs. Our sharedrive is located on a desktop PC, and my mac will not connect to that PC on the network about 95% of the time. I recieve the following message: "There was a problem connecting to the server "XXX" C
-
Making Folders on Bookmarks Bar?
We noticed that some of the bookmarks on our Safari 2.0.1 bookmarks bar have a little 'down arrow' next to them. If you click on it you'll see more than one thing listed under that bookmark, essentially making the bookmark act like a folder. How do y
-
Homw page does not have bookmarks, favorites on top any more
my home page now has no task bar information on top of page, like favourite, bookmarks.How do I fix this
-
Question says it all