weblogic

From java object to xml object

Hi, I've created a web service client from a WSDL file with Axis. This webservice responses with an Axis object that I need to convert to com.bea.xml.XmlObjet. The reverse operation (XmlObject to Java Object) was easily made with Xpath (in weblogic workshop) and the setters of the object but I've been unsuccessfully trying to convert th...

Weblogic JMS.Net API Textmessage size limit

Hi All , I am trying to publish the messages from the .Net to the weblogic jms queues.I am using the weblogic .net api for this .I can successfully send the text messages but when i try to send the large messages , I am getting exception - can not marshall string larger than 32767 characters.I tested it and i can send messages with char...

Custom resource in JNDI on different application servers

Preface: Most of J2EE applications are using container managed datasources through JNDI. This is fine as it gives one place for configuring these connections. The problem arises when we want to use ORM framework (like hibernate) or something that have to know the default schema (mostly for Oracle, may be others too), which can be differe...

weblogic crash problem

there is a server ALS6_SERVER_1 under domain mydomain web module ALS6 is deployed on ALS6_SERVER_1,when user visit a jsp page,and click a button which will cause a JDBC transcation that contains many databse CRUD operations,then ALS6_Server_1 is disconnected from Admin Server and nothing useful found in log file plz help, as our system ...

Struts <bean:cookie> tag breaks on WebLogic 11gR1

I'm trying to deploy a very simple Struts app on WebLogic 11gR1. The app has one JSP called Welcome.jsp and this JSP contains the following tag : <bean:cookie name="" id=""/> The associated taglib is imported at the top of the JSP using the following line : <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> When t...

Possible effects of writing large byte arrays to an output stream?

private static void writeData( byte[] file, HttpServletResponse response ) throws IOException { .... // Send the data response.setContentLength(file.length); response.getOutputStream().write(file); } Recently, I've found in IE8 that some connections close while requesting files to download. This is the relevant piec...

Commercial JMS/MOM implementations with non-Java client support?

So far I have seen non-Java client support only for open source message brokers like Apache ActiveMQ, JBoss HornetQ and Open Message Queue (OpenMQ). Are there also closed-source products like WebSphere, WebLogic or Tibco which offer non-Java access to their MOM brokers, using a documented wire protocol (opposite to a closed-source binar...

What is the best way to log to SQL Server from Java EE

I have a web service Jax-RS running in Weblogic. I have a need to logg the calls made to the service. What is the best way to log to SQL Server from a java application? Thanks. ...

Weblogic and BOM

We have web application with static content - html files, js files, images, etc. There are byte order mark at the beginning of all html files. These files were genereted by some tool. So I cannot modify them. We deploy this application on Weblogic. When I try to access this web application via direct link to Weblogic, then I have a lot o...

Does it make sense to add more cluster nodes to an underutilized server?

Let's say I'm running a cluster with two Weblogic server nodes on two servers (Solaris, 4 CPUs, 64 GB RAM each). The heap size is maxed out on these nodes and so each server runs with 40+ GB of free memory most of the time and each server usually has on average 30% CPU utilization. Assuming that the application scales horizontally prope...

how to generate deployment descriptor using ejbGen for weblogic?

Hello there, I was reading the tutorial on this page: http://edocs.bea.com/docs/cd/E13222_01/wls/docs81/medrec_tutorials/ejbgen.html#858279 And I have the following file BankAccountEJB.java import javax.ejb.CreateException; import javax.ejb.EntityBean; import javax.ejb.EntityContext; public abstract class BankAccountEJB implements En...

How to set an HTTP error code in JAX-RS

I have a web service using jar-rs. How do I throw a custom http error code to the calling application? Thanks ...

Send to MQ from java always uses default installed mqm userid for IBM MQ version 6.0

Our code runs in weblogic and we MQ 6.0. No matter if I use the default createQueueConnection() or createQueueConnection("myuserid","mypassword") it always seems to use userid mqm. See code below. When I connect from version 6.0 to an older mq installion 5 it seems to throw the following error javax.jms.JMSSecurityException: MQJMS2013: ...

Forcing no-cache for internet explorer over HTTPS with HTTP response headers?

So, I recently found this little gem. http://support.microsoft.com/kb/323308 Essentially, IE doesn't haven't Cache-Control: no-cache properly over HTTPs, which breaks the download. However, I need to disable caching for a number of responses across my application which hit the same IO write path, which I can easily control. Is there ...

In Weblogic (10), how do I access the node name from Java?

I would like to set up some per-node configuration in a weblogic cluster and need to access the node name from Java. ...

Restricting URLs using Active Directory in Weblogic 10.3 - where to start?

Hi, We are looking to use an Active Directory server to restrict access to certain URLs in our Spring application on a Weblogic server and I have no idea where to start. The problem should be quite simple as I understand it, we have a simple app which has a number of URLs: <root>/page1.do <root>/page2.do <root>/page3.do etc. And an ...

WebLogic com.bea.xml XML validation

I am not sure if I implementing this API properly to validate an XML: XmlOptions xmlOp = new XmlOptions(); xmlOp.setDocumentSourceName("C:/Dir/SubDir/SubDir2/myfile.xsd"); assertTrue(doc.validate(xmlOp)); I want to validate the xml object doc against the schema File myfile.xsd. The assertion is passing but I wanted to make sure that i...

Is there ANY sane way to have OSGI work with WebLogic10/11 ?

I'm looking for a way to do it now. On the Oracle's road map they will be bring GlassFish and Weblogic closer together (OSGI will be there in 2012-ish). But what about now? Asking this, cause WebLogic is default standard for the company, not because I'm a fan of it. ...

WebLogic Diagnostic Framework (WLDF): Alternatives?

Hi, WLDF (WebLogic Diagnostic Framework) allows many performance-related analyses - in particular resource demands tracking and tracing across classes and methods. In that sense, it is similar to a profiler - however, it works on the server side, and is bound to the particular product/vendor. Are there any other products (maybe even o...

Weblogic application switches back to http after secure login via https

I have successfully configured SSL on Weblogic 9.2 MP3. I am able to login securely into the application using https and continue working on the application using https protocol. This is true in the case when user accesses the application giving following URL: https:/servername:7002/ If the user tries to access the above URL via HTTP i....