[JBoss-user] [Clustering/JBoss] - stateless session bean communication over http / internet
Hi, is it possible to run a JBoss cluster over the internet? In particular, this is what I want: On server A I am running Stateless Session Bean 1. On server B I am running Stateless Session Bean 2. Now I want to let SLSB 1 communicate with SLSB 2. However server A and B are NOT located on the intranet, but can only communicate through the internet. In other words: 1. The JNDI lookup of SLSB 1 to find SLSB 2 need to occur over the internet. 2. Moreover, the communication between the SLSBs, which happens to be RMI/IIOP should tunnel through HTTP and should cross firewalls. Does any one know if this scenario is possible? Thanks, Evert Bende View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908725#3908725 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908725 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - ejb communication over http. JNDI lookup over http.
Hi, is it possible to run a JBoss cluster over the internet? In particular, this is what I want: On server A I am running Stateless Session Bean 1. On server B I am running Stateless Session Bean 2. Now I want to let SLSB 1 communicate with SLSB 2. However server A and B are NOT located on the intranet, but can only communicate through the internet. In other words: 1. The JNDI lookup of SLSB 1 to find SLSB 2 and vice versa need to occur over the internet. 2. Moreover, the communication between the SLSBs, which happens to be RMI/IIOP should tunnel through HTTP and should cross firewalls. Does any one know if this scenario is possible? Thanks, Evert Bende View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908726#3908726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908726 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - web address in tomcat log
Hi, In the log file from the tomcat server you find the IP address at the beginning of each line, like 213.118.21.19 - - [05/Jan/2005:09:27:48 +] GET /titleservlet HTTP/1.1 200 1195 Is it possile to have the web address here instead of the IP address? How should I configure this? Thanks, Evert View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3875737#3875737 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875737 --- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - jboss-netboot.zip gone?
Hi The zip-file http://jboss.sf.net/demo/netboot/jboss-netboot.zip neede for netbootin as mentioned on the site http://www.jboss.org/demos/netboot appears not to exist. Where can I find it? Evert Bende View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3852207#3852207 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852207 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [J2EE Design Patterns] - Re: Who can help with design challenge to get data from Sess
Prem, many thanks again. It's clear. If you need help, let me know. Though I'm not sure if I can help you. Evert http://212.203.14.69/topsolar/cgi-bin/climatetop50/cgi-bin/topsites.cgi?action=inid=69 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849955#3849955 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3849955 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [J2EE Design Patterns] - Re: DAO or EJB
Hi, you can find a good story on the pro's and con's on pages 76-80 of EJB Design Patterns of Floyd Marinescu free downloadable at http://www.theserverside.com/books/wiley/EJBDesignPatterns/downloadbook.tss Good luck, Evert Bende http://212.203.14.69/topsolar/cgi-bin/climatetop50/cgi-bin/topsites.cgi?action=inid=69 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849961#3849961 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3849961 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [J2EE Design Patterns] - Who can help with design challenge to get data from Session
Hi, I'm working on a J2EE application with Servlets and EJBs. One of the tasks is to do a big calculation (10 min-1 hour). In order not to use all CPU resources for these calculations, I have an asynchronously design pattern and do the calculations one by one. To this end I use a Servlet that sends a message with Java Message Services (JMS) to a queue. A point-to-point Message Driven Bean is pulling messages from the queue and is subsequently calling a Session Bean that does the calculation. Until so far, this obeys EJB Design Patterns of Floyd Marinescu, Chapter 1 ,Message Facade. Here comes my question: The results of the calculation, once the calculation is finished, are sitting in the Session Bean (in memory). Now I want to access the calculational results of the session bean from within a servlet. How can I do this? In some way the data in the session bean should be associated with a user session of the servlet. But I think I can not access session attributes of the HttpSession nor those of the ServletContext. By the way, I don't want to persist them in a database because it 's a lot of data and it's not clear whether data is needed in the future. This is undoubtly an issue that occurs in more applications. Can someone help me with this one? Thanks, Evert Bende http://212.203.14.69/topsolar/cgi-bin/climatetop50/cgi-bin/topsites.cgi?action=inid=69]www.wattabout.com View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3849094#3849094 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3849094 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: blob CMP MySQL EJB JBoss3.2 mapping problem
If you say default mapping I suppose you mean the one in jboss-3.2.2/server/default/conf/standardjbosscmp-jdbc.xml, right? Well I also had problems with the default mappings for timestamp/datetime. None of the listed mappings worked for me. However, what worked for me is: JAVA Sql type: TIMESTAMP Vendor type: datetime (in Mysql) CMP field: java.sql.Timestamp which was arranged by my IDE. If i'm correct this mapping is not in jboss-3.2.2/server/default/conf/standardjbosscmp-jdbc.xml. This one only contains: | java-typejava.sql.Timestamp/java-type | jdbc-typeTIMESTAMP/jdbc-type | sql-typeTIMESTAMP/sql-type | !-- | | This type is problematical because mysql does not have any | | date/time types that store milliseconds. You should avoid it. | -- | | | java-typejava.util.Date/java-type | jdbc-typeTIMESTAMP/jdbc-type | sql-typeDATETIME/sql-type | !-- | | Note that you lose granularity here | | Use a numeric type and store milliseconds if you really need it | -- | | | java-typejava.sql.Date/java-type | jdbc-typeDATE/jdbc-type | sql-typeDATETIME/sql-type | | | java-typejava.sql.Time/java-type | jdbc-typeTIME/jdbc-type | sql-typeTIME/sql-type | | | | As far as BLOBs are concerned, in file jboss-3.2.2/server/default/conf/standardjbosscmp-jdbc.xml you have the mapping | | | | java-typejava.lang.Object/java-type | | jdbc-typeBLOB/jdbc-type | | sql-typeLONGBLOB/sql-type | | !-- | | | Change this from LONGBLOB to BLOB if you know your | | | serialized object will be = 2^16 bytes | | -- | | | | This one doesn't work for me. JBuilderX makes a scheme from the DB as follows: | | JAVA Sql type: VARBINARY | Vendor type: blob (in Mysql) | CMP field: byte[] | | When I use this it doesn't work either. | | | | The mapping done by the IDE is based on the driver, which is confirmed by the MysqlDefs class from Mark Matthew's driver (the official one now): | | | Maybe I am misuderstanding something fundamentally. | | Any help would be highly appreciated. | | | | | /* | |Copyright (C) 2002 MySQL AB | | | | This program is free software; you can redistribute it and/or modify | | it under the terms of the GNU General Public License as published by | | the Free Software Foundation; either version 2 of the License, or | | (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU General Public License for more details. | | | | You should have received a copy of the GNU General Public License | | along with this program; if not, write to the Free Software | | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | | | | */ | | package com.mysql.jdbc; | | | | import java.sql.Types; | | | | | | /** | | * MysqlDefs contains many values that are needed for communication | | * with the MySQL server. | | * | | * @author Mark Matthews | | * @version $Id: MysqlDefs.java,v 1.6.2.4 2003/03/10 13:02:48 mmatthew Exp $ | | */ | | final class MysqlDefs { | | // | | // Constants defined from mysql | | // | | // DB Operations | | static final int SLEEP = 0; | | static final int QUIT = 1; | | static final int INIT_DB = 2; | | static final int QUERY = 3; | | static final int FIELD_LIST = 4; | | static final int CREATE_DB = 5; | | static final int DROP_DB = 6; | | static final int RELOAD = 7; | | static final int SHUTDOWN = 8; | | static final int STATISTICS = 9; | | static final int PROCESS_INFO = 10; | | static final int CONNECT = 11; | | static final int PROCESS_KILL = 12; | | static final int DEBUG = 13; | | static final int PING = 14; | | static final int TIME = 15; | | static final int DELAYED_INSERT = 16; | | static final int CHANGE_USER = 17; | | static final int COM_BINLOG_DUMP = 18; | | static final int COM_TABLE_DUMP = 19; | | static final int COM_CONNECT_OUT = 20; | | static final int COM_REGISTER_SLAVE = 21; | | static final int COM_PREPARE = 22; | |
[JBoss-user] [Persistence CMP/JBoss] - blob CMP MySQL EJB JBoss3.2 mapping problem
Hi, I've read all threads concerning BLOBs, CMP and MySQL. Yet I don't know how to read BLOBs with CMP in combination with - mysql-connector-java-3.0.8-stable-bin.jar (driver) - jboss3.2 - mysql4.0 By the way, I managed to read BLOB 'manually' through direct query execution. With | ResultSet rs = ...; | java.sql.Blob blob= rs.getBlob(myBlob); | | to get the Blob from the result set. | | | My questions are: | A. | | What should be in jbosscmp-jdbc.xml? | This? | | cmp-field | | field-namemyBlob/field-name | | column-namemyBlob/column-name | | jdbc-typeJAVA_OBJECT/jdbc-type | | sql-typeBLOB/sql-type | | /cmp-field | Or? | cmp-field | | field-namemyBlob/field-name | | column-namemyBlob/column-name | | jdbc-typeBLOB/jdbc-type | | sql-typeBLOB/sql-type | | /cmp-field | Or | | cmp-field | | field-namemyBlob/field-name | | column-namemyBlob/column-name | | jdbc-typeVARBINARY/jdbc-type | | sql-typeBLOB/sql-type | | /cmp-field | or something else? | | I saw several stories on this forum which where in contradiction. | | B. | What are the field types in the CMP-EJB for the corresponding BLOB? | | Object? | or | byte[] ? | or | java.sql.Blob ? | or | a wrapper class with byte[] myBytes as field and with Serializable implementation? | or | Something else? | | Any help is appreciated very much. | Thanks, | | Evert Bende | http://212.203.14.69/topsolar/cgi-bin/climatetop50/cgi-bin/topsites.cgi?action=buttonid=69 | http://www.wattabout.com/index | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839089#3839089 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839089 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: CMP, BLOBS and findAll
Hi, I can tell the following on Read-ahead strategies. By default a find-method returns only the primary keys of the records from the DB. (SELECT PK FROM TABLE T; is carried out). Once you invoke a method of a single CMP-EJB (from the collection you got from the find-method) the remainder of the record is retrieved. (Eg. SELECT * FROM TABLE T WHERE PK=2; is carried out). By setting read-aheadon-find/read-ahead in combination with a eager-loading group name, the find method returns besides the PK all fields defined in the group-name. (Eg SELECT PK, FLD_A, FLD_B FROM TABLE T; is carried out when the find-method is invoked, where FLD_A and FLD_B are elements of the load group.) Below a sample of jbosscmp-jdbc.xml with load-groups. The read-ahead strategy can be set on bean level, but also on finder-method level. So, if you've used a read-ahead strategy of on-find by default, the none read-ahead strategy at finder-level will overwrite other read-ahead strategies. I hope this will help. I hope you can give me some help in return: I use JBoss3.2 and MySql4.0 and CMP. I have difficulties with reading BLOBs. Can you tell me what mapping I need to use? The mapping java-typejava.lang.Object/java-type jdbc-typeBLOB/jdbc-type sql-typeLONGBLOB/sql-type doesn't work for me. Or do I need to do something with a serialized object. Hope you can give me a piece of code. Thank, Evert Bende http://www.wattabout.com sample: jbosscmp-jdbc enterprise-beans ejb-nameGangsterEJB/ejb-name load-groups load-group load-group-namebasic/load-group-name field-namename/field-name field-namenickName/field-name field-namebadness/field-name/load-group load-group load-group-namecontact info/load-group-name field-namenickName/field-name field-namecontactInfo/field-name field-namehangout/field-name /load-group /load-groups /enterprise-beans /jbosscmp-jdbc View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838946#3838946 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838946 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Compound PK DeploymentException
Very good. It works. Thank you. I like short answers that are correct. Evert a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825578#3825578;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825578Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Compound PK DeploymentException
Hi everybody, I have question concerning compound primary keys in CMP2.0 EJBs. I've got a deployment error: Generation only supported with single PK field from Jboss 3.2.2 (See below). What do I do wrong? Do I need to configure someting in JBoss in addition? My codes and xml-pieces for a vey simple test-bean (A) with corresponding DB table (a) are listed below. I appreciate any help. Thanks, Evert Bende PS: The PK-class was generated by Borland JBuilderX. My table is stored in a MySQL database. None of the pks in table a are auto-incremented. I also tried it with a create statement with a single argument, like ejbCreate(APK apk){...}, but this didn't work out either. // Deployment Error from JBOSS-3.2.2 // 2004-03-04 11:37:08,501 ERROR [org.jboss.ejb.EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Generation only supported with single PK field at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.getGeneratedPKField(JDBCAbstractCreateCommand.java:171) at org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand.initGeneratedFields(JDBCIdentityColumnCreateCommand.java:46) at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.init(JDBCAbstractCreateCommand.java:91) at org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.init(JDBCMySQLCreateCommand.java:40) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:128) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:427) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:351) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:343) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) // ABean // package com.wattabout.wattsbest.ejb.cmp; import javax.ejb.EntityBean; import javax.ejb.EntityContext; import javax.ejb.CreateException; import javax.ejb.RemoveException; public abstract class ABean implements EntityBean { EntityContext entityContext; public APK ejbCreate(Integer apk1, Integer apk2) throws CreateException { setApk1(apk1); setApk2(apk2); return null; } public void ejbPostCreate(Integer apk1, Integer apk2) throws CreateException { } public void ejbRemove() throws RemoveException { } public abstract void setAfld(String afld); public abstract void setApk1(Integer apk1); public abstract void setApk2(Integer apk2); public abstract String getAfld(); public abstract Integer getApk1(); public abstract Integer getApk2(); public void ejbLoad() { } public void ejbStore() { } public void ejbActivate() { } public void ejbPassivate() { } public void setEntityContext(EntityContext entityContext) {this.entityContext = entityContext; } public void unsetEntityContext() {this.entityContext = null; } } // A // package com.wattabout.wattsbest.ejb.cmp; import javax.ejb.EJBLocalObject; public interface Aextends EJBLocalObject { public void setAfld(String afld); public String getAfld(); public Integer getApk1(); public Integer getApk2(); } // AHome // package com.wattabout.wattsbest.ejb.cmp; import javax.ejb.EJBLocalHome; import javax.ejb.CreateException; import javax.ejb.FinderException; public interface AHomeextends EJBLocalHome { public A create(Integer apk1, Integer apk2) throws CreateException; public A findByPrimaryKey(APK pk) throws FinderException; } // APK // package com.wattabout.wattsbest.ejb.cmp; import java.io.Serializable; public class APK implements Serializable { public Integer apk1; public Integer apk2; public APK() { } public APK(Integer apk1, Integer apk2) { this.apk1 = apk1; this.apk2 = apk2; } public boolean equals(Object obj) { if (this == obj) { return true; } if (! (obj instanceof APK)) { return false; } APK that = (APK) obj; if (! (that.apk1 == null ? this.apk1 == null : that.apk1.equals(this.apk1))) { return false; } if (! (that.apk2 == null ? this.apk2 == null : that.apk2.equals(this.apk2))) {