[JBoss-user] [EJB 3.0] - Re: RC4, MBean/EJB dependencies

2006-02-10 Thread amwilliams
I was able to finally get this to work, but only after I added the @Depends 
annotation like Klaus did before.  I'm not sure why my case works and his 
doesn't.

Anyway, here's the start of the MBean that now works.


  | @Service(objectName=chief:service=InvoiceFileService)
  | @Management(InvoiceFileService.class)
  | public class InvoiceFileServiceMBean implements InvoiceFileService {
  | 
@Depends(jboss.j2ee:ear=chief.ear,jar=business.ejb3,name=InvoiceFileHistoryFinderBean,service=EJB3)
  | @EJB InvoiceFileHistoryFinder invoiceFileHistoryFinder;
  | 

I had to do something similar for all @EJB within each MBean in my project.

The error I received before this was that InvoiceFileService was not known.  I 
did see where it was registering later in the deployment, so adding the 
@Depends annotation makes sense.  However, this wasn't a problem in RC3 so I'm 
not sure what changed.  All of these classes are in the same EAR (and EJB3 
archive within that) so I'm not sure why the depolyment order matters all of 
the sudden.

I'd like to know if this is the way things must be done from now on or if 
there's a better way.  I'm guessing the latter is true.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922995#3922995

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922995


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: RC4, MBean/EJB dependencies

2006-02-09 Thread amwilliams
Here's what I've got going right now.  For me, the error only seems to occur in 
the MBeans.  Other parts of the app work fine when doing JNDI lookups with the 
new naming scheme.

For what its worth, my app still is an EAR with a .EAR and .PAR archive inside 
it.  Haven't made that change yet.

I'll be glad to post some more code or test something if anyone has any ideas.


  | @Service(objectName=chief:service=InvoiceFileService)
  | @Management(InvoiceFileService.class)
  | public class InvoiceFileServiceMBean implements InvoiceFileService {
  | 

Here's most of exception at deploy time. 

  | 2006-02-09 16:39:43,172 INFO  [org.jboss.ejb3.JmxKernelAbstraction] 
installing MBean: 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
 with dependencies:
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.system.ServiceController] Creating 
service 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.system.ServiceController] adding 
depends in ServiceController.register: []
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] 
Creating 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] 
Created 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.system.ServiceController] Creating 
dependent components for: 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
 dependents are: []
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.system.ServiceController] starting 
service 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
  | 
  | 2006-02-09 16:39:43,172 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] 
Starting 
jboss.j2ee:service=EJB3,ear=chief.ear,jar=business.ejb3,name=InvoiceFileServiceMBean
  | 
  | 2006-02-09 16:39:43,282 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
Added url: 
file:/C:/jboss-4.0.3SP1-EJBRC5/server/all/tmp/aopdynclasses/ucl7891/?dynamic=true,
 to ucl: [EMAIL PROTECTED] 
url=file:/C:/jboss-4.0.3SP1-EJBRC5/server/all/tmp/deploy/tmp7890chief.ear 
,addedOrder=48}
  | 
  | 2006-02-09 16:39:43,516 DEBUG [org.jboss.ejb3.tx.UserTransactionImpl] new 
UserTx: [EMAIL PROTECTED]
  | 
  | 2006-02-09 16:39:43,578 DEBUG [org.jboss.ejb3.EJBContainer] binding enc: 
env/com.ntransit.chief.jmx.InvoiceFileServiceMBean/invoiceFileHistoryFinder to 
chief/InvoiceFileHistoryFinderBean/local
  | 
  | 2006-02-09 16:39:43,578 DEBUG [org.jboss.ejb3.EJBContainer] binding enc: 
env/com.ntransit.chief.jmx.InvoiceFileServiceMBean/pos to 
chief/POSPODFileParserBean/local
  | 
  | 2006-02-09 16:39:43,657 DEBUG [org.jboss.ejb3.security.JaccHelper] 
InvoiceFileServiceMBean has no @SecurityDomain - skipping JACC configuration
  | 
  | 2006-02-09 16:39:43,703 DEBUG [org.jboss.system.ServiceController] Creating 
service chief:service=InvoiceFileService
  | 
  | 2006-02-09 16:39:43,703 DEBUG [org.jboss.system.ServiceController] adding 
depends in ServiceController.register: []
  | 
  | 2006-02-09 16:39:43,703 INFO  [STDOUT] javax.naming.NamingException: Could 
not dereference object [Root exception is javax.naming.NameNotFoundException: 
InvoiceFileHistoryFinderBean not bound]
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1052)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:685)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.injection.JndiFieldInjector.inject(JndiFieldInjector.java:69)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.injection.JndiFieldInjector.inject(JndiFieldInjector.java:61)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.service.ServiceContainer.injectDependencies(ServiceContainer.java:261)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.service.ServiceContainer.populateInvocation(ServiceContainer.java:231)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:167)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:142)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:166)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | 
  | 2006-02-09 16:39:43,719 INFO  [STDOUT]  at 

[JBoss-user] [EJB 3.0] - Re: RC4, MBean/EJB dependencies

2006-02-09 Thread amwilliams
Sorry, here's the code snippet above with the annotation in question.

@Service(objectName=chief:service=InvoiceFileService)
  | @Management(InvoiceFileService.class)
  | public class InvoiceFileServiceMBean implements InvoiceFileService {
  | 
  | @EJB InvoiceFileHistoryFinder invoiceFileHistoryFinder;
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922750#3922750

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922750


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: RC4, MBean/EJB dependencies

2006-02-08 Thread amwilliams
I'm having the same problem.  I've got a hunch this may be related to the JNDI 
lookup changes in RC4 and RC5, but I haven't had any luck.  Any ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922405#3922405

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922405


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Trailblazer JMX Service Objects

2005-12-16 Thread amwilliams
echon wrote : well.. i think a lot of people would have tested this eample..
  | 
  | Nobody has a solution??

I've noticed the same thing.  I think the annotations for JMX changed EJB 
Preview 3.  I get the same error in Eclipse, but everything compiles fine 
through an ant script and works once deployed.  Sorry I don't have any more 
insight than that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3913150#3913150

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913150


---
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