jboss

How to deploy to jboss a file folder into a jar?

Hi. I'm developing a Jboss web service that requires to access files which are in a folder of the project. When I deploy the web service, it creates a .jar, but the folder doesn't go inside of it, even if I added it to build path. How do i tell jboss to place the folder inside of the .jar? Thanks in advance. ...

JBoss MBeans: How to have an array attribute?

Is it possible to define a MBean with an array attribute. I currently have an MBean defined as: <mbean code="corp.app.jmx.DNSServer" name="corp.app:service=DNSServer"> <attribute name="Server"> 192.168.0.1 192.168.0.2 192.168.0.3 </attribute> </mbean> In the MBean code I then split the String. However - for my next MBean I nee...

Session Bean returning another Remote Session Bean reference [JBOSS]

Hi all, I have a Stateless Session Bean in my JBoss Server that contains a function returning an instance of another Session Bean (this one is stateful). My problem arises because this returned object doesn't seem to keep its persistence model (the EntityManager is null). What is the right way to return from a Session Bean another Ses...

What are examples of non transactional datasources?

In JBoss documentation there is possibility to declare <no-tx-datasource> which states: no-tx-datasource : This element is used to specify the (org.jboss.resource.connectionmanager) NoTxConnectionManager service configuration. NoTxConnectionManager is a JCA connection manager with no transaction support. I'm curious what can be co...

jboss has wrong time

Seems like a dumb question but I'm confused by this and haven't been able to figure it out. My Jboss app server (4.2.2) running on my dev machine (ubuntu 810) is using the wrong time. Basically all the logs etc show the time as being 1 hour behind what it really is. My system time and zone are setup properly. I also tried using -Duser...

JBoss Application Server redeploy

Hi! I need a windows shell script which will redeploy my .ear file. I wrote one: net stop "JBAS50SVC" copy /y O:\TEMP\app.ear C:\jboss-4.2.3.GA\server\default\deploy\app.ear net start "JBAS50SVC" But the problem is that when I try to stop the JBoss service it does not fully unload itself (my suggestion), so when I start it there's no ...

Sending Email: JBoss AS-5.1 + Seam-2.2

Hello, could anybody tell me if it is possible to send email from localhost using JBoss AS-5.1 + Seam-2.2? I've tryed launching mail example which goes with Seam, but the result is unsatisfactory. Clicking the "Send Plain Text Email" button leads to the following message: Email sending failed: Could not connect to SMTP host: loca...

Remote deploy from Eclipse to JBoss AS and integration Eclipse with remote JBoss

Hi, I have following situation. My JBoss server runs on the remote server under some bound address. I would like run Eclipse on my local machine and deploy results of work to the remote server where I could test it and debug it. I'm working on enterprise Java project and I'm normally deploying one ear file. I know how to provide remote...

Communication between JBOSS AppServer and Client via multicast

Hello everyone, I am new to JBOSS. I am trying to write an mBean that will communicate from within the AS across a multicast channel using JGroups. The code I'm using in my mBean is below... public void create() throws Exception { channel=new JChannel("test/udp.xml"); channel.connect("ChatCluster"); } public void sendMsg() throws Ch...

Jboss Service / Managed Bean Question

I have a managed bean / service running inside of JBOSS. I then have a quartz job that will occasionally wake up and call a method of the managed bean. This method is sometimes long and drawn out, and since I don't want the quartz job to time out, I have implemented a thread within the managed bean to perform the processing. When the ...

jBoss Portal LDAP Admin User

Hi guys, I've configured my jBoss Portal against our AD. Everything seems to work but now I'm facing a problem: How do I determine which AD group should be admin on the portal? Cheers and regards ...

Is it possible to call in some way an EJB deployed on JBoss from a Business Service deployed on BEA AquaLogic Service Bus?

Is it possible to call in some way an EJB deployed on JBoss from a Business Service deployed on BEA AquaLogic Service Bus? Just to precise, I'm not going to call it through Web Service, but through normal EJB call. I would appreciate if anyone has a succesful experience in this matter. ...

Converting a JBOSS WAR folder to an executable JAR

I have an ANT build script that deploys a WAR folder into my JBOSS deploy directory. Can I convert that into an executable WAR/JAR file and run it as well? For example if my folder is called: MYAPP.WAR, can I generate: NEWAPP.WAR where NEWAPP.WAR is an executable file. If i just place it in the Jboss directory and start JBOSS will it pi...

SecurityFlushSessionListener in jboss

In jboss-web.deployer/conf/web.xml there is a listener defined called SecurityFlustSessionListener. This listener searches for the component java:comp/env/security/securityMgr and if not found prints that info in the debug log. It is understood that if this security feature is not needed then, one can simply remove this listener. How h...

jboss seam deployment error

I am using the JBoss Tools to deploy a seam application to a JBoss server from within eclipse. I am consistently seeing a strange behavior. Every time the .xhtml files are changed the seam application is auto-deployed as expected. However, the entity manager instance is becoming null and I am forced forced to restart the seam application...

Using Dependency Injection in POJO's to inject EJB's

Is it possible to inject ejb's into pojo's using the @EJB annotation? If it is, do I have to set up anything special on a JBoss server to make it work? Please let us not discuss the rationale behind doing this - I am just trying to hack some old code to make it work :-) ...

How to test JBoss deployment automatically?

I have jboss application. And want to test deployment automatically. And want to add this task as a project in Hudson My vision is based on the following stages: Put my application to JBoss(copy ears, configs, libs e.t.c) Run JBoss I have a Linux-machine and now our project is require JBoss 4.3.2. How can I run the JBoss and analyze...

Does JBoss run well on Windows?

It appears that we will have to build/deploy one of our new JBoss apps on Windows. All our current deployments are on Solaris so we were slightly concerned with the stability of this model. Apparently half of JBoss deployments are on Windows if this article is accurate. But I was wondering what the community had to say.. Is Windows...

How do you run Jboss 4.2.0A as a service in Windows XP Pro

I saw something once for wrappers used to do this but it asked for a licensing fee. Is there an open source way to do this? ...

How do you deploy a .war running JBoss as a Service on Windows XP?

Jboss 4.2.0A Is there a /server directory that I need to change or something? It's usually because I run ant build and it does all that fun stuff for me. seems like using the service method i have to move it manually... ? ...