Enterprise Computing
Tuesday, November 29, 2005
  WebLogic Platform Security Roles & Groups
Using an External Store for User Information
 
  Solaris File Descriptors
A good overview of the actual issue relating to WebLogic, WebLogic Pro - Too Many Open Files, this recommends using the lsof command. Some useful UNIX one liners including the lsof command, http://www.unixguide.net/sun/sunoneliners.shtml. Something from the BEA dev2dev site about this problem http://forums.bea.com/bea/message.jspa?messageID=600008401&tstart=0.
 
Saturday, November 26, 2005
 
WebLogic tuning reference guide:e-docs.bea.com/wls/docs81/perform/WLSTuning.html
 
Wednesday, November 23, 2005
 
You can support single sign-on with weblogic and windows out of the box as of 8.1 SP4 using the SPNEGO protocol. However, this uses Windows 2000sp2 only, Intenet Expolorer only (not FireFox) and requires some additions to the active directory.... Configuring Single Sign-On with Microsoft Clients
 
Tuesday, November 22, 2005
 
Creating a new ext3 file system, paritions, format and mount. This worked ok with a vmware image....

Creating an ext3 File System
 
Monday, November 21, 2005
 
Now you can download pre-build vmware images with Red Hat, Oracle DB, BEA WebLogic etc and run them for free on the new vmware viewer. No need to build images any more or pay for them! VMTN - Virtual Machine Center
 
Thursday, November 17, 2005
  Very useful Solaris Commands
Want to know what CPU and memory is running the Sparc box you are logged into? try:
 
prtdiag and prtconf
 
Tuesday, November 15, 2005
  Auto Starting in UNIX

1. Become superuser.

2. Add the script to the /etc/init.d directory.
# cp filename /etc/init.d
# chmod 0744 /etc/init.d/filename
# chown root:sys /etc/init.d/filename

3. Create links to the appropriate rcn.d directory.
# cd /etc/init.d
# ln filename /etc/rc2.d/Snnfilename
# ln filename /etc/rcn.d/Knnfilename

4. Use the ls command to verify that the script has links in the specified
directories.
# ls /etc/init.d/ /etc/rc2.d/ /etc/rcn.d/
Run Levels and Boot Files (Tasks) 117
Example: Adding a Run Control Script
# cp xyz /etc/init.d
# cd /etc/init.d
# ln xyz /etc/rc2.d/S100xyz
# ln xyz /etc/rc0.d/K100xyz
# ls /etc/init.d /etc/rc2.d /etc/rc0.d


 
  Adding another IP in Linux
1) goto /etc/sysconfig/network-scripts
2) copy the file that is the interface, e.g. ifcfg-eth0, rename the copy
ifcfg-eth0:1 where was is the virtuial id.
3) edit this file so the ip address is the new required address
4) save the file
5) in the same folder run 'ifup eth0:1' this should bring the new ip up
6) check by running /etc/ifconfig

 
  Calling an Oracle Stored Procedure from sqlplus

where the package is call calc and the function is called pricecp...

SQL> variable x number;
SQL> begin
2 :x := calc.pricecp (23, 'LCL', '1-apr-98', '1-apr-99');
3 end;
4 .
SQL> /

PL/SQL procedure successfully completed.

SQL> print x

X
----------
-4.4776119

 
  JBOSS JNDI Context Example

Context.PROVIDER_URL = localhost
Context.INITIAL_CONTEXT_FACTORY =
org.jnp.interfaces.NamingContextFactory

 
  Setting up JARS within an EAR

Manifest-Version: 1.0:

Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: jdom.jar vfc-all.jar

(or any other jar, path to these jars' can also be set, eg, lib/vfc-all.jar)


 
  Simple EJB-QL Examples

// findByMethodObjectId(String objectId);

SELECT OBJECT(x) FROM PlutoObject x WHERE x.objectId = ?1

// Object is the ejb collection of entities
// PlutoObject is the entity name
// ?1 is the first parameter in the java method
// x is the table/entity alais

// findByObjectIdAndStatus(String objectId, String status)

SELECT OBJECT(x) FROM PlutoObject x WHERE x.objectId = ?1 AND x.status = ?2

SELECT OBJECT(s) FROM Shortcut s WHERE s.targetId = ?1

 
  Simple Oracle Stored Procedure Example

CREATE OR REPLACE PROCEDURE "SA"."UPDATE_FUND_SHORT_NAME"
(in_fund_id IN number, in_new_short_name IN varchar2)
AS
BEGIN
UPDATE FUND
SET SHORT_NAME = in_new_short_name
WHERE FUND_ID = in_fund_id;
commit;
END;

 
  WebLogic JNDI Context Example

Context.PROVIDER_URL = t3://localhost:7001
Context.INITIAL_CONTEXT_FACTORY =
weblogic.jndi.WLInitialContextFactory

 
  Shortcut to hosts file

Create a shortcut and put this in it:

%windir%\notepad.exe 'C:\WINDOWS\system32\drivers\etc\hosts'

(saves the open 'with..' everytime)

 
Monday, November 14, 2005
 
no-ip, very cool. http://pumpkin.no-ip.info/
 
Tuesday, November 08, 2005
 
Formal BEA tuning guide... Approaches to Performance Testing
 
Alistair Thomas's 'everything to do with enterprise computing'.

Archives
03/01/2004 - 04/01/2004 / 04/01/2004 - 05/01/2004 / 05/01/2004 - 06/01/2004 / 08/01/2004 - 09/01/2004 / 03/01/2005 - 04/01/2005 / 04/01/2005 - 05/01/2005 / 06/01/2005 - 07/01/2005 / 08/01/2005 - 09/01/2005 / 09/01/2005 - 10/01/2005 / 11/01/2005 - 12/01/2005 / 02/01/2010 - 03/01/2010 / 06/01/2013 - 07/01/2013 /


Powered by Blogger

Subscribe to
Posts [Atom]