Urgent: Who wrote XML Transviewer Beans?

Hi,
I could do with speaking with the author of the Transviewer Bean(s) as a matter of some urgency.
If you are the author, or are able to put me in contact with the author, then please can you Email me ASAP. Thanks
[email protected]
Cheers
RT

Did you check your provider.xml?
The jsp must be placed in the directory given in <appRoot>:
<portlet
<renderer class="oracle.portal.provider.v1.RenderManager">
<appPath>&virtualRoot;multipage</appPath>
<appRoot>&physicalRoot;multipage</appRoot>
<pageParameterName>next_page</pageParameterName>
</renderer>
</portlet>

Similar Messages

  • Transviewer Beans

    Hi,
    I would to add and use XML Transviewer Beans in JDeveloper palette. Can some one tell me how to do that?
    Stefan.
    null

    Unzip transview_v1_0_2.zip and go to sample directory. Read the instructions in file readme about how to install and run the samples.
    Then, run make sample1.
    Stefan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by yigal kahane ([email protected]):
    I have downloaded your zip file transview_v1_0_2.zip
    My questions:
    1. What do I have to do to activate the sample-program that writes a CLOB to the database? (As described in your ReadMe.html file in the zip).
    2. Is it possible to search the database using a name of a specific XML node?
    3. Where can I find code sample for the previous last two questions?
    Thanks Yigal Kahane.<HR></BLOCKQUOTE>
    null

  • AXIS adapter and XML Anonymiser Bean

    Hi,
    Does XML Anonymiser Bean works with AXIS receiver adapter?
    Regards
    Pushpinder

    > @Stefan, in the receiver adapter, I had to give XML Anonymiser as the first module since it doesn't work any other way.
    you are right. I missed the point that you talk about receiver adapter.
    > Problem i still face is -  Even though the adapter log show a successfully anonymised payload, the receiving webservice still gets the namespace prefixes and throws an error. Is there a way where I can see what message is sent out of XI after anonymisation of the xml?
    Have you tested the scenario before with file adapter?
    You can check the http trace if the SOAP message is correct.
    Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway

  • Urgent,I can deploy a bean on websphere in windows;but an error occur in un

    urgent,I can deploy a bean on websphere in windows;but an error occur in unix.
    [Servlet Error]-[presentation]: Failed to load servlet: java.lang.LinkageError: LinkageError while defining class: com.s1.ccb.messaging.MessagingServlet
    Could not be defined due to: com/s1/ccb/messaging/MessagingServlet (Illegal constant pool type)
    This is often caused by having a class defined at multiple
    locations within the classloader hierarchy. Other potential causes
    include compiling against an older or newer version of the class
    that has an incompatible method signature.
    Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    the java version in unix and windows is the same.

    Hello FJasmine, no, it is not related the firefox update with that.
    see : [http://answers.microsoft.com/en-us/windows/forum/windows_7-files/cant-create-anymore-new-folders-in-windows-7/721a9129-c800-4224-8779-805dd6dfb80e Can't create anymore New Folders in Windows 7]
    [http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/97de8a2a-12f2-4381-a409-a78f4ae551cf/ Cannot create new folder in Windows 7]
    thank you

  • Urgent - can't set managed bean value using a form, getting null

    I have a form with a bean -- unbelievably, I can't get the values entered into the form by the user to get stored into the bean. Everything is null... I've looked at a zillion examples, posts and compared etc...yet still can't see what is missing.
    Here's part of a trace :
    [cc]Dec-31 01:25:02 ApplicationImpl - Created bean resourceBean successfully
    [cc]Dec-31 01:25:02 ApplicationImpl - Storing resourceBean in scope request
    [cc]Dec-31 01:25:02 VariableResolverImpl - resolveVariable: Resolved variable:id=null name=null
    [cc]Dec-31 01:25:02 ValueBindingImpl - getValue Result:id=null name=null
    [cc]Dec-31 01:25:02 ValueBindingImpl - -->Returning id=null name=null
    If you have any ideas, please let me know--it seems just as I solve one JSF issue, I run into another on unexpectedly simple things.
    Here's the ResourceBean.java, the bean-config.xml and my jsp.
    package com.intalio.qa.tcm.view.beans;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.faces.model.SelectItem;
    import org.apache.log4j.Logger;
    import com.intalio.qa.exceptions.DuplicateIdException;
    import com.intalio.qa.tcm.model.Resource;
    import com.intalio.qa.tcm.view.builders.ResourceBuilder;
    import com.intalio.qa.tcm.view.util.FacesUtils;
    * Resource backing bean.
    public class ResourceBean extends RootBean {
         * Class logger
         public static final Logger LOG =
              Logger.getLogger(ResourceBean.class);
    * The Resource id
         private String id = null;
         * The Resource name
         private String name = null;
    * Description
    private String description= null;
         * the resource type id associated with the Resource
         private String resourceTypeId= null;
         private static SelectItem[] resourceTypeIds = new SelectItem[] {
              new SelectItem("External Software"),
              new SelectItem("Hardware"),
              new SelectItem("Intalio Product Software"),
              new SelectItem("Machine - Dual CPU"),
              new SelectItem("Machine - CPU Single"),
              new SelectItem("Memory - UNIX"),
              new SelectItem("Memory - Windows") };
    * @return Returns the resourceTypeIds.
    public SelectItem[] getResourceTypeIds() {
    return resourceTypeIds;
    * @param resourceTypeIds The resourceTypeIds to set.
    public void setResourceTypeIds(SelectItem[] typeIds) {
    resourceTypeIds = typeIds;
         * Default constructor.
         public ResourceBean() {
    super();
    init();
         * Initializes ResourceBean.
         * @see RootBean#init()
         protected void init() {
         /*True, but I'd strongly recommend instead using:
    FacesContext fContext = FacesContext.getCurrentInstance();
    Map requestParams = fContext.getExternalContext().getRequestParameterMap();
    String companyId = (String) requestParams.get("companyID");
    The getRequest(), getSession(), and getContext() methods of ExternalContext should only be used as a last resort.*/
         * Backing bean action to update Resource.
         * @return the navigation result
         public String updateAction() {
              LOG.info("updateAction is invoked");
              try {
                   Resource Resource = ResourceBuilder.createResource(this);
                   LOG.info("ResourceId = " + Resource.getId());
              //     viewServicesManager.getResourceService().updateResource(Resource);
              } catch (Exception e) {
                   String msg = "Could not update Resource";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(msg + ": Internal Error.");
                   return ActionResult.FAILURE;
              LOG.info("Resource with id of " + id + " was updated successfully.");
              return ActionResult.SUCCESS;
         * Backing bean action to create a new Resource.
         * @return the navigation result
         public String addAction() {
              try {
                   Resource resource = ResourceBuilder.createResource(this);
    LOG.info("resource created: " + resource.getName() + " with typeId = " + resource.getResourceTypeId());
                   viewServicesManager.getResourceService().saveResource(resource);
              } catch (DuplicateIdException de) {
                   String msg = "This id already exists";
                   LOG.info(msg);
                   FacesUtils.addErrorMessage(msg);
                   return ActionResult.RETRY;
              } catch (Exception e) {
                   String msg = "Could not save Resource";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(msg + ": Internal Error");
                   return ActionResult.FAILURE;
              String msg = "Resource with id of " + id + " was created successfully.";
              LOG.info(msg);
              return ActionResult.SUCCESS;
         * Backing bean action to delete Resource.
         * @return the navigation result
         public String deleteAction() {
              LOG.info("deleteAction is invoked");
              try {
         //          Resource Resource = ResourceBuilder.createResource(this);
         //          viewServicesManager.getResourceService().deleteResource(Resource);
                   //remove the ResourceList inside the cache
    //               FacesUtils.resetManagedBean(BeanNames.RESOURCE_LIST_BEAN);
              } catch (Exception e) {
                   String msg = "Could not delete Resource. ";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(null, msg + "Internal Error.");
                   return ActionResult.FAILURE;
              String msg = "Resource with id of " + id + " was deleted successfully.";
              LOG.info(msg);
              FacesUtils.addInfoMessage(msg);
              return ActionResult.SUCCESS;
         public String getId() {
              return id;
         * Invoked by the JSF managed bean facility.
         * <p>
         * The id is from the request parameter.
         * If the id is not null, by using the id as the key,
         * the Resource bean is initialized.
         * @param newQueryId the query id from request parameter
         public void setId(String newId) {
              LOG.info("setId " + newId);
              id = newId;
         public String getName() {
              return name;
         public void setName(String newName) {
              name = newName;
         public String getDescription() {
              return description;
         public void setDescription(String newDescription) {
              description = newDescription;
         public String getResourceTypeId() {
              return resourceTypeId;
         public void setResourceTypeId(String newResourceTypeId) {
              resourceTypeId = newResourceTypeId;
         public String toString() {
              return "id=" + id + " name=" + name;
         <!-- view -->
         <managed-bean>
              <description>
                   Managed bean
              </description>
              <managed-bean-name>applicationBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ApplicationBean
              </managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
              <managed-property>
                   <property-name>viewServicesManager</property-name>
                   <value>#{viewServicesManagerBean}</value>
              </managed-property>
              </managed-bean>
         <managed-bean>
              <description>
                   View service manager impl for business services
              </description>
              <managed-bean-name>viewServicesManagerBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ViewServicesManagerBean</managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <description>
                   Backing bean that contains product information.
              </description>
              <managed-bean-name>resourceBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ResourceBean
              </managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>viewServicesManager</property-name>
                   <value>#{viewServicesManagerBean}</value>
              </managed-property>
         </managed-bean>
    </faces-config>
    <f:view>
         <h:form id="createResourceForm" target="dataFrame">
              <h:outputText value="#{applicationBean.dummyVariable}" rendered="true" />
              <div align="center">
              <head>
              <link href="../../css/stylesheet.css" rel="stylesheet" type="text/css">
              <FONT color="#191970" size="4" face="Arial">Resources View</FONT>
              </head>
              <table style="margin-top: 2%" width="35%" cellpadding="10">
                   <div align="left">
                   <FONT color="#191970" size="3" face="Arial">Update Resources </FONT>
                   </div>
                   <tr>
                        <td align="center" valign="top" align="center" style="" bgcolor="white" />
                        <table>
                             <tbody>
                                  <tr>
                                       <td align="left" styleClass="header" width="100" />
                                       <td align="left" width="450" />
                                  </tr>
                                  <tr>
                                       <td align="right" width="100"><h:outputText value="Id" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.id}" id="id"/> <h:message for="id" styleClass="errorMessage" /></td>
                                  </tr>
                                  <tr>
                                       <td align="right" width="100"><h:outputText value="Name" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.name}" id="name" /> <h:message for="name" styleClass="errorMessage" /></td>
                                  </tr>
                                  <tr>
                                       <!--td align="right" width="100" valign="bottom"><h:outputText value="Type" /></td>
                                       <td align="left" width="550"><h:selectOneMenu>
                                            <f:selectItems value="#{resourceBean.resourceTypeIds}" />
                                       </h:selectOneMenu> <h:outputText value="#{resourceBean.resourceTypeId}" id="dresourceTypeId" /> <h:message for="resourceTypeId" styleClass="errorMessage" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td align="right" width="100" valign="bottom"><h:outputText value="Description" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.description}" id="description" size="96" /> <h:message for="description" styleClass="errorMessage" /></td>
                                  </tr>
                             </tbody>
                        </table>
         </h:form>
         </td>
         <!-- END DATA FORM -->
         <!-- BEGIN COMMANDS -->
         <td width="30%" align="left" valign="top"><h:form id="buttonCommandsForm">
              <h:panelGroup id="buttons">
                   <h:panelGrid columns="1" cellspacing="1" cellpadding="2" border="0" bgcolor="white">
                        <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
                        </h:commandButton>
                        <h:commandButton id="deleteCB" value="Delete" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.deleteAction}">
                        </h:commandButton>
                        <h:commandButton id="spaceFillerButton" style="height:21px; width:51px;font-size:8pt;background-color: #ffffff;color: #ffffff;border: 0px;">
                        </h:commandButton>
                        <h:commandButton id="saveCB" value="Save" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.saveAction}">
                        </h:commandButton>
                        <h:commandButton id="updateCB" value="Update" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.updateAction}">
                        </h:commandButton>
                   </h:panelGrid>
              </h:panelGroup>
         </h:form> <!-- end buttons --></td>
         </tr>
         </table>
         <HR align="center" size="2" width="60%" />
         <!-- data table -->
         </div>
    </f:view>
    THANKS.
    -L

    I solved this.
    Since I was testing the action code only, I didn't define a navigation entry corresponding to the action string returned for this button:
    <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
    </h:commandButton>After I added a nav definition, it worked. I don't know why at this point. I suspect a key step in the lifecycle was pre-empted...someone else can probably explain why. If I get a chance to research it after I'm done with my project, I'll update this post.
    Thanks.
    -L

  • Urgent: Can't lookup entity bean

    Dear all,
    I define a business process in workflow engine, which invoke a java class to get
    DB data through CMP entity bean. The entity bean was packed in to a ear and was
    workable/callable within the same ear.
    However, when the workflow engine can't invoke the entity bean, the workflow engine
    always throw exception as following.
         javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException:
    Unable to resolve 'app/ejb/ConsignmentEntityBean.jar#Consignments/local-home'
    Resolved: 'app/ejb' Unresolved:'ConsignmentEntityBean.jar#Consignments' ; remaining
    name 'ConsignmentEntityBean.jar#Consignments/local-home'
    I think the problem may occur in deployment/configuration. Since the problem is
    very urgent, anyone can help me? To all developers, How do you package/deploy
    Entity Bean in Integration Server?
    Thx,
    Philip

    I solved this.
    Since I was testing the action code only, I didn't define a navigation entry corresponding to the action string returned for this button:
    <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
    </h:commandButton>After I added a nav definition, it worked. I don't know why at this point. I suspect a key step in the lifecycle was pre-empted...someone else can probably explain why. If I get a chance to research it after I'm done with my project, I'll update this post.
    Thanks.
    -L

  • When I hit reply to an email, a name of someone OTHER than the person who wrote me is already in the to: line.

    So an email arrives and I read it. I want to reply so I click on reply or reply all. When the reply opens, a name is already in the to: line but it isn't the person/persons who sent me the message and to whom I want to reply. I have to delete the name/s and re-enter the correct one/s. It is usually the name of the last person I wrote to before this particular email arrived.
    This does not seem to happen when I use Internet Explorer so I'm thinking its a Firefox issue.

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Urgent helpppp needed  - mesage driven beans

    hi there
    am a beginner at ejb...have just started yesterday....
    what i did was i read the basics of MDB and tried to run an example...but m stuck sumwhere n tried a lot but unsuccessful...
    i am using jboss to deploy...
    i am wrting a basic mdb where they have written a servlet to send message and MessageBean with the onMessage method.
    i have also written the jboss.xml, web.xml, ejb-jar.xml, jboss-web.xml descriptors.
    i am not understanding the flow on control hence maybe i am going wrong in the descriptors...
    When i run the application i get a error message of jms not bound.
    javax.naming.NameNotFoundException: jms not bound
    Servlet:
    public class MessageServlet extends GenericServlet {
    static protected final Logger log =
    Logger.getLogger(MessageServlet.class.getName());
         Queue _queue;
         ConnectionFactory _factory;
    public void init()
    throws ServletException
    super.init();
    // look up the objects.
    try {
         // "java:comp/env" :- To avoid collisions with names of other enterprise resources in the JNDI namespace, and to avoid portability problems, all names in a J2EE application should begin with the string java:comp/env.
         //Context env = (Context) new InitialContext().lookup("java:comp/env");
         Context context = (Context) new InitialContext();
         System.out.println("1");
         //_factory = (ConnectionFactory) context.lookup("java:comp/env/jms/queue-connection-factory");
         _factory = (ConnectionFactory) context.lookup("java:comp/env/QueueConnectionFactory");
         if (_factory == null)
    throw new ServletException("`java:comp/env/jms/queue-connection-factory' lookup failed");
         System.out.println("2");
         //_queue = (Queue) context.lookup("java:comp/env/jms/queue");
         _queue = (Queue) context.lookup("java:comp/env/queue");
         if (_queue == null)
    throw new ServletException("`java:comp/env/jms/queue' lookup failed");
         } catch (NamingException ex) {
    throw new ServletException(ex);
    public void service(ServletRequest request, ServletResponse response)
    throws ServletException, IOException
    int count = 5;
    try {
    Connection connection = _factory.createConnection();
    int ackMode = Session.AUTO_ACKNOWLEDGE;
    Session jmsSession = connection.createSession(false, ackMode);
    MessageProducer producer = jmsSession.createProducer(_queue);
    for (int i = 1; i <= count; i++) {
    String text = "hello, world: message #" + String.valueOf(i);
    sendMessage(jmsSession,producer,text);
    } catch (JMSException ex) {
    throw new ServletException(ex);
    PrintWriter out = response.getWriter();
    out.print("Sent " + String.valueOf(count) + " messages.");
    protected void sendMessage(Session jmsSession,
                   MessageProducer producer,
                   String text)
    throws JMSException
    // create the message
    Message message = jmsSession.createTextMessage(text);
    // send the message
    producer.send(message);
    log.info("Sent message: " + text);
    ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <description>assignment 3</description>
    <display-name>assignment 3</display-name>
    <enterprise-beans>
    <!-- Message Driven Beans -->
    <message-driven >
    <description>Bean to access messages</description>
    <display-name>MessageBean</display-name>
    <ejb-name>MessageBean</ejb-name>
    <ejb-class>src.MessageBean</ejb-class>
         <destination>jms/queue</destination>
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
         <resource-ref>
              <res-ref-name>jms/queue-connection-factory</res-ref-name>
              <res-type>javax.jms.QueueConnectionFactory</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    </assembly-descriptor>
    </ejb-jar>
    jboss.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
    <jboss>
    <enterprise-beans>
         <message-driven>
    <ejb-name>MessageBean</ejb-name>
    <destination-jndi-name>queue/ex</destination-jndi-name>
         <resource-ref>
              <res-ref-name>jms/queue-connection-factory</res-ref-name>
              <jndi-name>QueueConnectionFactory</jndi-name>
         </resource-ref>
    </message-driven>
    </enterprise-beans>
    <resource-managers>
    </resource-managers>
    </jboss>
    web.xml:
    <web-app >
    <log name="example" level="fine" path="WEB-INF/debug.log" timestamp="[%M:%S.%s] "
    format="${log.loggerName} ${log.message}"/>
    <!--
    - JMS
    -->
    <resource jndi-name="queue-connection-factory"
    type="javax.jms.ConnectionFactory"/>
    <resource jndi-name="queue/ex"
    type="javax.jms.Queue"/>
    <!--
    - EJB SERVER
    - see also message.ejb
    -->
    <ejb-server config-directory="WEB-INF">
    <jms-connection-factory>jms/queue-connection-factory</jms-connection-factory>
    </ejb-server>
    <!--
    - CLIENT
    -->
    <!-- a simple message sender servlet for demonstration purposes -->
    <servlet>
    <servlet-name>MDBServlet</servlet-name>
    <servlet-class>src.MessageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <url-pattern>/mdb</url-pattern>
    <servlet-name>MDBServlet</servlet-name>
    </servlet-mapping>
    <welcome-file-list>
              <welcome-file>/MDBExample.html</welcome-file>
         </welcome-file-list>     
    </web-app>
    MessageBean.java
    package src;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.ejb.EJBException;
    import javax.ejb.MessageDrivenBean;
    import javax.ejb.MessageDrivenContext;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.TextMessage;
    public class MessageBean implements MessageDrivenBean, MessageListener {
    static protected final Logger log =
    Logger.getLogger(MessageBean.class.getName());
    public void ejbCreate()
    throws EJBException
    log.fine("ejbCreate()");
    public void setMessageDrivenContext(MessageDrivenContext cxt)
    throws EJBException
    log.fine("setMessageDrivenContext()");
    public void onMessage(Message msg)
    // process the message
    String text = null;
    if (msg instanceof TextMessage) {
    try {
    text = ((TextMessage) msg).getText();
    } catch (Exception ex) {
    log.log(Level.WARNING,null,ex);
    else {
    text = msg.toString();
    log.fine("onMessage(): " + text);
    public void ejbRemove()
    throws EJBException
    log.fine("ejbRemove()");
    Please help me out n pardon if its a stupid mistake as m just a beginner trying to learn this on my own.
    thanx a lot
    Message was edited by:
    sonali-amonkar

    hi there
    am a beginner at ejb...have just started yesterday....
    what i did was i read the basics of MDB and tried to run an example...but m stuck sumwhere n tried a lot but unsuccessful...
    i am using jboss to deploy...
    i am wrting a basic mdb where they have written a servlet to send message and MessageBean with the onMessage method.
    i have also written the jboss.xml, web.xml, ejb-jar.xml, jboss-web.xml descriptors.
    i am not understanding the flow on control hence maybe i am going wrong in the descriptors...
    When i run the application i get a error message of jms not bound.
    javax.naming.NameNotFoundException: jms not bound
    Servlet:
    public class MessageServlet extends GenericServlet {
    static protected final Logger log =
    Logger.getLogger(MessageServlet.class.getName());
         Queue _queue;
         ConnectionFactory _factory;
    public void init()
    throws ServletException
    super.init();
    // look up the objects.
    try {
         // "java:comp/env" :- To avoid collisions with names of other enterprise resources in the JNDI namespace, and to avoid portability problems, all names in a J2EE application should begin with the string java:comp/env.
         //Context env = (Context) new InitialContext().lookup("java:comp/env");
         Context context = (Context) new InitialContext();
         System.out.println("1");
         //_factory = (ConnectionFactory) context.lookup("java:comp/env/jms/queue-connection-factory");
         _factory = (ConnectionFactory) context.lookup("java:comp/env/QueueConnectionFactory");
         if (_factory == null)
    throw new ServletException("`java:comp/env/jms/queue-connection-factory' lookup failed");
         System.out.println("2");
         //_queue = (Queue) context.lookup("java:comp/env/jms/queue");
         _queue = (Queue) context.lookup("java:comp/env/queue");
         if (_queue == null)
    throw new ServletException("`java:comp/env/jms/queue' lookup failed");
         } catch (NamingException ex) {
    throw new ServletException(ex);
    public void service(ServletRequest request, ServletResponse response)
    throws ServletException, IOException
    int count = 5;
    try {
    Connection connection = _factory.createConnection();
    int ackMode = Session.AUTO_ACKNOWLEDGE;
    Session jmsSession = connection.createSession(false, ackMode);
    MessageProducer producer = jmsSession.createProducer(_queue);
    for (int i = 1; i <= count; i++) {
    String text = "hello, world: message #" + String.valueOf(i);
    sendMessage(jmsSession,producer,text);
    } catch (JMSException ex) {
    throw new ServletException(ex);
    PrintWriter out = response.getWriter();
    out.print("Sent " + String.valueOf(count) + " messages.");
    protected void sendMessage(Session jmsSession,
                   MessageProducer producer,
                   String text)
    throws JMSException
    // create the message
    Message message = jmsSession.createTextMessage(text);
    // send the message
    producer.send(message);
    log.info("Sent message: " + text);
    ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <description>assignment 3</description>
    <display-name>assignment 3</display-name>
    <enterprise-beans>
    <!-- Message Driven Beans -->
    <message-driven >
    <description>Bean to access messages</description>
    <display-name>MessageBean</display-name>
    <ejb-name>MessageBean</ejb-name>
    <ejb-class>src.MessageBean</ejb-class>
         <destination>jms/queue</destination>
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
         <resource-ref>
              <res-ref-name>jms/queue-connection-factory</res-ref-name>
              <res-type>javax.jms.QueueConnectionFactory</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    </assembly-descriptor>
    </ejb-jar>
    jboss.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
    <jboss>
    <enterprise-beans>
         <message-driven>
    <ejb-name>MessageBean</ejb-name>
    <destination-jndi-name>queue/ex</destination-jndi-name>
         <resource-ref>
              <res-ref-name>jms/queue-connection-factory</res-ref-name>
              <jndi-name>QueueConnectionFactory</jndi-name>
         </resource-ref>
    </message-driven>
    </enterprise-beans>
    <resource-managers>
    </resource-managers>
    </jboss>
    web.xml:
    <web-app >
    <log name="example" level="fine" path="WEB-INF/debug.log" timestamp="[%M:%S.%s] "
    format="${log.loggerName} ${log.message}"/>
    <!--
    - JMS
    -->
    <resource jndi-name="queue-connection-factory"
    type="javax.jms.ConnectionFactory"/>
    <resource jndi-name="queue/ex"
    type="javax.jms.Queue"/>
    <!--
    - EJB SERVER
    - see also message.ejb
    -->
    <ejb-server config-directory="WEB-INF">
    <jms-connection-factory>jms/queue-connection-factory</jms-connection-factory>
    </ejb-server>
    <!--
    - CLIENT
    -->
    <!-- a simple message sender servlet for demonstration purposes -->
    <servlet>
    <servlet-name>MDBServlet</servlet-name>
    <servlet-class>src.MessageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <url-pattern>/mdb</url-pattern>
    <servlet-name>MDBServlet</servlet-name>
    </servlet-mapping>
    <welcome-file-list>
              <welcome-file>/MDBExample.html</welcome-file>
         </welcome-file-list>     
    </web-app>
    MessageBean.java
    package src;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.ejb.EJBException;
    import javax.ejb.MessageDrivenBean;
    import javax.ejb.MessageDrivenContext;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.TextMessage;
    public class MessageBean implements MessageDrivenBean, MessageListener {
    static protected final Logger log =
    Logger.getLogger(MessageBean.class.getName());
    public void ejbCreate()
    throws EJBException
    log.fine("ejbCreate()");
    public void setMessageDrivenContext(MessageDrivenContext cxt)
    throws EJBException
    log.fine("setMessageDrivenContext()");
    public void onMessage(Message msg)
    // process the message
    String text = null;
    if (msg instanceof TextMessage) {
    try {
    text = ((TextMessage) msg).getText();
    } catch (Exception ex) {
    log.log(Level.WARNING,null,ex);
    else {
    text = msg.toString();
    log.fine("onMessage(): " + text);
    public void ejbRemove()
    throws EJBException
    log.fine("ejbRemove()");
    Please help me out n pardon if its a stupid mistake as m just a beginner trying to learn this on my own.
    thanx a lot
    Message was edited by:
    sonali-amonkar

  • URGENT***How to chance ADF bean properties at runtime?

    Hi Friends,
    Please help me to get some sample java code to create the ADF UI bean object at runtime.
    As per my requirement in my ADF screen (.jspx) I got 3 input text fields, where last fields 2 are disabled while loading the page. When I enter some value in the first textbox and tab out , the second one should be automatically enabled without any button click. Please help me how to achieve the same. How can I set my UI bean properties at runtime (Please share the code to get the UI object)? And how can I able to handle / know where the first text box has value or not.
    This is very urgent requirement. Please help me .
    Thanks
    klogube

    Hi,
    Thanks for helping me. But so far no luck with the 3rd row enabled. Below is my code. As per my real requirement each row should have 2 columns. (col 1: choice box and col2: free textbox).
    Can able to make enable the 2nd row's columns. But the last row not getting enabled. Seems the 2nd row textbox (password) value not getting populated in the managed bean. When I print the value it is showing null. (But if I totally remove the first row and enable the 2nd row then test the same. In this case 3rd row getting enabled.). So worried that after enable the 2rd row by EL, it is not passing the entered value to bean it seems.
    </p>
    <af:panelGroupLayout id="pone">
    <af:selectOneChoice label="username choice" value="#{SearchBean.choiceone}">
    <af:selectItem label="First Name" value="firstname"/>
    <af:selectItem label="Last Name" value="lastname"/>
    </af:selectOneChoice>
    <af:inputText id="username" value="#{SearchBean.username}" autoSubmit="true" />
    </af:panelGroupLayout>
    </p>
    <p>
    <af:panelGroupLayout id="ptwo">
    <af:selectOneChoice label="password choice" disabled = "#{empty SearchBean.username}" partialTriggers="username" value="#{SearchBean.choicetwo}">
    <af:selectItem label="First Name" value="firstname"/>
    <af:selectItem label="Last Name" value="lastname"/>
    </af:selectOneChoice>
    <af:inputText id="password" value="#{SearchBean.password}" partialTriggers="username" disabled = "#{empty SearchBean.username}" autoSubmit="true"/>
    </af:panelGroupLayout>
    </p>
    <p>
    <af:panelGroupLayout id="pthree">
    <af:selectOneChoice label="email choice" disabled = "#{empty SearchBean.password or empty SearchBean.username}" partialTriggers="password username" value="#{SearchBean.choicethree}">
    <af:selectItem label="First Name" value="firstname"/>
    <af:selectItem label="Last Name" value="lastname"/>
    </af:selectOneChoice>
    <af:inputText id="email" value="#{SearchBean.email}" disabled = "#{empty SearchBean.password or empty SearchBean.username}" partialTriggers="password username" />
    </af:panelGroupLayout>
    </p>

  • Link to Who-is-who from XML Form item

    How can I make a link from a user name to the user details of the who is who from a XML Form item? I see this functionality automatically in KM collection renderers but in the XML Form Builder I only see the option to link to the e-mail (Display name as E-mail link).
    Thanks in advance.
    Best regards,
    Eric

    Eric,
    adding a link to user details in a XMLForm item is not possible at the moment.
    But this a reasonable request and maybe we can add this feature in one of the next SPs or release.
    Regards, Roland

  • Who wrote java.lang.Object

    The biggest mystery for me in Java still exists as to who really coded the mother of all classes java.lang.Object.
    Here?s what the source of it says in JavaDocs
    * Class <code>Object</code> is the root of the class hierarchy.
    * Every class has <code>Object</code> as a superclass. All objects,
    * including arrays, implement the methods of this class.
    * @author unascribed
    * @version 1.61, 01/23/03
    * @see java.lang.Class
    * @since JDK1.0
    public class Object {
    See the annotation @author above, it says ?unascribed? which means unknown. Any one who can solve this mystery for me and come up with the real author of this jni implementation class called ?Object?
    I mean the first one to write java.lang.Object. Please help me...

    karthik.jm wrote:
    But atleast some reference is required that he / his team wrote it. First Hot Java VM was released by Games Josling & team.Sorry, I honestly don't see why you insist you need this. Sure, it's nice to satisfy a bit of curiosity, but since the information is quite deliberately not present in the publicly available source code, it's pretty safe to assume it's not available anywhere else. You seem to have gone from "I'd like to know" to "I demand someone tells me", and I'm unsure why. Or maybe I'm just reading you wrong, in which case, I apologise. But I don't think you're going to get an answer, and it really doesn't matter

  • URGENT - Posting a XML file to a listener URL

    Hi all,
    I have a situation like this: A servlet Client should post a XML file
    to a listener URL, and the listener responds back with a XML file
    after the processing the posted XML file.
    1. Before posting, the servlet client should establish a session with
    the server on which the listener URL is sitting and the Server will
    return a cookie with the authentication credentials to the servlet
    client.
    2. That cookie should be added to the HTTPResponse and then the
    posting of the file should happen.
    The first part is happening okay ..and i could add that cookie to the
    HTTPresponse.
    Now, did anyone successfully post a XML file to a listener URL like this from a servlet?
    I tried using URLConnection, but my cookie got lost and i got back a 401 error. The key there is i should use the same HTTPrequest and HTTPresponse objects, as the cokie needs to be retained!
    Any example code please!!
    thanks a lot
    Rox

    Thanks for your response, but i dont think using authenticator would work. To tell you exactly what is happening there, the url to which the sevlet posts the XML file is protected by Siteminder ( a Enterprise securty platform) and all it requires is a cookie with authenticated credentials on the httprequest/httpresponse objects which are trying to post to that URL. If it find the cookie with the credentials, then the requestor will not be challenged for credentials.
    Here is what i am doing:
    String urlString = "http://webservicesURL.com/ws";
    Cookie SMSESSION = setSMSession();
              if(SMSESSION != null)
                   response.addCookie(SMSESSION);     
              System.out.println("\n..Cookie confirmation..\n"+SMSESSION.getName()+" : "+SMSESSION.getValue());
    URL u = new URL(urlString);
              URLConnection conn = u.openConnection();
              conn.setDoOutput(true);
              conn.setDoInput(true);
              conn.setRequestProperty(SMSESSION.getName(),SMSESSION.getValue());
              OutputStream out = conn.getOutputStream();
    BufferedReader in = new BufferedReader(new FileReader(file));
              while((s = in.readLine())!= null)
                   xml_line = xml_line+s;
              writer.println("The XML file is ..\n");
              writer.println(xml_line);
              writer.println("\n\n\n");
              out.write(xml_line.getBytes());
              InputStream ins = conn.getInputStream();
    when i execute the servlet, i get a tomcat error 401 on the last line above.
    So the new URLConnection that is being opened, is not carying the credentials with it, or the siteminder is unable to read the credentails from the URLConnection. But i am positive that it can read the credentials from the cookie from the HttpResponse object.
    Do you have any more ideas, please?
    thanks

  • URGENT:Sorting in XML Publisher

    Hi,
    i am trying to get the section data into a variable using the below.
    <?variable@incontect:hg;xdoxslt:distinct_values(/SAS_DATA/LIST_WEEKLY/WEEKLY/TYPE)?> , can i do something here so that i get the TYPE values in the SORT ascending.below is the sample data.
    <SAS_DATA>
    <LIST_WEEKLY>
    <WEEKLY>
    <BUS_GRP>FBC</BUS_GRP>
    <BUS_GRP_SO>1</BUS_GRP_SO>
    <MNGD_FLAG>Fidelity Managed</MNGD_FLAG>
    <DISC_DSC>Long-Term</DISC_DSC>
    <TYPE>Bond</TYPE>
    <SORT_ORDER>2</SORT_ORDER>
    <FLOWS>44.83</FLOWS>
    </WEEKLY>
    </LIST_WEEKLY>
    </SAS_DATA>
    Thanks in advance

    You can't upload the template here; you can post a part of the relevant XML code and template code here.
    or send me a sample XML and RTF template to [email protected] and I will take a look.

  • Urgent Help in XML Spy

    Hi All,
    I am designing a schema using XML Spy tool. I need node elements like "Contact Person",
    "Other Information" etc. - which have a blank space between the words forming the element name. The XML Spy tool is not allowing a blank in between the words forming the element name. The blank is mandatory as the node names are being built after reading them from a text file which has a blank in between the words forming the element name.
    Please advice how to solve this problem..
    Thanks in advance..
    Nilotpal

    Element names cannot contain spaces. That is a rule of XML. How to solve the problem? Well, you have to follow the rules of XML, so it should be fairly obvious: Don't use spaces in element names. Replace the spaces by some other character that makes the names valid.

  • Urgent Help on XML

    Hi all,
    I am new to XML. I have a text variable say for example:
    v_doc_text :=
    '<emp>
    <empno no="3">1</empno>
    <fname>robert</fname>
    <lname>smith</lname>
    <sal>1000</sal>
    <job>engineer</job>
    </emp>';
    I want to load this xml data into table or pl/sql variables.
    Please help me how to do it or please give me an example.
    I appreciate the help.

    Hi
    There are many ways to do it... here just the simpler example I can think on...
    SQL&gt; create table xmltab of xmltype;
    Table created.
    SQL&gt; declare
    2 v_doc_text varchar2(4000);
    3 begin
    4 v_doc_text :=
    5 '&lt;emp&gt;
    6 &lt;empno no="3"&gt;1&lt;/empno&gt;
    7 &lt;fname&gt;robert&lt;/fname&gt;
    8 &lt;lname&gt;smith&lt;/lname&gt;
    9 &lt;sal&gt;1000&lt;/sal&gt;
    10 &lt;job&gt;engineer&lt;/job&gt;
    11 &lt;/emp&gt;';
    12 insert into xmltab values (xmltype(v_doc_text));
    13 end;
    14 /
    PL/SQL procedure successfully completed.
    SQL&gt; select * from xmltab;
    SYS_NC_ROWINFO$
    &lt;emp&gt;
    &lt;empno no="3"&gt;1&lt;/empno&gt;
    &lt;fname&gt;robert&lt;/fname&gt;
    &lt;lname&gt;smith&lt;/lname&gt;
    &lt;sal&gt;1000&lt;/sal&gt;
    &lt;job&gt;engineer&lt;/job&gt;
    &lt;/emp&gt;
    Chris

Maybe you are looking for

  • XFX 5770 causing problems at start-up (I think)

    In order to purchase and use Final Cut Pro X, I purchased from MacMall the XFX 5770 HD video card and installed it in my machine. I trusted that, because it was coming from MacMall and because I'd read that the graphics update brought greater compati

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All, I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDO

  • Syncing iPhone 3 with old op software to more than 1 computer

    My husband has an iPhone 3GS and it is currently synced to an old Mac. He can no longer update his phone op software because his Mac is too old. I want to sync his phone to my Windows computer running windows 7 so I can update his phone. Can I do thi

  • IMac 2.4GHz (MA877LL) refuses to boot with 4GB ram, boots only with 3 GB

    iMac 2.4GHz Core 2 Duo 20" Anodized Aluminum (MA877LL) iMac 2.4GHz (MA877LL) refuses to boot with 4GB ram, boots only with 3 GB 2 x2GB Geil GX2S6400-4GDCA Computer refuses to boot with both chips installed 4 GB. Computer will boot and recognize 3 GB.

  • CSS Problem - Background repeat & Max/Min Width

    I have the problem at lower resolutions that the content div sticks out of the main document. Or in fact, the content isnt sticking out, its the background repeat that is in the right of the screen thats pushed into the doc. And also the background r