websphere

Overwriting Transaction Timeout set by WebSphere?

╄→гoц情女王★ 提交于 2019-12-24 00:34:34
问题 I am currently in a project where we have a method that is called to generate a report and then return it to the client side. The whole process works something like this: [[Application]] --> [[JMS]] --> [[DB Server]] However, our WebSphere has a global setting where Transaction Timeout is set to 2 minutes, and Maximum Transaction Timeout is set to 5 minutes. This has caused us some problems because some of our reports take longer than 2 minutes, and as such, the connection is dropped at the

Spring Custom DataSource Connection with JNDI on WebSphere server

半世苍凉 提交于 2019-12-23 23:07:23
问题 I have a same requirement as specified in post to pass user id as client identifier for audit purposes. Passing ClientInfo/ClientIdentifier on syscontext/connection with Hibernate for audit purposes I have followed the same approach as mentioned in 8.2.Configuration of a Custom DataSource Connection Preparer http://docs.spring.io/spring-data/jdbc/docs/current/reference/html/orcl.connection.html Below is the piece of code which I have : @Aspect public class ClientIdentifierConnectionPreparer {

How can I determine the J2ee application server type and version?

断了今生、忘了曾经 提交于 2019-12-23 21:02:43
问题 I need to detect information about the Application Server my EJBs are running in. The System.properties contain a lot of information about Java and the Operating system, but I need to know what type of application server and if possible even the version. Is there a way to get this information in an application independent way (JMX maybe) ? Alternatively, is there a WebSphere specific way of getting this information ? 回答1: Take a look through the WAS MBeans that are available. It looks like

Stop MDB from receiving messages?

谁说我不能喝 提交于 2019-12-23 17:20:56
问题 I need to programmatically stop a Message-driven bean from receiving messages from a JMS queue. My environment is WebSphere Application Server v7. I think it could be done by some MBean operation on an Activation Specification MBean, but I can't locate the activationSpec using WebSphere's adminclient API. I've browsed the JMX tree using JConsole and also tried printing out every available MBean and searching for the name of the activationspec. It's nowhere to be found. Is this the right

Where in the world is com.ibm.ws.scripting.adminCommand.AdminTask?

元气小坏坏 提交于 2019-12-23 15:33:48
问题 Frustrated with the damn awful API provided by WebSphere Admin Server, I'm writing my own Java DSL wrapper. My jython files now simply read: from my.package import MyDSL config = MyDSL(AdminConfig, AdminTask) config.goGoGadgetSkates() # or something like that The essential part is that I send through the (#%$$!@#) god objects AdminConfig and AdminTask so that the DSL can use them to perform operations in WAS. In order to compile the DSL I need to include the class files for this two objects.

Does application server create new thread for each request from same user?

橙三吉。 提交于 2019-12-23 15:13:21
问题 Here is the simple scenario: User triggers some operation from a web page of the web application. This operation is heavy one and takes some more time. And before the operation is completed on server side, user triggers say same operation with some different parameters. so the second operation for second request will also start processing. So in this case, are there two different threads like 1st one processing first request and other for 2nd request ? or it's just one thread processing both

Blank profile name in Eclipse, Websphere Settings

匆匆过客 提交于 2019-12-23 15:07:41
问题 I am trying to add a New Server (WebSphere Application Server 7) to Eclipse (Kelper). I have just installed WebSphere Application Server 7 on the PC but have not changed any settings yet (default settings). In Eclipse, after New Server -> WebSphere Application Server Settings it shows me the following: As you can see the Profile name box is empty, with no choices in the drop down box. When I click Configure profiles... I see: At this point I am stuck. I'm guessing that I already have a

Does Websphere respect Daemon threads?

廉价感情. 提交于 2019-12-23 13:22:43
问题 I've got an app that creates a load of Daemon threads, I'd like each one to shut down when the app is shut down. I'm a little worried thought that Websphere 7 might not be shutting them all down. Does anyone know if Websphere 7 treats Daemons threads differently? (I know it should do) Note: I know what shouldn't create threads manually, and that I should probably use WebSphere WorkManager or something, but this app has to run in Tomcat and WebSphere. I know that I should tie in all threads to

deploy java war file to IBM web sphere portal

筅森魡賤 提交于 2019-12-23 06:10:51
问题 I have java war file and i want deploy into IBM web sphere portal. Kindly tell me steps to deploy java war file Many Thanks 回答1: Portal runs on top of a WAS instance - you can just use the WAS Admin console to install the WAR as you would on any standard WebSphere environment. The link to access your Admin Console is dependent on the host, the port that admin console is bound to and the version of WAS you are running - so I can't tell you what it is. On WAS7 + Portal it is typically something

Websphere 7 javax.mail.MessagingException: SSLSocketFactory is null

允我心安 提交于 2019-12-23 05:45:09
问题 I am trying to connect to mail server using SSL, running on Websphere 7. I have no problem running the code as a standalone test main method, everything goes fine. I have also no problem running the code on Websphere - connecting to mail server (example imap.seznam.cz), but when I do not use SSL. In case I want to use SSL, exception is thrown like this: javax.mail.MessagingException: SSLSocketFactory is null. This can occur if javax.net.ssl.SSLSocketFactory.getDefault() is called to create a