WebLogic cache classes API
I've used the WebLogic cache tag libraries in a portal application - with success. But then I would like to use the cache API from Java code also, and I went looking for documentation. There weren't much documentation on these classes and after doing a grep on weblogic.jar I found a package named weblogic.cache. I tried to look at the API documentation, but these classes weren't inlcuded in the JavaDocs available on e-docs.
What's the reason for not exposing these libraries with API documentation and tutorials/articles on how to use them? Do BEA recommend using third party cache libraries instead? I know that tangsol have a product, but my needs are simple and I don't want to use a product for these simple needs, and I don't want to implement them myself either.
Trond Andersen, Invenia AS, +4798290811
I have similar need to cache simple POJO objects in clustered environment. Does WebLogic 8.1 Server offers any caching feature similar to p13n cache in WebLogic Portal server?
Thank you
Vipul
Similar Messages
-
WLS 10.0 Mp1 - Weblogic startup class to initialize client's SSL channels
Hi,
Is it possible to use Weblogic startup class to initialize client's SSL channels?
Any pointers are appreciated.
Thanks in advance.Hey
If possible can you explain the issue in detail.
What do you mean by “initialize client's SSL channels”
Regards,
Hussain -
Weblogic startup class and EAR file
Hi,
I am using WL 8.1.5.
I have a weblogic starup class MyStartup that implements T3StartupDef. (it does not specify package).
I jar-ed it. And I placed MyStartup.jar file into the MyEA.ear file. And I placed that into applications dir.
With WL Console I defined the startup class and for the ClassName specified MyStartup.
Yet I get the java.lang.ClassNotFoundException.
I also have a Manifest.mf file with
Class-Path: MyStartup.jar
Please help me solve this problem, I literally don't know what to do next.
MBHi,
thanks.
This seems like a completely opposite method of the depplying startup class with weblogic console.
Does my class still need to implement T3StartupDef?
I get this exception. And my classnotfound is still there.
Exception:weblogic.management.ApplicationException: startup.MyStartup
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2484)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Regards,
MB -
Weblogic Startup Class does not run as Windows Service
If you know the answer, plase send me an email at [email protected]
I'm running a weblogic startup class that starts a Thread. I need to
run a batch program that should be running as long as WebLogic is
running (to process new orders).
It works fine when I run WebLogic (5.1 SP8) from a script, but causes
problem when I'm running it as a Windows Service. It calls the
startup class, however, the startup class never spawns the Thread
class.
Following is excerpts from different components:
=============================================================
*** weblogic.properties ***
weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
*** WebLogicStartupPdfCreator.java ***
public class WebLogicStartupPdfCreator implements T3StartupDef {
public String startup(String name, Hashtable args) throws
Exception {
Thread t = new ProductionPdfBatchRunner();
t.start();
return "success";
*** ProductionPdfBatchRunner.java ***
public class ProductionPdfBatchRunner extends Thread {
public void run() {
try {
//work being done here
this.sleep(30000);
catch (InterruptedException ie) {
catch(Exception e) {
e.printStackTrace();
=============================================================
Thanks for any helpHi,
Ok. Few suggestions.
1. Can you review the SAP note:
552286 Troubleshooting for the SAP Web Dispatcher
2. When you said: "web dispatcher does not get started ", what error you got ? Can you be more details here ?
3. Please check the trace file dev_webdisp" that generated in the work directory. If the log entries is not abvious, increase the trace level to 2 or 3, and reproduce and re-check the trace file.
4. What is the output of the command "sapwebdisp -v"
5. How about sapwebdisp.pfl ? Are those settings correct ?
Hope this helps.
Regards,
Vincent -
Weblogic startup class (urgent)
Hi All,
I need a java program (weblogic startup class) which should fetch data from the database and instantiate another one class (it will be the data holder) and store that object into a webapplication context. Anyone tried this? Since its urgent any help will be appreciated.
Thanks in advance
Cheers,
PandiarajDo this in the init() method of a servlet and start
the servlet when you start your weblogic server
second that. just give a value of 1 for <load-on-startup> in web.xml -
Where is weblogic.Deployer class?
Where is weblogic.Deployer class?
Hi YE,
weblogic.Deployer class is present in "*weblogic.jar*" which can be found in WLS_HOME/wlserver_10.3/server/lib/weblogic.jar
Regards,
Ravish Mody
http://middlewaremagic.com/weblogic/
Come, Join Us and Experience The Magic… -
Hi All
Please let me know how to clear the Weblogic cache folder (ie. <bea_home>/user_projects/domains/<app_domain>/servers/
<app_name>/tmp/_WL_user) upon each restart of the server?
I am using Weblogic 9.1 and application is deployed using
exploded mode
Thanks.We have seen that error as well. When using entity beans, we could do some creates, but then we would get the Cursor error. It would happen sporadically.
IBM now has better Type 4 drivers with version 8.2, we are having better luck with them then with the BEA drivers. -
Weblogic.security.X509 API
Hello All,
Is the API documentation for the weblogic.security.X509 class, or for
that matter the entire package, documented somewhere?
Thanks,
Dan
[dan.vcf]Hello All,
I would like a client java program to communicate with a WLS over a t3s
connection with two-way SSL.
We have generated certificates for browsers that work fine for the two-way SSL.
I have access to the base 64 encoded certificate that the java client program
can use. I am assuming I need a private key also for use in the
setSSLClientCertificate(InputStream[] chain) method for decryption of data
coming to to the client. For a WLS server, this is no problem.
Question(s): Am I correct in this private key assumption? If I do need the
private key, how could I get it.
Thanks
[dan.vcf] -
Weblogic User class extends deprecated class?
weblogic.security.acl.User extends java.security.Identity which is a
deprecated class for Java 1.2
I checked the 5.1 API docs, this class still extends the
java.security.Identity. Are there any plans to update this class or if there
is another class we should use instead of weblogic.security.acl.User ?
Srikanth Meenakshis> weblogic.security.acl.User extends java.security.Identity which is
s> a deprecated class for Java 1.2
This is not a problem. It's okay to use it.
<b
Let us pray:
What a Great System.
Please Do Not Crash.
^G^IP@P6 -
How to use weblogic.logging classes in 6.0
Hi,
We developed a number of logging classes under 5.1. One used
weblogic.logging.LogOutputStream to write messages out to the log. This
code no longer works under WLS 6.0. Everything compiles and runs but I
don't see any of our messages in any of the log files. Judging from the 6.0
JavaDoc, it looks like LogOutputStream is no longer supported. So I
switched over to using NonCatalogLogger. Same results - no output in the
logs.
What am I missing?
Thanks.
-brianMy coding error. weblogic.logging.* classes work just fine in 6.0 (he said
sheepishly)!
-b
"Brian J. Levine" <[email protected]> wrote in message
news:[email protected]..
Hi,
We developed a number of logging classes under 5.1. One used
weblogic.logging.LogOutputStream to write messages out to the log. This
code no longer works under WLS 6.0. Everything compiles and runs but I
don't see any of our messages in any of the log files. Judging from the6.0
JavaDoc, it looks like LogOutputStream is no longer supported. So I
switched over to using NonCatalogLogger. Same results - no output in the
logs.
What am I missing?
Thanks.
-brian -
Weblogic cache tag usage experience? issues?
I want to use weblogic custom tag "cache" in the jsp.
I was wondering if anybody used it in high volume internet production environment.
Experience/Issues with
- memory usage
- cache refresh issue while multiple threads accessing the jsp at the sam time
- any lessons learned that you can share.
Thanks.
I want to use weblogic custom tag "cache" in the jsp.
I was wondering if anybody used it in high volume internet production environment.
Experience/Issues with
- memory usage
- cache refresh issue while multiple threads accessing the jsp at the sam time
- any lessons learned that you can share.
Thanks.
-
Hi All,
We have a requirement to clear the KM cache every day in the morning for two of the items in Cache Monitor. I would like to know if we could clear the cache for the selected items using some API or any and schedule a job so that it runs every day to clear the cache.
Appreciate any suggestions for the same.
Regards,
Aruna.check out this one:
http://help.sap.com/javadocs/NW04S/current/km/com/sapportals/wcm/util/cache/package-summary.html
something like
CacheFactory.getCache(id).clearCache()
should do the trick -
Is WebLogic JMS C API backwards compatible with 8.1
I need to be able to send a JMS message from a C++ legacy application, so I am looking at using the JMS C API to do this. However, I am stuck with using WebLogic Server version 8.1. The JMS C API came out with version 9, so I am wondering if it would be possible to use it with 8.1?
Can this be done? Thanks in advance.I've shot off an internal email to see if I can get an answer - I'll post again if I get one. Some notes:
- Prior to 9.0, there was a separate C-API kit available on dev2dev which is supported (via this newsgroup only), I don't know where it is now.
- I think its likely the 9.0 C-API will work with an 8.1 client (or 7.0 for that matter), I just don't know if this usage supported.
- You could use the 9.2 C-API with a 9.2 client to communicate with an 8.1 server. This is definitely supported.
Tom, BEA -
What class / API should i used ?
Hi, all
what api should i used when i want to know present time (hour-minute-second) or date... i've used :
GregorianCalendar kal = new GregorianCalendar();
int year=kal.YEAR;
instead i got year is 1 ??? (for present year !!) ...
it does the same as hour and minute... i dont have the exact time like the time in my win task bar.. plzzz help me...This should help:
* Calendar Demo (by Sun, with modifications)
import java.util.*;
public class CalendarDemo {
public static void main(String[] args) {
// get the supported ids for GMT-08:00 (Pacific Standard Time)
String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
// if no ids were returned, something is wrong. get out.
if (ids.length == 0) {
System.exit(0);
// create a Pacific Standard Time time zone
SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
// set up rules for daylight savings time
pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
// create a GregorianCalendar with the Pacific Daylight time zone
// and the current date and time
Calendar calendar = new GregorianCalendar(pdt);
Date trialTime = new Date();
calendar.setTime(trialTime);
// Change month numbering to 1-12
int monthNumber = calendar.get(Calendar.MONTH)+1;
// begin output
System.out.println("Current Time");
// print out a bunch of interesting things
System.out.println("ERA: " + calendar.get(Calendar.ERA));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + monthNumber);
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
System.out.println("DAY_OF_WEEK_IN_MONTH: " +
calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
System.out.println("ZONE_OFFSET: " +
(calendar.get(Calendar.ZONE_OFFSET) / (60 * 60 * 1000)));
System.out.println("DST_OFFSET: " +
(calendar.get(Calendar.DST_OFFSET) / (60 * 60 * 1000)));
System.out.println("Current Time, with hour reset to 3");
calendar.clear(Calendar.HOUR_OF_DAY);
// so doesn't override
calendar.set(Calendar.HOUR, 3);
System.out.println("ERA: " + calendar.get(Calendar.ERA));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
System.out.println("DAY_OF_WEEK_IN_MONTH: " +
calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
System.out.println("ZONE_OFFSET: " +
(calendar.get(Calendar.ZONE_OFFSET) / (60 * 60 * 1000)));
// in hours
System.out.println("DST_OFFSET: " +
(calendar.get(Calendar.DST_OFFSET) / (60 * 60 * 1000)));
// in hours
} -
How to create users in Weblogic using an API
Hi All,
I have a requirement where i need to add the users in security realm without using Weblogic Console.Is there any API or program which lets us to create the users and set it in realm.
Please suggest!!
Thanks.Hi,
You can follow the blog written by Middleware magic team
Creating Users And Groups
http://middlewaremagic.com/weblogic/?p=4981
Deleting Users And Groups
http://middlewaremagic.com/weblogic/?p=5234
Users List from Security Realm
http://middlewaremagic.com/weblogic/?p=6678
Hope this will be helpful
Regards
FAbian
Maybe you are looking for
-
Oh boy, I've said it all in the Subject line. Sorry, new here. TiA for any help. J.
-
I updated to Mavericks and Safari keeps crashing when I print. Process: Safari [533] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 7.0.2 (9537.74.9) Build Info: WebBrow
-
Cryptography: strange msdn sample code, help please....
Apparently that line of code does nothing, to continue the discussion I would like to know your guys opinion of MS and the level of security they provide, I assumed everything was top-notch, but looking through their usage of their own libraries it a
-
Metainit and devfsadm hanging - unable to perform device administration
A server had a problem a while ago where we had to remove 1/2 of a DiskSuite mirror (for just one metadevice) to perform some emergency maintenance due to file sys corruption. Now that it's been cleared up, I can no longer run devfsadm or add that me
-
Installing Windows XP on a Lenovo W520
I recently purchased a Lenovo W520 and I set it up to run a dual boot since I need to run on Windows XP when I am working for a client who doesn't support Windows 7 on his network yet. Everything works fine but the video driver. I downloaded the driv