00:35.34 | *** join/#tomcat scribe (~scribe@wsip-70-166-116-62.ph.ph.cox.net) |
00:36.50 | scribe | Hey guys. Anyone have a recommendation for a bulk email engine written in Java (it's not for spamming). We'd like to build an email notification system into our training software to notify users when their certifications are about to expire and need retraining, and javax.mail isn't robust enough by itself to handle resends, load leveling and other bulk mail functions. So, I've just started hunting. Any suggestions are welcome. Is the |
00:36.50 | scribe | re an apache project with this functionality? JAMES sounds like a full email server. Maybe a subsection of code from there? |
00:40.55 | pawelz | seems like a job for simple shell script + well configured exim MTA. And NO JAVA AT ALL :) |
00:46.28 | *** join/#tomcat ack_syn (~ack_syn@200.218.196.12) |
00:47.39 | *** part/#tomcat scribe (~scribe@wsip-70-166-116-62.ph.ph.cox.net) |
00:47.42 | *** join/#tomcat ack_syn (~ack_syn@200.218.196.12) |
01:32.29 | *** join/#tomcat huj (~chatzilla@221.4.214.138) |
01:37.47 | *** part/#tomcat hello-a (~chatzilla@221.4.214.138) |
02:16.15 | *** join/#tomcat MHSL (mhsl@cm42.eta6.maxonline.com.sg) |
02:56.20 | *** join/#tomcat nitish_mythology (~myth@unaffiliated/nitish) |
02:57.00 | *** part/#tomcat nitish_mythology (~myth@unaffiliated/nitish) |
03:01.28 | RDove | scribe i used bash scripting too with sendmail for that.... but if u want a pretty GUI with it |
03:02.05 | RDove | http://java.sun.com/products/javamail/FAQ.html |
03:04.44 | herbz | Whats the best way to debug a war file? Just by viewing the Tomcat log files? |
03:04.58 | RDove | yeah is it it your code? |
03:05.03 | RDove | or someone elses? |
03:05.19 | herbz | I compile it |
03:06.12 | RDove | whenever I am debugging JSP / Java 2 EE I add in System.err.println(debug vars + " ") |
03:06.20 | RDove | to see whats happening |
03:06.25 | RDove | and then i tal the catalina.out |
03:06.28 | RDove | tail * |
03:06.57 | herbz | yep, me too, just I have been using System.out.println(); |
03:07.23 | RDove | some reason when i used .out. it didnt show up in catalina.out |
03:07.29 | herbz | but- ya, you develop Java Dynamic projects? |
03:07.46 | herbz | catalina.out hm okay only .err |
03:07.50 | herbz | good to know |
03:08.02 | herbz | nice to meet you ^^ hehe |
03:08.16 | herbz | I will test it monday |
03:08.24 | RDove | ok |
03:08.46 | RDove | yeah i'm developing a content management system in j2ee/jsp as a learning experience |
03:09.06 | herbz | and when you say content you mean, issues/bugs/etc ? |
03:09.49 | RDove | it lets a user create menus, news, photo gallaries, and user administration from a website |
03:10.00 | RDove | so a user could build a site without knowing any programming |
03:10.13 | herbz | okay, sure |
03:10.32 | RDove | it uses MySQL for the database |
03:10.57 | herbz | nice, yep I like MySql as well |
03:11.01 | RDove | its coming along but ran into an issue where if the user adds 1800 photos, it takes forever to process |
03:11.04 | herbz | one of my more fav. |
03:11.27 | RDove | so im trying to figure out if its my java code that isn't handling it right, since when i type it in MySQL (select statement) it pops up quickly |
03:11.36 | herbz | <f'RDove> its coming along but ran into an issue where if the user adds 1800 photos, it takes forever to process |
03:11.41 | herbz | ^ sounds like you need a better index? |
03:11.49 | RDove | yeah i might im not sure |
03:11.58 | herbz | yep- that is what is sounds like |
03:12.02 | herbz | I design dbs as well |
03:12.11 | RDove | i have not done any indexing |
03:12.19 | herbz | yep, that is what you need |
03:12.26 | herbz | and it will speed that wayyyy up |
03:12.43 | herbz | maybe also better design depending upon how large the db is planned to get |
03:12.44 | RDove | ok ill give it a shot |
03:13.01 | RDove | i guess it could get as big as the user wants it to |
03:13.18 | herbz | how many fields? |
03:13.29 | RDove | i have a feature that lets the user scan a directory for all the images within and create a photo gallery out of it |
03:13.33 | RDove | (method) |
03:14.04 | herbz | yep- I wrote that script in php last year ^ |
03:14.05 | RDove | 6 fields in the photos table |
03:14.18 | herbz | that is about 20lines of code in PHP |
03:14.47 | RDove | photo_id prim key auto_increment, timestamp, filename, description, user, category |
03:15.03 | RDove | timestamp is a timestamp, and the rest are varchar's |
03:16.12 | herbz | and what select statement is slowing it down? |
03:17.02 | herbz | and/or are you selecting before your attempt before an insert? |
03:18.16 | RDove | first i crawl through the files using an IO directory search |
03:18.34 | RDove | then i create a file array |
03:18.38 | RDove | err List |
03:19.11 | RDove | then i do a select filename from photos; |
03:19.48 | RDove | while results, i search through the file List for an indexOf |
03:20.16 | RDove | if its in the db but not on the system, i delete it from the DB using delete from photos where filename = |
03:20.58 | RDove | this is the first step it takes ^.... then it goes about taking all the files and inserting them if they dont exist already |
03:21.08 | RDove | so a select photo_id from photos where filename = ? |
03:21.23 | RDove | for each file |
03:21.31 | RDove | to check if its there, if its not, then i insert it lol |
03:21.38 | RDove | sounds rough |
03:22.07 | RDove | i type top and sort by CPU and the java class is using up the CPU during this period |
03:22.13 | RDove | im thinking maybe its the IO, not MySQL |
03:22.27 | RDove | cause MySQL is not doing anything.... and if i type these commands manually in MySQL its snappy snap |
03:22.46 | herbz | what is your select count(*) db_name_with_files |
03:23.14 | RDove | i cleared out my DB since i had so many in there, i have to recreate it... it was about 1700 |
03:23.51 | RDove | well its a table within a db |
03:23.53 | herbz | well, ya.. if there was only 17k total... and Index might not speed anything up |
03:24.16 | herbz | ya, all tables are within a db ^^ |
03:24.20 | RDove | ya i think its my File IO that is causing it |
03:24.37 | RDove | i have to do further testing later tonight on my test box to figure it out |
03:24.56 | herbz | so you have apace installed with windows on your computer? |
03:25.03 | RDove | (its not really for a company btw) |
03:25.14 | RDove | ya i have NetBeans that has tomcat with it |
03:25.19 | RDove | its just for fun |
03:25.26 | herbz | o nice, NetBeans comes with it? |
03:25.43 | RDove | yeah u can install NetBeans and it has tomcat with it in the bundle |
03:26.02 | RDove | and so when you compile and run, it launches Tomcat and shows all the logs in tabs |
03:26.21 | RDove | and creates a war file that i upload to my web server (linux) afterward |
03:26.28 | RDove | after it looks pretty solid |
03:26.47 | RDove | so i test windows, then send to linux |
03:27.06 | RDove | what project you working on? |
03:27.25 | herbz | yep, I am working on this project that has not been touched for a few years |
03:27.43 | herbz | it is using Spring |
03:27.46 | RDove | oh ok |
03:28.25 | RDove | im using Spring Web MVC 2.5 |
03:28.36 | herbz | Dynamic Webpage in eclipse.... code is using Spring framework and two databases a SqlServer and MySql db |
03:28.45 | herbz | o nice RDove |
03:29.24 | RDove | which framework is best |
03:29.34 | RDove | i still have to research the differences |
03:29.47 | herbz | I really don't have any idea |
03:29.57 | herbz | they kind of just tossed it at me |
03:30.06 | RDove | netbeans lets you pick Spring, JavaServer Faces,Struts, and Hibernate |
03:30.21 | RDove | and you can actually pick all four if u wanted lol |
03:31.01 | herbz | Nice, what is Hibernate? I see it alot in the <beans> |
03:31.29 | RDove | It has a connection area when i select it |
03:31.48 | RDove | with Database connections.... |
03:32.13 | herbz | okay, nice |
03:32.37 | herbz | and the database connects only come to live when TomCar runs our .war file? |
03:32.49 | herbz | *TomCat |
03:33.22 | RDove | it says hibernate falls into the category object-relation-mapping-tool used for mapping db tables (relations) to java objects transparently |
03:33.31 | RDove | Oracle TopLink is a commercial tool that compares to it |
03:33.54 | RDove | im not real sure lol |
03:34.46 | herbz | okay, so what are all the <beans> about? |
03:34.53 | herbz | they are place holders for data? |
03:36.58 | herbz | They remind me of little class files |
03:37.22 | herbz | But when I complie them, they act like Function names |
03:37.45 | RDove | it says its an application class that contains business logic |
03:38.50 | herbz | so what is the differentice between all the .xml files? like the connections.xml dataset.xml etc |
03:39.00 | RDove | A Web Bean is an application class that contains business logic. A Web Bean may be called directly from Java code, or it may be invoked via Unified EL. A Web Bean may access transactional resources. Dependencies between Web Beans are managed automatically by the Web Bean manager. Most Web Beans are stateful and contextual. The lifecycle of a Web Bean is always managed by the Web Bean manager. |
03:39.03 | herbz | when we open the WEB-INF |
03:39.33 | RDove | well mine are servlets within WEB-INF |
03:40.00 | herbz | hm? |
03:40.03 | RDove | but web.xml should be in there and thats the master file to the servlets i think |
03:40.55 | RDove | i have servlets in WEB-INF on my project, that are xml files like (dothisandthat-servlet.xml) |
03:41.19 | RDove | and that servlet does special things and calls certain classes through a bean id |
03:41.32 | RDove | im still learning so forgive me lol |
03:41.54 | herbz | okay sure, I am learning this too ^^ |
03:42.13 | herbz | yes, I do remember seeing a -servlet.xml file |
03:42.37 | herbz | okay, so the -servlet.xml will call beans |
03:43.02 | RDove | i programmed an IRC Bot using an API I found into my tomcat instance using a servlet |
03:43.05 | herbz | and the beans? some times they simple call other beans.. |
03:43.15 | RDove | basically it launches the IRC bot when tomcat starts |
03:43.35 | herbz | coo |
03:43.45 | herbz | what does it do on the webside? |
03:44.00 | RDove | it sends me stats to a private channel when someone visits |
03:44.04 | RDove | and gives me there IP |
03:44.40 | herbz | okay, so the -servlet.xml file is for connecting remoty? |
03:44.53 | RDove | no its for handling situations |
03:45.17 | herbz | situations what arise from? |
03:45.22 | RDove | like you could have a servlet used for convering all visits to something.jsp so they see something.html |
03:46.02 | herbz | okay i see |
03:46.23 | RDove | bean id="beanName" |
03:46.33 | RDove | class="myclass.methodName" |
03:46.52 | RDove | p:suffix=".jsp" /> |
03:47.01 | RDove | so if... someone visits a .jsp page with this bean active |
03:47.09 | RDove | the bean automatically calls methodName on my class |
03:47.13 | RDove | i think |
03:47.25 | RDove | and so my method can do something special |
03:47.45 | RDove | so you could make it so if someone visits specialpage.jsp.... we call a method automatically to handle things |
03:48.29 | RDove | you can extend a ServletContextListener on your class and it allows you to manipulate sessions etc. from the website inside your class |
03:48.33 | RDove | instead of coding it in a JSP file |
03:50.23 | herbz | hm nice |
03:51.51 | herbz | okay so, the beans set up all the PageNames |
03:52.16 | RDove | the beans call special methods that can do all sorts of things |
03:52.22 | herbz | then, when the page is called... it will call the corresponding page |
03:52.27 | herbz | okay |
03:52.46 | herbz | when the bean calls the methods do any variables get passed in? |
03:52.47 | RDove | i have a dispatcher-servlet that changes index.jsp to index.html when someone visits |
03:53.35 | RDove | yeah apparently you can |
03:53.40 | RDove | lemme show u example page |
03:54.01 | RDove | http://www.jguru.com/faq/view.jsp?EID=775216 |
03:54.26 | RDove | <jsp:useBean class="java.lang.String" id="myBean" scope="session"> |
03:54.26 | RDove | <PROTECTED> |
03:54.26 | RDove | </jsp:useBean> |
03:55.12 | RDove | i have to go AFK, good chatting with you good luck |
03:56.29 | herbz | okay thanks lots cya |
03:56.32 | herbz | <3 |
04:41.33 | *** join/#tomcat RDove (~rdove@unaffiliated/rdove) |
05:05.40 | *** join/#tomcat umashanthi (~umashanth@112.135.150.138) |
05:56.47 | *** join/#tomcat vraa (~vraa@h237.72.29.71.dynamic.ip.windstream.net) |
05:58.03 | *** join/#tomcat nginxx (~chatzilla@173.50.79.212) |
06:10.11 | *** join/#tomcat Alagar (~Administr@122.164.34.215) |
06:21.59 | *** join/#tomcat ExtraSpice (~ExtraSpic@78-62-86-161.static.zebra.lt) |
07:24.33 | *** part/#tomcat umashanthi (~umashanth@112.135.150.138) |
09:18.29 | *** join/#tomcat ibot (~ibot@rikers.org) |
09:18.30 | *** topic/#tomcat is Stable versions: 6.0.26, 5.5.29. Newbies use the official binary from tomcat.apache.org, an RPM from http://www.webdroid.org/archives/tomcat-package, or the latest tomcat6 testing deb. Check logs before you ask a question. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question including your TC, Java, & OS versions, then wait; check back often for answers. |
09:19.53 | *** join/#tomcat acidjnk (~have@180-231-103-86.dynamic.dsl.tng.de) |
11:37.23 | *** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-151-178.netcologne.de) |
11:41.31 | *** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-151-178.netcologne.de) |
12:55.04 | *** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt) |
13:45.29 | *** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-151-178.netcologne.de) |
13:56.21 | *** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt) |
14:35.39 | *** join/#tomcat kadams (~kadams@adsl-074-171-216-244.sip.bgk.bellsouth.net) |
14:44.08 | *** join/#tomcat relachs (~relachs@g225237008.adsl.alicedsl.de) |
15:23.13 | *** join/#tomcat relachs2 (~relachs@f050138077.adsl.alicedsl.de) |
15:33.47 | *** join/#tomcat umashanthi (~umashanth@112.135.156.182) |
16:33.13 | *** join/#tomcat relachs (~relachs@f050138077.adsl.alicedsl.de) |
16:50.25 | *** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-151-178.netcologne.de) |
16:54.31 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
16:58.19 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:01.50 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:02.12 | *** join/#tomcat jmimi (~mohammad@81.29.242.4) |
17:02.42 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:04.58 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:08.20 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:09.56 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:11.24 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:29.57 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:38.08 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
17:48.30 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
18:17.29 | *** join/#tomcat nodie (~plat0n@158.Red-88-23-118.staticIP.rima-tde.net) |
18:32.50 | *** part/#tomcat umashanthi (~umashanth@112.135.156.182) |
18:48.00 | *** join/#tomcat km (~km@adsl-99-54-9-184.dsl.pltn13.sbcglobal.net) |
18:51.14 | *** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt) |
18:52.44 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
18:53.30 | *** join/#tomcat Alagar (~Administr@122.164.36.63) |
19:04.03 | *** join/#tomcat calavera (~calavera@83.50.67.221) |
19:19.38 | *** join/#tomcat relachs (~relachs@f050138077.adsl.alicedsl.de) |
19:20.24 | *** join/#tomcat freud_ (3e1476d4@gateway/web/freenode/ip.62.20.118.212) |
19:23.30 | freud_ | tomcat 6.0.24, JVM 1.6.0_18, Ubuntu 10.04: I'm trying to add a favicon to my webapp(xwiki), i added the mime-type image/x-icon to web.xml, put a working favicon in the root folder(/webapps/xwiki/) and restarted tomcat, no go, is therer a step i'm missing? |
19:30.25 | *** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt) |
19:33.32 | *** join/#tomcat factor (~factor@ip68-14-160-47.ok.ok.cox.net) |
20:19.47 | *** join/#tomcat jumic (~micheju@g226213063.adsl.alicedsl.de) |
20:34.30 | *** join/#tomcat km (~km@adsl-99-54-9-184.dsl.pltn13.sbcglobal.net) |
22:26.49 | *** join/#tomcat mun_ (~mun@94-193-244-76.zone7.bethere.co.uk) |
22:26.50 | mun_ | hi |
22:27.07 | mun_ | I have a newbie question: what is Tomcat used for? isn't the Apache server enough? |
22:34.42 | herbz | Tomcat is used to upack the .war file |
22:35.06 | herbz | and also run the webservice |
22:59.37 | jasonb | mun_: Tomcat competes with the Apache httpd web server. Tomcat is a faster and newer web server written in pure Java. |
23:00.06 | jasonb | mun_: Tomcat also implements the popular standards Java Servlets and Java Server Pages (JSP). |