Re: [jBoss-User] newbie question
Alright. Fair enough. I can understand that--JNDI uses a different class loader than Tomcat (or something), so that it can't see new classes that are available to the Tomcat class loader (I guess). So what happens if you run JBoss & Tomcat in the same JVM? What happens if you use a common classloader instead of separate class loaders? It seems like, based upon my logic above, the common classloader should work, and perhaps separate class loaders will work. Is this the case? I really don't want to restart Tomcat every time I make a change to my EJBs. Thanks! -dan On Thursday 08 February 2001 16:32, you wrote: > > (A lot of stuff about my classpath problems with Tomcat & JBoss) > > There have been a lot of discussions on this list around this - and the > general consensus is that it doesn't work as it should (although I've > noticed an email on another list - turbine - that highlights a bug they've > found in Catalina/tomcat4 to do with classloaders - so hopefully this will > fix it). > > The way I get it to work is to put all my applications jars (I have no code > outside of jars) including the jndi.properties onto the system classpath > before starting tomcat. > > HTH, > Chris -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
RE: [jBoss-User] newbie question
Hi,
>
> I'm trying to configure jBoss to work with Tomcat (separate
> JVMs). Well,
> I've got a problem. I'm getting the following error:
>
> javax.naming.CommunicationException. Root exception is [Tomcat]
> java.lang.ClassNotFoundException:
> com.web_tomorrow.interest.InterestHome
>
> This error occurs in the servlet when the object reference is
> looked up in
> the JNDI context: Object ref = jndiContext.lookup("InterestBean");
>
> The EJB works for the stand-alone (i.e. non-Tomcat) program.
> All evidence I
> find on the web points to a bad classpath for Tomcat,
> everything I check
> appears OK.
>
> Here's what I've tried:
>
> I've tried placing ejb.jar, jaas.jar, jboss-client.jar, jndi.jar,
> jnp-client.jar, jta-spec1_0_1.jar, and the jar file
> containing my EJB in all
> the various places for Tomcat (in the web app's WEB-INF/lib
> directory, in
> Tomcat's /lib directory, adding them to the classpath in
> tomcat.bat, and
> having the EJB in the web app's WEB-INF/classes directory, unjarred).
>
> I've got a jndi.properties file (in the EJB jar file and/or
> the web app's
> WEB-INF/classes directory) that looks like the following:
>
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=localhost:1099
> java.naming.factory.url.pkgs=org.jboss.naming
>
> although it appears that the servlet sets the first two
> explicitly. And,
> yes, the Tomcat server & the JBoss server are on the same machine.
>
> I'm at wit's end. I have no idea why, with all of this, it's
> working from
> the standalone program and not inside Tomcat. If anyone has
> any ideas, I'd
> be grateful to hear them.
>
There have been a lot of discussions on this list around this - and the
general consensus is that it doesn't work as it should (although I've
noticed an email on another list - turbine - that highlights a bug they've
found in Catalina/tomcat4 to do with classloaders - so hopefully this will
fix it).
The way I get it to work is to put all my applications jars (I have no code
outside of jars) including the jndi.properties onto the system classpath
before starting tomcat.
HTH,
Chris
This electronic message (email) and any attachments to it are subject to copyright and
are sent for the personal attention of the addressee. Although you may be the named
recipient, it may become apparent that this email and its contents are not intended
for you and an addressing error has been made. This email may include information that
is legally privileged and exempt from disclosure. If you have received this email in
error, please advise us immediately and delete this email and any attachments from
your computer system.Rabobank International is the trading name of Coöperatieve
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands.
Registered with the Registrar of Companies for England & Wales No. BR002630 and
regulated by the SFA for the conduct of investment business in the UK.
The presence of this footnote also confirms that this email has been automatically
checked by Rabobank International for the presence of computer viruses prior to it
being sent, however, no guarantee is given or implied that this email is virus free
upon delivery.
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
[jBoss-User] newbie question
I'm trying to configure jBoss to work with Tomcat (separate JVMs). Well,
I've got a problem. I'm getting the following error:
javax.naming.CommunicationException. Root exception is [Tomcat]
java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome
This error occurs in the servlet when the object reference is looked up in
the JNDI context: Object ref = jndiContext.lookup("InterestBean");
The EJB works for the stand-alone (i.e. non-Tomcat) program. All evidence I
find on the web points to a bad classpath for Tomcat, everything I check
appears OK.
Here's what I've tried:
I've tried placing ejb.jar, jaas.jar, jboss-client.jar, jndi.jar,
jnp-client.jar, jta-spec1_0_1.jar, and the jar file containing my EJB in all
the various places for Tomcat (in the web app's WEB-INF/lib directory, in
Tomcat's /lib directory, adding them to the classpath in tomcat.bat, and
having the EJB in the web app's WEB-INF/classes directory, unjarred).
I've got a jndi.properties file (in the EJB jar file and/or the web app's
WEB-INF/classes directory) that looks like the following:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming
although it appears that the servlet sets the first two explicitly. And,
yes, the Tomcat server & the JBoss server are on the same machine.
I'm at wit's end. I have no idea why, with all of this, it's working from
the standalone program and not inside Tomcat. If anyone has any ideas, I'd
be grateful to hear them.
Thanks!
-dan
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
Re: [jBoss-User] Newbie question
I got that behaviour. Some of the entries within the default mappings created by default are duff. The way I worked around it was to fire up the EJX Jaws editor while manually reviewing the type mappings in the Jaws.xml file and reapplying those types in Jaws (What you actually add to the type mappings doesn't matter if you are not using that db) There are about six or so that are wrong - generally BIT class I think. I looked for a source of these mappings that EJX uses but couldn't find it. If anybody could enlighten me (us) Tim |+---> || Paul Dorn| || | || | || 02/02/01 | || 16:40| || Please | || respond to | || "jBoss" | || | |+---> >---| | | | To: [EMAIL PROTECTED]| | cc: (bcc: Tim Clarke/Globebyte Limited UK) | | Subject: [jBoss-User] Newbie question | >---| I am building in Jbuilder4 and using ejx to modify the xml files particularly the jaws.xml to add a finder . When I go to deploy, I get an error about a NULL jdbc type in the mapping for SOLID. I never edited the SOLID mapping. What is happening here? -Paul Dorn [EMAIL PROTECTED] 301-497-9458 TTY/TDD 609-709-4050 1-877-381-4195 Also on your live answer community: http://www.keen.com/paulidorn Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED] -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
[jBoss-User] Newbie question
I am building in Jbuilder4 and using ejx to modify the xml files particularly the jaws.xml to add a finder . When I go to deploy, I get an error about a NULL jdbc type in the mapping for SOLID. I never edited the SOLID mapping. What is happening here? -Paul Dorn [EMAIL PROTECTED] 301-497-9458 TTY/TDD 609-709-4050 1-877-381-4195 Also on your live answer community: http://www.keen.com/paulidorn Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
RE: [jBoss-User] (newbie question) BMP Entity beans and resource manager
Title: RE: [jBoss-User] (newbie question) BMP Entity beans and resource manager You need to configure a resource manager in jboss.xml -- Tom Cook Systems Development Australian Submarine Corporation Mersey Road Outer Harbour +61 8 8348 7645 "From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter. I fully intend to read it one day." - Groucho Marx -Original Message- From: Jean-Philippe SCHALLER [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 6:57 PM To: [EMAIL PROTECTED] Subject: [jBoss-User] (newbie question) BMP Entity beans and resource manager Hi everyone, I am studying the jBoss Test suite BMP example, and I have some trouble with the resource-ref field in the ejb-jar.xml file. In this file, you can find the following tree : datasource javax.sql.DataSource Container My question is about the node. Where do I have to set this name so that at deployment time, I do not have a "No resource manager found for datasource"-like message ? Thanks in advance, Jean-Philippe SCHALLER [EMAIL PROTECTED] - http://www.modelmadz.net He whose lust lasts, lasts longest. (Harold Pinter?) -- -- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
Re: [jBoss-User] (newbie question) BMP Entity beans andresourcemanager... It works :)
Thank you for your help. It works fine :) Jean-Philippe SCHALLER [EMAIL PROTECTED] - http://www.modelmadz.net - Original Message - From: "Lennart Petersson" <[EMAIL PROTECTED]> To: "jBoss" <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 12:49 PM Subject: Re: [jBoss-User] (newbie question) BMP Entity beans and resourcemanager > In jboss.jcml in the conf directory, like this example where jdbc/ECS > corresponds to res-ref-name entry: > >name="DefaultDomain:service=XADataSource,name=jdbc/ECS"> > jdbc/ECS > name="DataSourceClass">org.jboss.minerva.xa.XADataSourceImpl > > jdbc:oracle:thin:@lks145:1521:orcl > ecs > ecs > false > > > /Lennart > > > Jean-Philippe SCHALLER skrev: > > > > Hi everyone, > > I am studying the jBoss Test suite BMP example, and I have some trouble with > > the resource-ref field in the ejb-jar.xml file. > > In this file, you can find the following tree : > > > > > > datasource > > javax.sql.DataSource > > Container > > > > > > My question is about the node. > > Where do I have to set this name so that at deployment time, I do not have a > > "No resource manager found for datasource"-like message ? > > > > Thanks in advance, > > > > Jean-Philippe SCHALLER > > [EMAIL PROTECTED] - http://www.modelmadz.net > > He whose lust lasts, lasts longest. (Harold Pinter?) > > > > -- > > -- > > To subscribe:[EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > List Help?: [EMAIL PROTECTED] > > -- > mailto:[EMAIL PROTECTED] > http://www.benefit.se/english > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > List Help?: [EMAIL PROTECTED] -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
Re: [jBoss-User] (newbie question) BMP Entity beans andresourcemanager
In jboss.jcml in the conf directory, like this example where jdbc/ECS corresponds to res-ref-name entry: jdbc/ECS org.jboss.minerva.xa.XADataSourceImpl jdbc:oracle:thin:@lks145:1521:orcl ecs ecs false /Lennart Jean-Philippe SCHALLER skrev: > > Hi everyone, > I am studying the jBoss Test suite BMP example, and I have some trouble with > the resource-ref field in the ejb-jar.xml file. > In this file, you can find the following tree : > > > datasource > javax.sql.DataSource > Container > > > My question is about the node. > Where do I have to set this name so that at deployment time, I do not have a > "No resource manager found for datasource"-like message ? > > Thanks in advance, > > Jean-Philippe SCHALLER > [EMAIL PROTECTED] - http://www.modelmadz.net > He whose lust lasts, lasts longest. (Harold Pinter?) > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > List Help?: [EMAIL PROTECTED] -- mailto:[EMAIL PROTECTED] http://www.benefit.se/english -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
[jBoss-User] (newbie question) BMP Entity beans and resourcemanager
Hi everyone, I am studying the jBoss Test suite BMP example, and I have some trouble with the resource-ref field in the ejb-jar.xml file. In this file, you can find the following tree : datasource javax.sql.DataSource Container My question is about the node. Where do I have to set this name so that at deployment time, I do not have a "No resource manager found for datasource"-like message ? Thanks in advance, Jean-Philippe SCHALLER [EMAIL PROTECTED] - http://www.modelmadz.net He whose lust lasts, lasts longest. (Harold Pinter?) -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
RE: [jBoss-User] newbie question ...
Hi Emiliano,
your client needs also some of the jars that sits under dist/client
directory. In particular the error you get is because jboss-client.jar is
missing from your client's classpath.
There was a similar thread in this mailing list few days ago, search in it,
you'll find a lot of useful informations.
For the documentation, look on JBoss' site.
HTH,
Simon
> -Original Message-
> From: Emiliano [mailto:[EMAIL PROTECTED]]
> Sent: sabato 13 gennaio 2001 14:51
> To: jBoss
> Subject: Re: [jBoss-User] newbie question ...
>
>
> Tobias Frech wrote:
>
> > Hi Emiliano!
> > I suggest not to set the properties in the code. Create a
> > jndi.properties somewhere in your classpath with the
> following contents:
> >
> > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> > java.naming.provider.url=hostname.of.server
> > java.naming.factory.url.pkgs=org.jboss.naming
> >
> > Then just use 'new IntitialContext()'.
> > That should work.
> >
> > Ciao, Tobias
>
> Ok ... now I have a jndi.properties file in my classpath. I
> compile the
> following client
>
> import javax.naming.InitialContext;
> import javax.naming.Context;
> import javax.naming.NamingException;
> import java.rmi.RemoteException;
> import java.util.Properties;
> import test.TestEJB;
> import test.TestEJBHome;
>
> public class Client
> {
>public static void main(String [] args)
>{
>try
>{
>System.out.println("OK 1");
>InitialContext ctx = new InitialContext();
>Object ref = ctx.lookup("TestEJB");
>System.out.println("OK 2");
>TestEJBHome home = (TestEJBHome) ref;
>System.out.println("OK 3");
>
>TestEJB test = home.create();
>System.out.println("Message : " + test.toString());
>
>}
>catch (Exception e)
>{
>e.printStackTrace();
>}
>}
> }
>
> And the output is
>
> OK 1
> javax.naming.CommunicationException. Root exception is
> java.lang.ClassNotFoundException:
> org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy (no
> security manager:
> RMI class loader disabled)
>at
> sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
>at
> sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:88)
>at
> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStr
> eam.java:145)
>at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStre
> am.java:918)
>at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
>at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
>at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>at
> java.io.ObjectInputStream.inputClassFields(ObjectInputStream.j
> ava:2262)
>at
> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.
> java:519)
>at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
>at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
>at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
>at javax.naming.InitialContext.lookup(InitialContext.java:350)
>at Client_1.main(Client_1.java:16)
>
> Thanks very much for anyone can help me !!
> Where I can find documentation on jboss ?
>
> Thank you !!
>
> Ciao Emiliano
>
> P.S. scuse me my bad english ;-P
>
>
>
> --
> --
> To subscribe:[EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
Re: [jBoss-User] newbie question ...
Tobias Frech wrote:
> Hi Emiliano!
> I suggest not to set the properties in the code. Create a
> jndi.properties somewhere in your classpath with the following contents:
>
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=hostname.of.server
> java.naming.factory.url.pkgs=org.jboss.naming
>
> Then just use 'new IntitialContext()'.
> That should work.
>
> Ciao, Tobias
Ok ... now I have a jndi.properties file in my classpath. I compile the
following client
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import java.rmi.RemoteException;
import java.util.Properties;
import test.TestEJB;
import test.TestEJBHome;
public class Client
{
public static void main(String [] args)
{
try
{
System.out.println("OK 1");
InitialContext ctx = new InitialContext();
Object ref = ctx.lookup("TestEJB");
System.out.println("OK 2");
TestEJBHome home = (TestEJBHome) ref;
System.out.println("OK 3");
TestEJB test = home.create();
System.out.println("Message : " + test.toString());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
And the output is
OK 1
javax.naming.CommunicationException. Root exception is
java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy (no security manager:
RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:88)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:145)
at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client_1.main(Client_1.java:16)
Thanks very much for anyone can help me !!
Where I can find documentation on jboss ?
Thank you !!
Ciao Emiliano
P.S. scuse me my bad english ;-P
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
Re: [jBoss-User] newbie question ...
Hi Emiliano!
I suggest not to set the properties in the code. Create a
jndi.properties somewhere in your classpath with the following contents:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=hostname.of.server
java.naming.factory.url.pkgs=org.jboss.naming
Then just use 'new IntitialContext()'.
That should work.
Ciao, Tobias
Emiliano Carlesi wrote:
>
> Hi !! I have download jBoss yesterday and I'd like to use some EJB I have ( I work
>with BEA WebLogic ). Now ... I deploy the files .jar into the folder
>/usr/local/jboss/deploy and when I start jboss the bean are deployed into the server.
>OK !!!
> The problem is the client
>
> Whit WebLogic I use this file to test my EJB
>
> //the file name TestEJBClient.java
> import test.*;
> import javax.ejb.*;
> import javax.naming.*;
> import java.util.*;
> import javax.rmi.PortableRemoteObject;
>
> public class TestEJBClient
> {
> try
> {
> Properties p = new Properties();
> p.put(Context.INITIAL_CONTEXT_FACTORY,
>"weblogic.jndi.WLInitialContextFactory");
> p.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
>
> Context ctx = new InitialContext(properties);
> TestEJBHome home = (TestEJBHome) ctx.lookup("TestEJB");
> TestEJB the_ejb = home.create();
>
> System.out.println("Message from the container = " +
>the_ejb.getMessage());
>
> the_ejb.remove();
> }
> catch (Exception e)
> {
> e.printStackTrace();
> }
> }
>
> I think I insert two wrong properties, but I don't find documentation about this.
>
> I think the problem is this
>
> weblogic.jndi.WLInitialContextFactory
> and
> t3://127.0.0.1:7001
>
> Someone can help me, please ?
>
> Thank you very much !!!
>
> Emiliano
>
> ___
> Se vuoi un indirizzo di posta elettronica gratuito,
> iscriviti a http://www.katamail.com
>
> --
> --
> To subscribe:[EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
RE: [jBoss-User] newbie question ...
yes that is your problem see the documentation and examples for the proper
ones
marc
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Emiliano Carlesi
|Sent: Friday, January 12, 2001 3:46 PM
|To: [EMAIL PROTECTED]
|Subject: [jBoss-User] newbie question ...
|
|
|Hi !! I have download jBoss yesterday and I'd like to use some EJB
|I have ( I work with BEA WebLogic ). Now ... I deploy the files
|.jar into the folder /usr/local/jboss/deploy and when I start
|jboss the bean are deployed into the server. OK !!!
|The problem is the client
|
|Whit WebLogic I use this file to test my EJB
|
|//the file name TestEJBClient.java
|import test.*;
|import javax.ejb.*;
|import javax.naming.*;
|import java.util.*;
|import javax.rmi.PortableRemoteObject;
|
|
|
|public class TestEJBClient
|{
| try
| {
| Properties p = new Properties();
| p.put(Context.INITIAL_CONTEXT_FACTORY,
|"weblogic.jndi.WLInitialContextFactory");
| p.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
|
|
| Context ctx = new InitialContext(properties);
| TestEJBHome home = (TestEJBHome) ctx.lookup("TestEJB");
| TestEJB the_ejb = home.create();
|
| System.out.println("Message from the container = "
|+ the_ejb.getMessage());
|
| the_ejb.remove();
| }
| catch (Exception e)
| {
| e.printStackTrace();
| }
|}
|
|I think I insert two wrong properties, but I don't find
|documentation about this.
|
|I think the problem is this
|
|weblogic.jndi.WLInitialContextFactory
|and
|t3://127.0.0.1:7001
|
|Someone can help me, please ?
|
|Thank you very much !!!
|
|Emiliano
|
|___
|Se vuoi un indirizzo di posta elettronica gratuito,
|iscriviti a http://www.katamail.com
|
|
|--
|--
|To subscribe:[EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|List Help?: [EMAIL PROTECTED]
|
|
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
[jBoss-User] newbie question ...
Hi !! I have download jBoss yesterday and I'd like to use some EJB I have ( I work
with BEA WebLogic ). Now ... I deploy the files .jar into the folder
/usr/local/jboss/deploy and when I start jboss the bean are deployed into the server.
OK !!!
The problem is the client
Whit WebLogic I use this file to test my EJB
//the file name TestEJBClient.java
import test.*;
import javax.ejb.*;
import javax.naming.*;
import java.util.*;
import javax.rmi.PortableRemoteObject;
public class TestEJBClient
{
try
{
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
Context ctx = new InitialContext(properties);
TestEJBHome home = (TestEJBHome) ctx.lookup("TestEJB");
TestEJB the_ejb = home.create();
System.out.println("Message from the container = " +
the_ejb.getMessage());
the_ejb.remove();
}
catch (Exception e)
{
e.printStackTrace();
}
}
I think I insert two wrong properties, but I don't find documentation about this.
I think the problem is this
weblogic.jndi.WLInitialContextFactory
and
t3://127.0.0.1:7001
Someone can help me, please ?
Thank you very much !!!
Emiliano
___
Se vuoi un indirizzo di posta elettronica gratuito,
iscriviti a http://www.katamail.com
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
[jBoss-User] newbie question
Here's my problem : When I try the Interest bean example, I am getting as far as the "Got Reference" line, but after that I get java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow. In the archives, Rickard Oberg had suggested checking the classloaders for both obj and InterestHome.class for which I have ref.getClass().getInterfaces()[0].getClassLoader - null InterestHome.class.getClassLoader - sun.misc.Launcher$AppClassLoader@404536 But there was nothing after this - where do I go now ? Any help will appreciated thank you everybody. -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
Re: [jBoss-User] Newbie Question
Hi, quite true. But to a true java afficindo...go for Hypersonic/InstantDB or QED. :) Lionel - Original Message - From: "Aaron Mulder" <[EMAIL PROTECTED]> To: "jBoss" <[EMAIL PROTECTED]> Sent: Saturday, December 02, 2000 12:04 AM Subject: Re: [jBoss-User] Newbie Question > Be very careful using MySQL, as until very recently it didn't > support transactions and it still is not a very appropriate DB for EJBs. > Try Interbase or PostgreSQL as alternative open-source DB products. > However, that said, there's a MySQL configuration example in the manual > (under Advanced Configuration - Connection Pool Configuration Examples). > > Aaron > > On Fri, 1 Dec 2000, Schreiber, Mike wrote: > > Can someone point me to an example of creating a mysql database > > connection pool within JBoss.. > > > > > > > > MS > > > > > > -- > > -- > > To subscribe:[EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > Problems?: [EMAIL PROTECTED] > > > > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] Newbie Question
Hi Mike! As Aaron already pointed out, you may want to have a look at http://www.jboss.org/manual/adv_config.html#poolex As we are currently developing on mySQL (and it works for us) I hope I can answer any further questions you might have about mySQL. Aaron, http://www.mysql.com/documentation/mysql/commented/manual.php?section=Missing_Transactions states that "MySQL does nowadays support transactions". I will inquire further and let you know the result. Cheers, Tobias "Schreiber, Mike" wrote: > > Can someone point me to an example of creating a mysql database > connection pool within JBoss.. > MS Hey, do you really want to do that "MS" thing ? It reminds me of Bad Things(TM) ! > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] Newbie Question
Be very careful using MySQL, as until very recently it didn't support transactions and it still is not a very appropriate DB for EJBs. Try Interbase or PostgreSQL as alternative open-source DB products. However, that said, there's a MySQL configuration example in the manual (under Advanced Configuration - Connection Pool Configuration Examples). Aaron On Fri, 1 Dec 2000, Schreiber, Mike wrote: > Can someone point me to an example of creating a mysql database > connection pool within JBoss.. > > > > MS > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
[jBoss-User] Newbie Question
Can someone point me to an example of creating a mysql database connection pool within JBoss.. MS -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
[jBoss-User] Newbie question
Hellow again, which tool do you use for buiding your *.ear and *.war files.. I assume is the tool from the java spec. I just want to be sure... -thanks -- Rolando Rivera CYMSoft Enterprise Architect -- -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] newbie question about Jboss configurations, clientsusing java 1.2.2
Hi, Jim Nemesh wrote: > > Hi there. I'm hoping someone can help me out with a few questions > that I'm unclear about: > > I would like to use Jboss, and have clients that run under java > 1.2.2. Is all that's necessary for this to run Jboss with java 1.3, and > configure the jboss.xml for each bean to have the line: > jdk1.2.2 Stateful > SessionBean Correct. > I had posted a question last week about beans not deploying > correctly, and I found out that our Jboss server is running on java > 1.2.2, instead of 1.3. Would this cause problems, or is this a better > solution than configuring the session beans in the jboss.xml? If I need > to run JBoss under java 1.2.2, what do I need to change? Would running > Jboss under java 1.2.2, and having the line above cause problems as > well, or simply be redundant? If jboss runs on jdk1.2.2, then nothing should be needed: jboss will use the jdk1.2.2 configurations automatically, and jdk1.2.2 clients should be able to connect. Sebastien > We're currently running Jboss v2, release 4. > > Any information you guys have on this would be great! > > -Jim > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
[jBoss-User] newbie question about Jboss configurations, clientsusing java 1.2.2
Hi there. I'm hoping someone can help me out with a few questions that I'm unclear about: I would like to use Jboss, and have clients that run under java 1.2.2. Is all that's necessary for this to run Jboss with java 1.3, and configure the jboss.xml for each bean to have the line: jdk1.2.2 Stateful SessionBean I had posted a question last week about beans not deploying correctly, and I found out that our Jboss server is running on java 1.2.2, instead of 1.3. Would this cause problems, or is this a better solution than configuring the session beans in the jboss.xml? If I need to run JBoss under java 1.2.2, what do I need to change? Would running Jboss under java 1.2.2, and having the line above cause problems as well, or simply be redundant? We're currently running Jboss v2, release 4. Any information you guys have on this would be great! -Jim -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] Newbie question
Looks like a corrupted class file.
Copy the files again and retry!
HTH
\Daniel
On Wed, 11 Oct 2000, Wasserman, Henry wrote:
> I've got my EJB server up and running. The Interest client works on the
> localhost, I've changed System.setProperty("java.naming.provider.url" to the
> correct machine name. I have ejb.jar jboss-client.jar and
interest.jar on > the client side. I'm referencing them in my
classpath. but I'm getting the > following error messages:
>
> C:\test\ejbstuff>java -classpath ejb.jar;jboss-client.jar;interest.jar;.
> InterestClient
>
> Exception in thread "main" java.lang.ClassFormatError: InterestClient
> (Illegal c
> onstant pool type)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>
>
>
> --
> --
> To subscribe:[EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
[jBoss-User] Newbie question
I've got my EJB server up and running. The Interest client works on the
localhost, I've changed System.setProperty("java.naming.provider.url" to the
correct machine name. I have ejb.jar jboss-client.jar and interest.jar on
the client side. I'm referencing them in my classpath. but I'm getting the
following error messages:
C:\test\ejbstuff>java -classpath ejb.jar;jboss-client.jar;interest.jar;.
InterestClient
Exception in thread "main" java.lang.ClassFormatError: InterestClient
(Illegal c
onstant pool type)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
--
--
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] newbie question
Jerzy, jBoss is really easy to use. Unzip the file, and (on Win32) run run.bat in the bin directory. That will start the server. To stop it, just do a Ctrl-C in the server console window. (Supposedly you can remotely stop with stop.jar, but I haven't played around with that too much). To deploy an app, just drop the ejb-jar in the deploy directory, and it will be automatically deployed. -Jason Jerzy Brzezicki <[EMAIL PROTECTED]> 10/10/00 07:22 AM Please respond to jBoss To: jBoss <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] Subject: Re: [jBoss-User] newbie question Sebastien, I am referring to : http://www.jboss.org/jboss_win32_1.html If I use zip file what do I need to install it, except unzipping ? Thanks, Jerzy - Original Message - From: "Sebastien Alborini" <[EMAIL PROTECTED]> To: "jBoss" <[EMAIL PROTECTED]> Sent: Monday, October 09, 2000 5:23 PM Subject: Re: [jBoss-User] newbie question > Jerzy Brzezicki wrote: > > > > I am trying to install jBoss on NT and have question: > > - some documentation says that there is an installation version available with InstallAnywhere - I could not find this > > version. Can someone tell me where to find it ? > > Hi, > > The installation with installanywhere was buggy, so we reverted to good > old .zip > Available from www.jboss.org -> binary > > Which documentation are you referring to? > > Sebastien > > > > > Thanks, > > Jerzy > > > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: "jBoss" <[EMAIL PROTECTED]> > > Sent: Monday, October 09, 2000 4:53 PM > > Subject: Re: [jBoss-User] Updates > > > > > Awesome! +1,000,000 to Rickard! > > > > > > > > > > > > > > > > > > Rickard Öberg <[EMAIL PROTECTED]> > > > 10/09/00 03:27 PM > > > Please respond to jBoss > > > > > > > > > To: jBoss User <[EMAIL PROTECTED]>, jBoss Developer > > > <[EMAIL PROTECTED]> > > > cc: > > > Subject:[jBoss-User] Updates > > > > > > Hey > > > > > > The following updates have been made: > > > - Exception handling has been cleaned up more, especially for create and > > > find methods (I missed the fact that they can throw any app. exception). > > > Thanks to Paul Austin for tracking this down! > > > - Added support for isModified in the EntitySynchronizationInterceptor > > > (Anything WebLogic can do, we can do better ;-). This means that if your > > > EntityBean has a method "isModified" that returns a boolean the > > > container will ask it before calling ejbStore. If false, then the call > > > is skipped. This can improve performance *a lot* for read-only usage. > > > The read-only test in the "banktest" suite (in the "jbosstest" module) > > > now reports 2ms instead of 6ms for read-only EntityBean invocation. > > > Neat. > > > - SecurityManager is now optional. Turn it off for performance (default > > > is "off" since most people will prefer performance over security, at > > > least as default). > > > > > > Tttthat's all folks :-) Above is in CVS. > > > > > > regards, > > > Rickard > > > > > > -- > > > Rickard Öberg > > > > > > Email: [EMAIL PROTECTED] > > > http://www.telkel.com > > > http://www.jboss.org > > > http://www.dreambean.com > > > > > > > > > > > > -- > > > -- > > > To subscribe:[EMAIL PROTECTED] > > > To unsubscribe: [EMAIL PROTECTED] > > > Problems?: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > -- > > > -- > > > To subscribe:[EMAIL PROTECTED] > > > To unsubscribe: [EMAIL PROTECTED] > > > Problems?: [EMAIL PROTECTED] > > > > > > > > > > -- > > -- > > To subscribe:[EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > Problems?: [EMAIL PROTECTED] > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > > -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED] -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] newbie question
Sebastien, I am referring to : http://www.jboss.org/jboss_win32_1.html If I use zip file what do I need to install it, except unzipping ? Thanks, Jerzy - Original Message - From: "Sebastien Alborini" <[EMAIL PROTECTED]> To: "jBoss" <[EMAIL PROTECTED]> Sent: Monday, October 09, 2000 5:23 PM Subject: Re: [jBoss-User] newbie question > Jerzy Brzezicki wrote: > > > > I am trying to install jBoss on NT and have question: > > - some documentation says that there is an installation version available with >InstallAnywhere - I could not find this > > version. Can someone tell me where to find it ? > > Hi, > > The installation with installanywhere was buggy, so we reverted to good > old .zip > Available from www.jboss.org -> binary > > Which documentation are you referring to? > > Sebastien > > > > > Thanks, > > Jerzy > > > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: "jBoss" <[EMAIL PROTECTED]> > > Sent: Monday, October 09, 2000 4:53 PM > > Subject: Re: [jBoss-User] Updates > > > > > Awesome! +1,000,000 to Rickard! > > > > > > > > > > > > > > > > > > Rickard Öberg <[EMAIL PROTECTED]> > > > 10/09/00 03:27 PM > > > Please respond to jBoss > > > > > > > > > To: jBoss User <[EMAIL PROTECTED]>, jBoss Developer > > > <[EMAIL PROTECTED]> > > > cc: > > > Subject:[jBoss-User] Updates > > > > > > Hey > > > > > > The following updates have been made: > > > - Exception handling has been cleaned up more, especially for create and > > > find methods (I missed the fact that they can throw any app. exception). > > > Thanks to Paul Austin for tracking this down! > > > - Added support for isModified in the EntitySynchronizationInterceptor > > > (Anything WebLogic can do, we can do better ;-). This means that if your > > > EntityBean has a method "isModified" that returns a boolean the > > > container will ask it before calling ejbStore. If false, then the call > > > is skipped. This can improve performance *a lot* for read-only usage. > > > The read-only test in the "banktest" suite (in the "jbosstest" module) > > > now reports 2ms instead of 6ms for read-only EntityBean invocation. > > > Neat. > > > - SecurityManager is now optional. Turn it off for performance (default > > > is "off" since most people will prefer performance over security, at > > > least as default). > > > > > > Tttthat's all folks :-) Above is in CVS. > > > > > > regards, > > > Rickard > > > > > > -- > > > Rickard Öberg > > > > > > Email: [EMAIL PROTECTED] > > > http://www.telkel.com > > > http://www.jboss.org > > > http://www.dreambean.com > > > > > > > > > > > > -- > > > -- > > > To subscribe:[EMAIL PROTECTED] > > > To unsubscribe: [EMAIL PROTECTED] > > > Problems?: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > -- > > > -- > > > To subscribe:[EMAIL PROTECTED] > > > To unsubscribe: [EMAIL PROTECTED] > > > Problems?: [EMAIL PROTECTED] > > > > > > > > > > -- > > -- > > To subscribe:[EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > Problems?: [EMAIL PROTECTED] > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > > -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
Re: [jBoss-User] newbie question
Jerzy Brzezicki wrote: > > I am trying to install jBoss on NT and have question: > - some documentation says that there is an installation version available with >InstallAnywhere - I could not find this > version. Can someone tell me where to find it ? Hi, The installation with installanywhere was buggy, so we reverted to good old .zip Available from www.jboss.org -> binary Which documentation are you referring to? Sebastien > Thanks, > Jerzy > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "jBoss" <[EMAIL PROTECTED]> > Sent: Monday, October 09, 2000 4:53 PM > Subject: Re: [jBoss-User] Updates > > > Awesome! +1,000,000 to Rickard! > > > > > > > > > > > > Rickard Öberg <[EMAIL PROTECTED]> > > 10/09/00 03:27 PM > > Please respond to jBoss > > > > > > To: jBoss User <[EMAIL PROTECTED]>, jBoss Developer > > <[EMAIL PROTECTED]> > > cc: > > Subject:[jBoss-User] Updates > > > > Hey > > > > The following updates have been made: > > - Exception handling has been cleaned up more, especially for create and > > find methods (I missed the fact that they can throw any app. exception). > > Thanks to Paul Austin for tracking this down! > > - Added support for isModified in the EntitySynchronizationInterceptor > > (Anything WebLogic can do, we can do better ;-). This means that if your > > EntityBean has a method "isModified" that returns a boolean the > > container will ask it before calling ejbStore. If false, then the call > > is skipped. This can improve performance *a lot* for read-only usage. > > The read-only test in the "banktest" suite (in the "jbosstest" module) > > now reports 2ms instead of 6ms for read-only EntityBean invocation. > > Neat. > > - SecurityManager is now optional. Turn it off for performance (default > > is "off" since most people will prefer performance over security, at > > least as default). > > > > Tttthat's all folks :-) Above is in CVS. > > > > regards, > > Rickard > > > > -- > > Rickard Öberg > > > > Email: [EMAIL PROTECTED] > > http://www.telkel.com > > http://www.jboss.org > > http://www.dreambean.com > > > > > > > > -- > > -- > > To subscribe:[EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > Problems?: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > -- > > -- > > To subscribe:[EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > Problems?: [EMAIL PROTECTED] > > > > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
[jBoss-User] newbie question
I am trying to install jBoss on NT and have question: - some documentation says that there is an installation version available with InstallAnywhere - I could not find this version. Can someone tell me where to find it ? Thanks, Jerzy - Original Message - From: <[EMAIL PROTECTED]> To: "jBoss" <[EMAIL PROTECTED]> Sent: Monday, October 09, 2000 4:53 PM Subject: Re: [jBoss-User] Updates > Awesome! +1,000,000 to Rickard! > > > > > > Rickard Öberg <[EMAIL PROTECTED]> > 10/09/00 03:27 PM > Please respond to jBoss > > > To: jBoss User <[EMAIL PROTECTED]>, jBoss Developer > <[EMAIL PROTECTED]> > cc: > Subject:[jBoss-User] Updates > > Hey > > The following updates have been made: > - Exception handling has been cleaned up more, especially for create and > find methods (I missed the fact that they can throw any app. exception). > Thanks to Paul Austin for tracking this down! > - Added support for isModified in the EntitySynchronizationInterceptor > (Anything WebLogic can do, we can do better ;-). This means that if your > EntityBean has a method "isModified" that returns a boolean the > container will ask it before calling ejbStore. If false, then the call > is skipped. This can improve performance *a lot* for read-only usage. > The read-only test in the "banktest" suite (in the "jbosstest" module) > now reports 2ms instead of 6ms for read-only EntityBean invocation. > Neat. > - SecurityManager is now optional. Turn it off for performance (default > is "off" since most people will prefer performance over security, at > least as default). > > Tttthat's all folks :-) Above is in CVS. > > regards, > Rickard > > -- > Rickard Öberg > > Email: [EMAIL PROTECTED] > http://www.telkel.com > http://www.jboss.org > http://www.dreambean.com > > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > > > > > > > > -- > -- > To subscribe:[EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > > -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
[jBoss-User] Newbie question on scheduling
How can I have a bean or class/bean that starts up when my application is deployed and then runs continuously until the app is un-deployed/server stopped? Basically, I need to set up a class that will act as a scheduler, and perform routine maintenance, as well as end-user submitted jobs (a la cron) at specified times (I would prefer to have at least minute-level execution accuracy). I was thinking that basically I just needed a class that could spawn a timer thread, and check periodically if there were any new jobs to run. I know that EJB's aren't allowed/supposed to work with threads, so I assume this can't actually run as a session bean. Is there any way to do this in an EJB container, or would this need to be done externally (via cron or at or something like that--hey that rhymes!) -Jason
