| Web Server | ActiveMQ | Maven | Ant | URLs | End |
Apache ActiveMQ is the most popular and powerful open source messaging and Integration Patterns provider. Tested inside popular J2EE servers such as Geronimo, JBoss 4, GlassFish and WebLogic.
Apache CXF is an open source services framework. CXF helps you build and develop services using frontend programming APIs, like JAX-WS and JAX-RS.
Apache Camel is a powerful open source integration framework based on known Enterprise Integration Patterns with powerful Bean Integration. Camel also provides a powerful set of testing tools for validating your integration logic, so you can fully testing your integration logic, as you did unit test your business logic.
Apache ServiceMix is a flexible, open-source integration container that unifies the features and functionality of Apache ActiveMQ, Camel, CXF, ODE, Karaf into a powerful runtime platform you can use to build your own integrations solutions. It provides a complete, enterprise ready ESB exclusively powered by OSGi.
For complete installation documentation, see [ht]docs/manual/install.html or http://httpd.apache.org/docs/2.2/install.html
NOTES: Replace PREFIX with the filesystem path under which Apache should be installed. A typical installation might use
Configuration file (default path):
A typical problem is :
To fix it, we edit httpd.conf to include this line :
And restart the service :
We also did define the document root in httpd.conf
So now, if we browse
We receive ( from file /usr/local/apache2/htdocs/index.html or {win} C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.html )
Error log is located at
We changed the documents directory to c:\ and now get this error :
Nice Tips.
Apache ActiveMQ is a highly configurable, extensible, and feature-rich message-oriented middleware (MOM) system.
Homepage, download, features, good FAQs, forum [u/k]
Environment requirements:
Install : download
and unzip into destination directory : no other installation is required !
Configure JAVA_HOME:
Start :
Testing the installation :
Running the samples (as video shows) :
Note the -Durl=tcp://localhost:61616 optional argument to the example ant scripts. Use the -Durl option but replace "localhost" with the remote node name. {Thanks, Gary !}
Configuring : conf/activemq.xml
To change them, modify conf/servicemix.properties and also conf/activemq.xml.
Start
here :
you can monitor ActiveMQ using the Web Console : http://localhost:8161/admin
Or you can use the JMX support to view the running state of ActiveMQ :
jmx.html :
You can enable/disable JMX support as follows...
(2) Run a JMX console, e.g. jconsole - JMX console included in the JDK
See "run.jar start" at port 3264 ...
To connect to a remote ActiveMQ instance, or if the local process does not show up, use Remote Process option, and enter an URL. Here is an example localhost URL:
In "activemq.bat" file, uncoment line
Now you can see
Otherwise you get
In versions prior to 5.0 the functionality of activemq-admin script was scattered over multiple scripts, such as:
To display ActiveMQ version, use the command :
To display the running brokers list, use the command :
To display all the attributes and object name information of all registered queues, use :
To display all the attributes and object name information for all connections and connectors for broker 'localhost' except its network connectors, use :
MAVEN ?
KahaDB:
ActiveMQ-JVM args:
There is no direct correlation between WMQ objects and ActiveMQ because the ActiveMQ architecture is different. However, there are some loose correlations that can be made. The WMQ queue manager is roughly equivalent to the ActiveMQ broker. When an application is connected to an ActiveMQ broker, it is simply making use of JMS destinations, i.e., there is no distinction between local and remote. Also, ActiveMQ has no distinction between channels and queues -- again, it's all just JMS destinations.
JMS destination objects are destination objects that a client uses to specify the target of messages that it produces and the source of messages that it consumes. A JMS destination provides a specific end point for messages.
Follow the suggestions of many postings on how to get ActiveMQ to forward msg's to Websphere MQ using Camel.
Mind "concurrentConsumers" : url.
url :
ActiveMQ can talk to IBM's MQ via the "jmsBridgeConnectors"
http://activemq.apache.org/jms-to-jms-bridge.html.
I've tested it in 5.5 successfully.
I defined a remote ConnectionFactory like so:
We saw an issue where ActiveMQ needed to be restarted to send messages "stuck" while the WMQ was down, but we haven't followed up on whether that was a bug or a configuration issue.
Note that <property name="channel" value="UNSECURE.BKR.CHANNEL"/> should point to a server connection channel in WMQ parlance (SVRCONN), and not to a sender or receiver channel (those are for WMQ-to-WMQ queue manager connection).
SVRCONN is the channel type you get by default when you don't specify the channel property at all on the MQ connection factory.
url : JMS bridge.
Apache Ant is a Java library and command-line tool who's mission is to drive processes described in build files as targets and extension points dependent upon each other.
If you use Unix scripts as well as Windows BATs, the solution to have only one source is to use Apache Ant, which is a Java-based build tool that uses XML-based configuration files as input.
| Apache | PHP | MySQL | Nuke | |
|---|---|---|---|---|
| Homepage | Homepage | Homepage | Homepage | Homepage |
| Docs | Apache | Docu & FAQs | MySQL | |
| Cfg | /etc/apache2/httpd.conf | /etc/php.ini | /etc/my.cnf | /srv/www/htdocs/config.php |
| Log | /var/log/apache2/error.log
[ httpd.conf ErrorLog ] |
/var/log/php/error_log.txt
[ php.ini error_log ] |
/var/lib/mysql/mysqld.log
[ my.cnf err-log ] |
|
| Activació | /etc/init.d/rc5.d/S90apache2 -> ../apache2 | safe_mysqld & |
Maven is a software tool for project management and build automation. While primarily used for Java programming, it can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.
wiki.
Lets rotate "catalina.out", tomcat's log, in order not to overflow all filesystem :
Your Apache httpd must have mod_so enabled : mod_so.c
P4
uno.pl
#!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello.";
Tinet
P4
sample.shtml
<hr> <!--#echo var="DATE_LOCAL" --> <hr>
did you compile php as a module or as a cgi ?
Only install either the static module or the dynamic one.
Do not install both.
How to know PHP is compiled or dynamic module ?
httpd -l will list all the modules that are compiled built-in,
so if php isn't there... it's a dynamic one.
Another clue is looking at the httpd.conf file.
If there is a LoadModule directive here you go.
You can "load" only dynamic modules.
En SuSE 8.2, existe un fichero /usr/bin/php, de 2.500.464 bytes. php -h = Help, php -i saca un fichero HTML de descripcion, php -m = show compiled modules.
rpm -qa | grep php apache2-mod_php4-4.3.1-24 phpdoc-4.0.6-264 mod_php4-core-4.3.1.24
prova.php
<hr>
<?php
echo "Hi, I'm a PHP Script !"
?>
<hr>
<?="Hello World"?>
<hr>
<? print("Hello World using PRINT") ?>
<hr>
mm/dd/yyyy : <? print date("m/j/Y"); ?>
<p>
mm/dd/yyyy : <? print date("H:i:s"); ?>
<hr>
<?php phpinfo() ?>
<hr>
Sequència inicial (gràcies, Xavi !)
Funcions interessants :
Good
intro says :
What distinguishes PHP from something like client-side JavaScript is that
the code is executed on the server.
Tutorial,
download links, instructions.
Select install (1/4)
mode
Complete
scripts
Lots of
PHP,
even
Socket Programming
Linex té associat modules.php a tots els botonets de "mostrar" / "amagar" !
apache2-prefork-2.0.44-32 apache2-mod_php4-4.3.1-24 apache2-2.0.44-32
mod_php4-core-4.3.1-24 apache2-mod_php4-4.3.1-24
In /etc/apache2/httpd.conf it says :
It is created by [/usr/sbin/rcapache2, Slink]
the start script (/etc/init.d/apache2),
using APACHE-MODULES from /etc/sysconfig/apache2
Solved by using /etc/init.d/rc5.d/S90apache, symbolic link to /etc/init.d/apache2 [ln -s Target LinkName]
Not mine, but from /usr/share/apache2/manual/tutorials.html
New : U := sebastiasebas K := KapG E-mail : sebastiasebas@gmail.com
Your Personal FTP Information: FTP Server: ftp.t35.com FTP Login: accountname.t35.com FTP Password: for security reasons your password is not included.
http://sebastiasebas.t35.com/ http://sebastiasebas.t35.com/phppage.php http://sebastiasebas.t35.com/phppage2.php
Tripod !!!
50 Mb de espacio web y ancho de banda ilimitado
Fácil de utilizar con las herramientas de construcción web
Soporte para Microsoft FrontPage 2002
PHP4 y mySQL soportan sitios dinámicos
Tablones de mensajes y ayuda completa
Web FTP (IE only).
|
|
Site under construction. |
|
Actualitzat el 28/3/2012 (a). |
|