[JBoss-user] [EJB/JBoss] - Lazy Loading Bean Managed EJBs??

2004-03-04 Thread OldBlue
Is it possible to lazy load with bean managed EJBs?  I see it can be done easily with 
container managed EJBs.

I'm porting an app from weblogic which was doing this somehow.  (I'm not sure if this 
was default and/or configurable in weblogic.)  And rather than rewriting to use CMP 
for this one bean, I'd like to see if I can configure for lazy loading.

Any help would be greatly appreciated!!

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824253#3824253";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824253>Reply 
to the post


---
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=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: How to delay start of scheduled task??

2004-03-03 Thread OldBlue
Got it.  Just had to add some "depends" tags for each of the five beans in the jar 
(w/in the ear) that these scheduled tasks depend on.

Staggered the tasks by setting the initialStartDates to 0 and 15 respectively, 
with the schedulePeriod set to 30.  (Each task runs at 5 minute intervals offset 
by 2.5 minutes.)

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824028#3824028";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824028>Reply 
to the post


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - How to delay start of scheduled task??

2004-03-02 Thread OldBlue
I finally figured out how to configure scheduled tasks.  I have two separate tasks 
that will be polling databases.  I would like to stagger them so they aren't both 
polling at the same time.  I also need them to not start polling until the rest of my 
app (in an ear file) is deployed.

Questions:
1. How can I delay the start of the scheduled tasks until after the ear file is fully 
deployed?
2. What is the best way to stagger the tasks so that I know they will not be polling 
at the same time?

Thanks!!

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823922#3823922";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823922>Reply 
to the post


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Help! Can't get scheduler working!

2004-03-02 Thread OldBlue
It seems that having scheduler-plugin.jar in my classpath was causing the error 
message shown.  I fixed that and then it couldn't find the class I was trying to 
schedule: 

18:31:52,958 INFO  [Scheduler] Failed to find: 
com.tr.infrastructure.connectors.pollers.C1Connector
java.lang.ClassNotFoundException: Unexpected error during load of: 
com.tr.infrastructure.connectors.pollers.C1Connector, 
msg=org/jboss/varia/scheduler/Schedulable

C1Connector is my schedulable class.  It was in a jar file in the deploy directory.  I 
couldn't find a way to specify to the scheduler that it needed to find that class in 
that jar.

So... I decided to move the jar into the lib directory instead.  This fixed my problem 
and I don't have to specify that jar in my classpath for other services that need 
classes in there.  What an aggravation this was.  But now it's done.  Whew!


http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823921#3823921";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823921>Reply 
to the post


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Help! Can't get scheduler working!

2004-03-02 Thread OldBlue
I'm trying to set up a scheduled task and I've read all the various docs I can find 
and I'm still having a problem.  I'm running JBoss 3.2.2.  When I start up JBoss I get 
the following:

14:51:17,487 WARN  [ServiceConfigurator] Failed to complete install
java.lang.ClassNotFoundException: Unexpected error during load of: 
org.jboss.varia.scheduler.Scheduler, msg=org/jboss/system/ServiceMBeanSupport
at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:218)
at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
.
. (I edited this to save space.)
.
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:534)
14:51:17,507 ERROR [MainDeployer] could not create deployment: 
file:/C:/jboss-3.2.2/server/trif/deploy/scheduler-service.xml
org.jboss.deployment.DeploymentException: create operation failed for package 
file:/C:/jboss-3.2.2/server/trif/deploy/scheduler-service.xml; - nested throwable: 
(javax.management.InstanceNotFoundException: TradeRanger:service=Scheduler is not 
registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
.
.(I edited this to save space.)
.
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.management.InstanceNotFoundException: TradeRanger:service=Scheduler 
is not registered.
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:354)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:557)
at 
org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:745)
.
.(I edited this to save space.)
.
14:51:34,382 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 
'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
[EMAIL PROTECTED] { url=file:/C:/jboss-3.2.2/server/trif/deploy/scheduler-service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: create operation failed for package 
file:/C:/jboss-3.2.2/server/trif/deploy/scheduler-service.xml; - nested throwable: 
(javax.management.InstanceNotFoundException: TradeRanger:service=Scheduler is not 
registered.)
  state: FAILED
  watch: file:/C:/jboss-3.2.2/server/trif/deploy/scheduler-service.xml
  lastDeployed: 1078260677477
  lastModified: 1078260677467
  mbeans:
TradeRanger:service=Scheduler (state not available)
]MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: TradeRanger:service=Scheduler
 state: NOTYETINSTALLED

