How to get PerformanceProfiler/DMS/JMX for TopLink working on GlassFish
Greetings, all
I'm trying to configure Toplink 11.1.1.0 (instead of Toplink Essentials) as JPA provider to run on GlassFish V1 UR1 with performance monitoring via PerformanceProfiler and cache invalidation when needed, with the following configuration
persistence.xml
- <provider>oracle.toplink.ejb.cmp3.EntityManagerFactoryProvider</provider>
code extract 1
em = (EntityManager)emf.createEntityManager();
session = em.getServerSession();
PerformanceProfiler pp = new PerformanceProfiler(session);
session.setProfiler(pp);
code extract 2
session.getIdentityMapAccessor().invalidateClass(clazz);
(A) However, I got the following exception and would appreciate any advice of any correction(s) needed and how to get it working.
Internal Exception: Exception [TOPLINK-28007] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 070502)): oracle.toplink.exceptions.EntityManagerSetupException
Exception Description: Failed to instantiate ServerPlatform of type [oracle.toplink.essentials.platform.server.sunas.SunAS9ServerPlatform] specified in [toplink.target-server] property.
Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.essentials.platform.server.sunas.SunAS9ServerPlatform.<init>(oracle.toplink.sessions.DatabaseSession)].
com.sun.enterprise.admin.event.AdminEventListenerException: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 070502)): oracle.toplink.exceptions.EntityManagerSetupException
Exception Description: (There is no English translation for this exception.)
(B) Btw, it seems :
a. oracle.toplink.platform.server.sunas.SunAS9ServerPlatform does not exist in toplink.jar
b. oracle.toplink.essentials.platform.server.sunas.SunAS9ServerPlatform exists in toplink-essentials.jar but not in toplink.jar
So my questions are :
a. Only TopLink Essential (but not TopLink 11.1.1.0 JPA) currently support GlassFish ?
b. But TopLink Essential does not not support for PerformanceProfiler/DMS monitoring?
c. Hence, there is no way to get PerformanceProfiler/DMS/JMX monitoring for JPA for TopLink on GlassFish. If that's the case, when will PerformanceProfiler/DMS/JMX monitoring be supported with GlassFish?
d. Is TopLink 11.1.1.0 JPA compliant? If yes, we should be able to get it working on GlassFish. Is there a sample application to show how this is actually done?
Welcome and appreciate much any correction / advice if I've missed anything how to get PerformanceProfiler/DMS/JMX monitoring on TopLink (also TopLink cache) working on GlassFish / pointers to information in case it was documented, or discussed before.
Btw, it seems that I was able to get session cache (per class/object/all) invalidation working using TopLink Essentials with GlassFish, but again, no performance monitoring (e.g. using JMX) there (as also mentioned on http://www.oracle.com/technology/products/ias/toplink/jpa/resources/faq.html#13)
Thanks a lot !!
Best regards.
Hello David,
The problem seems to be with,
MBeanServer mbeanServer = MBeanServerFactory.createMBeanServer();
This does not get the MBeanServer that weblogic server uses. Try getting
the MBeanServer from MBeanHome and register your MBean in this server.
Check out
http://e-docs.bea.com/wls/docs81/jmx/basics.html
to lookup MBeanHome and getting the MBeanServer.
Thanks,
-satya
David Karr wrote:
Like other people reading this group, I'm trying to get started with JMX in WebLogic (8.1) despite the apparent lack of useful information.
I'll eventually be writing an mbean which is intended to run on each managed server (registered by a servlet) which will read and write a particular file on each managed server (contention problems are unavoidable).
In the beginning, however, I'm just trying to build a simple POC, with a servlet that creates and registers a simple mbean. That part was deceptively easy, but I'm not sure I did it right, as I'm not sure of the best way to look at the results of what I did.
I found the "wlshell" tool, which is a jmx client for WebLogic. After my servlet registers the mbean, I tried reloading the wlshell display, but I don't see anything new. I'm sure I'm misunderstanding something (probably in the "ObjectName" constructor).
The "init()" method of my servlet looks like this:
public void init()
MBeanServer mbeanServer = MBeanServerFactory.createMBeanServer();
Sample sample = new Sample();
try
ObjectName objectName = new ObjectName("Sample:name=sample");
mbeanServer.registerMBean(sample, objectName);
The Mbean and impl look like:
public interface SampleMBean
public void setFlag(boolean flag);
public boolean getFlag();
public class Sample implements SampleMBean
private boolean flag;
public void setFlag(boolean flag) { this.flag = flag; }
public boolean getFlag() { return (flag); }
Similar Messages
-
How to get the last error for while loop?
How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.
What do you mean by "get" and "transfer"?
If the shift register is not what you want, use a plan tunnel instead.
Typically, programmers are interested in the first, not last, error.
Can you show us your code so we have a better idea what you are trying to?
LabVIEW Champion . Do more with less code and in less time . -
How to get title templates library for CC?
How to get title templates library for CC? Do you have to download and install PP 6 to get them?
Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore
-
How to get balance sheet report for profit centers
hi
how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for thisHi,
You can use T. code KE5Z for actual line items.
More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
In selection, you can give ledger name which is generally 8A for profit center ledger.
Reg -
I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
anyonr know how I can get my money back????????Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
How to get 64 bit version for premiere elements 12
How to get 64-bit version for Premier Elements 12 ?
I download from ADMISY site.
Click on win 64 bit and download it.
When I try to install ther is a error this download version is not for 64 bit I have try many times but same resultHello
I have been away some days
ADMISY is a software partners for Adobe
I running Win 7 Home Edition
I have received a card with a code when I bought the program and the I
download from ADMISY
Sending serial and installation warning
PhotoshopElements_12_WWEFDJ.7z
PhotoshopElements_12_WWEFDJ
PremiereElements_12_WWEFDJ_win32.7z
PremiereElements_12_WWEFDJ_win32
I can not find a 64 bit version of 32-bit or 64-bit version of downloads
This is information I have
Best regards
Erling Magnusson
2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
How to get 64 bit version for premiere elements 12 created by A.T.
Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
Elements* - View the full discussion
<https://forums.adobe.com/message/7162950#7162950> -
How to get the depreciation areas for an asset in particular period
Hi frndz,
how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
Thanks and regards.
Harisumanth.ChTry table ANLB, then read ANLC.
Regards. -
How to get the version no. for service po?
Hi,
How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank.
Regards,
Rachel.Hiee,
It is not like service PO does not have revision.
REVNO will only exists for any document if amendment is made after releasing it. If in EKKO for all service PO revision number is blank then test if version management is active for document type
MM->Purchasing->Version management -> External documents
Here check for your doc type and purchase org version management is active.
Regs,
Appie -
How to get the owner name for the file in ftp using abap ?
Hi folks ,
How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
but doest work out me . Helping in this regard highly appreciated ...
Thanks and regards,
Swarupa VanarchiHi
dont you have used the os user while calling the FTP_CONNECT FM?
Hope you are not talking about the user executing the FTP program.
Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
May be i am going too far with if and elses here as your question possesses no clarity.
Plz elaborate your requirement before anybody can help.
Regards
sateesh -
How to get count of rows for a table?
Hi,
How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
Regards,
DevashishHi Devashish,
WdContext.node<Your_node_name>().size() will give you the no: of rows.
This should be the node that is bound to the table's datasource property.
WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
You can access an attribute of a particular row as
WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson -
How to get the document number for a ware house order.
Hello gurus,
how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
Thanks in advanceThere are several options. When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
Depending on how your system is set up you may have gotten a Transfer Order automcatically. In this case you can look at LT24 - Transfer Order for material. -
How to get a organization name for a particular user using API's
Hi alll,
How to get a organization name for a particular user using API'sYou need to do something like this:
SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
UserManager usrService = oimClient.getService(UserManager.class);
Set<String> retAttrs = new HashSet<String>();
retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key")); -
How to get mobile model name for different types mobile devices
Hi,
I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
HttpConnection connection = null; connection = (HttpConnection)Connector.open(url); connection.setRequestMethod(HttpConnection.POST); connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
i retrieve the header information from servlet like below :-
String userAgent = request.getHeader("User-Agent");
How to get mobile model name for different model devices , not by manually adding the model name in midlet?
Thanks in advance :-)Hi,
In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header. -
How to get/view document number for KP06 Planning upload
Hi,
I have uploaded excel for Cost center/cost element Planning in KP06 using exccel planning.Now i want the document number which for which i have posted in KP06-Plan values using excel upload.
Kindly advice me how to get the document number for CO-OM(Cost center/Cost element planning) in KP06?
Thanks
SupriyaHello,
Please execute report KSBL. It should be useful.
Regards,
Ravi -
How to get subordinate org units for a given org unit within specific dates
hi,
How to get subordinate org units for a given org unit within specific datesUse the following Func module ..
HRWPC_RFC_STRUCTURE_GET
*--Get the sub org.unts for the given selection.
CALL FUNCTION 'HRWPC_RFC_STRUCTURE_GET'
EXPORTING
ROOT = root_org <-- Give the Org unit
EVPATH = 'O-O_DOWN'
BEGDA = s_date-low
ENDDA = s_date-high
TABLES
T_OBJEC = t_objec
T_STRUC = t_struc
EXCEPTIONS
NOTHING_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE i000 WITH 'No Sub Orgunits for ' s_objid-low.
else.
*--Prepare final sub org.units tabl.
loop at t_objec.
if t_objec-objid ne s_objid-low.
it_orgunit = t_objec-objid.
it_orgunit-begda = t_objec-begda.
it_orgunit-endda = t_objec-endda.
APPEND it_orgunit.
endif.
endloop.
endif.
Maybe you are looking for
-
Post Author: shaicrsytal CA Forum: General Dear All, I have 2 tables one is student and one is studentResults. So I want to build a report where the header details comes from the student table and the details should come from the studentR
-
How to remove a message from a thread...
I would much rather have it, that mail.app could figure out how to thread my messages correctly, but for some reason, when the subject is the same, it always thinks it is the same thread (I have a zillion mails with the subject "meeting"!) Is there a
-
Hello, I am creating a simple shoot 'em up game where the player has to blast the meteors. The meteors are instances of Canvas's and the location of each is set by using the setLocation() method. When I press the refresh button on IE, the meteors som
-
Data Protector 8 - backup - /configuration - [81:52]
I installe DP8 to cluster ( 2 nodes) when we make backup to standby node, I get the error [81:52] /CONFIGURATION " Not a valid mount point => aborting" . When we move cluster the error move to the other node. I try to remove option "Use shado
-
How regenerate 'iPod touch App Pack 4A93' after master reboot
Hi, I reinstalled my computer few days ago without saving 'iPod touch App Pack 4A93' this file is used for the installation of the January Software for Ipod Touch and i'd like to know if someone have an idea how to get back this file, an apple servic