RE: [JBoss-user] questions on starting multiple jboss3.0 instances
Title: questions on starting multiple jboss3.0 instances you need to run run -c myserver -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sheng ZouSent: Wednesday, June 12, 2002 11:43 AMTo: '[EMAIL PROTECTED]'Subject: [JBoss-user] questions on starting multiple jboss3.0 instances Hi all, I am trying to start multiple jboss3.0 instances, and I made copies of jboss-3.0.0/server/default to jboss-3.0.0/server/myserver. Then I run the new instance as jboss-3.0.0/bin/run.bat myserver, however, I got this message at the beginning: run.bat: unused non-option argument: myserver And it doesn't seem to run "myserver" instance. Help pls! thanks, sheng
[JBoss-user] MBeans and ear file
I'm running my server over JBoss 2.4.4, where I deploy application in a single ear file and using several MBeans to start some of my services. Previosly I had same jars in deploy and lib/ext directory and for development it was nice and convinient, but for production environment ear is necessary. But currently I start jboss and got exceptions about not finding of MBeans [ERROR,ConfigurationService] Could not create MBean DefaultDomain:service=BlobService(com.filonet.filosafe.server.app.space.blob .BlobService) java.lang.ClassNotFoundException: com.filonet.filosafe.server.app.space.blob.BlobService at javax.management.loading.MLet.findClass(MLet.java:800) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466) at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:751) at org.jboss.configuration.ConfigurationService.create(ConfigurationService.jav a:683) at org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration Service.java:461) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.Main.(Main.java:200) at org.jboss.Main$1.run(Main.java:110) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:106) This is only one service. All of my services are not derived from org.jboss...Service and independent of jboss service infrastructure. The only part I'm missing in my understanding about jboss and probably JMX is: - where my service jar should be located under jboss tree - should I use mbean in jboss.jcml or just mlet in jboss.conf Do I need to put service jar into lib/ext and this is the only solution or there is some workaround. BTW, I don't have any other problems with ear and deployment. Igor Rabinovich Senior Software Engineer Filonet Corporation Vancouver, BC ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Group
Hi all! I created entity bean Group and tried to deploy it million times but was no success. I work with JBoss 2.2.1 and MySQL on Windows 2000. Does anybody know what is the problem with Group name under JBoss or MySQL? Igor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBuilder compilation bug ???
Hi all! I'm using JBuilder 4 enterprise and have such a strange bug: In remote interface of my entity bean I declare toString function throws RemoteException, but get error in compilation. //Company.java public interface Company extends javax.ejb.EJBObject { public String toString() throws RemoteException; } // error "Company.java": Error #: 462 : method toString() in interface com.filonet.filosafe.server.ejb.company.Company cannot override method toString() in class java.lang.Object, overridden method does not throw java.rmi.RemoteException at line 10, column 19 It's strange because of I can compile it with Sun's JDK 1.3.0_02 What is it? Igor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Urgent: storing vector in the database
Thank you for the answer, I don't have dba is the reason I want to use CMP and not to write SQL statements. Generally I need to store a File in the database but not keep the file data on the disk, but store byte array in the database. Case of MySql max_packet_len is 1MB now and I can increase it till 16 MB it's still not enough for the file size. So I wanted to break the file bytes array into pieces of 1MB and put them in the vector and store vector in the database. If you have other method how to store File in the database I'll appreciate. BTW, I dont have a problem to store java object in the database, which not contains array or vector. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Allen fogleson Sent: Thursday, June 21, 2001 9:52 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Urgent: storing vector in the database Your dba is going to hate you...In general I can think of very few reasons to store an object in the database. I would suggest something like a command pattern to handle the situation of not knowing what the array contains. unless you have a limitless assortment of possibilities. you can use the command pattern to pass the array around till you find the appropriate entity bean to store it. likewise on the other side of things to return one to the client. I guess it is a matter of opinion but I dont store objects in a blob unless I absolutely have to. al - Original Message ----- From: Igor Rabinovich <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 11:06 AM Subject: RE: [JBoss-user] Urgent: storing vector in the database > I did not define any new sql type for vector. Vector is java.lang.Object. I > don't have any problems with vector but with array which vector class > contains. I can read the Vector object from the database, but the vector > size is 0 and data array of vector is empty. > > I try not to use any sql statements, but only CMP. I did some research and > my major problem is how to store array of any type in the database with CMP. > > Igor > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Allen > fogleson > Sent: Wednesday, June 20, 2001 5:05 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Urgent: storing vector in the database > > > what sql type are you using? blob? > > in general I wouldnt serialize a vector to a data table. I would populate a > vector (actually probably an array list... ) from sql results. > > Al > > > - Original Message - > From: Igor Rabinovich <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 20, 2001 7:41 PM > Subject: [JBoss-user] Urgent: storing vector in the database > > > > Hi ! > > > > My entity bean member variable is Vector type. I'm adding elements to the > > vector and storing in the database. I can load vector and its element from > > the database. But when I restart Application server I can load only empty > > vector of size 0. All data get lost. > > > > I'm using JBOSS and MySQL with CMP. > > > > What the problem??? > > > > Igor > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Urgent: storing vector in the database
What does it mean: switch of the tuned updates for the bean? Where? Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, June 21, 2001 1:02 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Urgent: storing vector in the database Hi! > > My entity bean member variable is Vector type. I'm adding > elements to the > > vector and storing in the database. I can load vector and > its element from > > the database. But when I restart Application server I can > load only empty > > vector of size 0. All data get lost. > > > > I'm using JBOSS and MySQL with CMP. > > > > What the problem??? Switch of the tuned updates for this bean. I had the same problems with the HashMap. Regards, Roman. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Urgent: storing vector in the database
I did not define any new sql type for vector. Vector is java.lang.Object. I don't have any problems with vector but with array which vector class contains. I can read the Vector object from the database, but the vector size is 0 and data array of vector is empty. I try not to use any sql statements, but only CMP. I did some research and my major problem is how to store array of any type in the database with CMP. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Allen fogleson Sent: Wednesday, June 20, 2001 5:05 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Urgent: storing vector in the database what sql type are you using? blob? in general I wouldnt serialize a vector to a data table. I would populate a vector (actually probably an array list... ) from sql results. Al - Original Message - From: Igor Rabinovich <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 7:41 PM Subject: [JBoss-user] Urgent: storing vector in the database > Hi ! > > My entity bean member variable is Vector type. I'm adding elements to the > vector and storing in the database. I can load vector and its element from > the database. But when I restart Application server I can load only empty > vector of size 0. All data get lost. > > I'm using JBOSS and MySQL with CMP. > > What the problem??? > > Igor > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Urgent: storing vector in the database
Hi ! My entity bean member variable is Vector type. I'm adding elements to the vector and storing in the database. I can load vector and its element from the database. But when I restart Application server I can load only empty vector of size 0. All data get lost. I'm using JBOSS and MySQL with CMP. What the problem??? Igor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user