I've added the scheduler-plugin.jar to my classpath. My class implements 
org.jboss.varia.scheduler.Schedulable, and has a perform() method.  The constructor 
has no arguments. It is in a jar file that is in the deploy directory and is specified 
in the classpath. I have a scheduler-service.xml as follows:

  | 
  | 
  |   
  | true
  | com.tr.infrastructure.connectors.pollers.C1Connector
  | NOW
  | 30
  | -1
  |   
  | 
  | 

Could someone help me figure out what I'm doing wrong?

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823895#3823895";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823895>Reply 
to the post


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-25 Thread OldBlue
Thanks Joachim.  Your persistence telling me to put it in my application.xml got me to 
thinking.  I think it's working now after I added this:


  | 
  | APP-INF/lib/SharedUtils.jar
  | 
  | 

Interesting that in all the documents I've seen, I've never seen one that added the 
path.  But it works.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822984#3822984

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822984


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-25 Thread OldBlue
Hmm If I take the SharedUtils.jar out of the ear and just drop it into the deploy 
directory, the app can find the classes.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822967#3822967

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822967


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-25 Thread OldBlue
Sorry the xml in the application.xml isn't showing up properly.  Should be:

TradeRanger Infrastructure 


DocumentBean.jar


and so on.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822924#3822924

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822924


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-25 Thread OldBlue
I'll show you what I had in WebLogic.  Here's what I have in my ear:

DocumentBean.jar
MessageDocumentBean.jar
MessageLoggingBean.jar
TRIF.war
APP-INF/lib/SharedUtils.jar
meta-inf/application.xml 
meta-inf/Manifest.mf

Here's my Manifest.mf:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: 1.4.2_03-b02 (Sun Microsystems Inc.)

Here's my application.xml:

http://java.sun.com/dtd/application_1_3.dtd'>

TRIF
TradeRanger Infrastructure

DocumentBean.jar


MessageLoggingBean.jar


MessageDocumentBean.jar



TRIF.war





I've tried adding a Class-Path attribute to the manifest with no success.

I've tried adding a module element to the application.xml with no success.  (I even 
tried all three types of modules besides web just for the sake of trying.)  So 
something like SharedUtils.jar

And I've tried putting the SharedUtils.jar in just a lib subdirectory (no APP-INF 
above it), and tried putting it in no subdirectory.

It's a class withing the SharedUtils.jar that can't seem to be found at runtime.  Do I 
need to create a directory structure under the lib directory that mimicks my package 
structure?  (I know this is done in the classes directory in a web app.)


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822920#3822920

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822920


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-25 Thread OldBlue
I originally tried the reference in the application.xml.  Didn't work.  I then tried 
the classpath in the manifest file.  Didn't work.

Something doesn't seem right.  

This was an app created in a WebLogic environment and I've been tasked with "porting" 
it to JBoss.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822904#3822904

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822904


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-25 Thread OldBlue
Does no one know the answer to this??  Is the question not clear?

Please help!!  I'm stuck and don't know how to get my application to work!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822864#3822864

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822864


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: My ejb application can't see jar files

2004-02-24 Thread OldBlue
I am experiencing this same problem.

Any answer?  What am I missing??

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822789#3822789

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822789


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user