JMS Objects in ObjectMessage is reference or copy? (WL 7.0)
Hello All,
I need to pass the of the message processing application specific status back
to the client. I would not prefer to use the db for this status communication.
Is thre any other way? I was thinking of using some objects provided JMS (wl 7.0)
passes the objects by reference. Let me know if there are any other ways to pass
the status back to the clients.
Can message ackowledge can be made use of, in anyway?
Your help is appreciated.
Santhosh.
Hi Santhosh!
Object messages are pass by value of necessity, as the JMS contract
is that they must remain unchanged. (Things would get pretty
tricky if they could not be.) But wait! This
does not preclude passing an RMI reference to a
remote object in an JMS object message. The
distinction is that the RMI reference remains unchanged, so
the message itself is unchanged. This ability is not standard
JMS, and will not likely work with other JMS vendors.
If you want to pass a reference in a J2EE standard way, the EJB spec
provides the concept of serializable "handles"...
Tom, BEA
Santhosh Kumar wrote:
> Hello All,
>
> I need to pass the of the message processing application specific status back
> to the client. I would not prefer to use the db for this status communication.
> Is thre any other way? I was thinking of using some objects provided JMS (wl 7.0)
> passes the objects by reference. Let me know if there are any other ways to pass
> the status back to the clients.
>
> Can message ackowledge can be made use of, in anyway?
>
> Your help is appreciated.
>
> Santhosh.
Similar Messages
-
JCS operation arguments, pass by reference or copy?
Can I assume that objects passed from JPF into JCS, or between JCS arguments are passed by reference?
[email protected] (replace MASK with '_')I'm asking this because the JCS may be in its own project independent of the web project, I wonder if it will still be pass by reference vs copy.
If it is pass by copy, I'll need to return beans passed into JCS operations as follows:
formBean = myControl.actionA(formBean);
[email protected] (replace MASK with '_') -
Binding a Referenceable object vs Binding a reference
What is the difference between binding a Referenceable object and binding a Reference directly.
Hi gurpreetbhalla,
You'll find an answer on this [*page*|http://java.sun.com/products/jndi/tutorial/objects/storing/reference.html] . -
Runtime binding of JMS object(Queue, COnnection Factory)
I want to knwo whether runtime binding the JMS Objects(Connection Factory & Destinations)
is possible in WebLogic server?
According to Weblogic it only binds JMS Object at the startup of the server using
a Startup class?
Thanks a millionDestinations can be created dynamically.
check:
http://edocs.bea.com/wls/docs61/jms/implement.html#1189112
viswa
"Rakesh Jaiswal" <[email protected]> wrote:
>
I want to knwo whether runtime binding the JMS Objects(Connection Factory
& Destinations)
is possible in WebLogic server?
According to Weblogic it only binds JMS Object at the startup of the server
using
a Startup class?
Thanks a million -
Administering AQ JMS objects in JNDI
I had used several JMS providers before like MQ and Tibco but I'm new to Oracle AQ.
I'm trying to write a JMS client program which lookups a connection factory and a destination from a JNDI context, and then create a session and publish JMS messages.
However, I cannot find a way to register JMS objects in JNDI. The sample programs provided by Oracle use a JMS session to create destination objects, which means they're not portable to other messaging system.
Questions:
1. Is there a way to administrate JMS objects in JNDI context in version 8.1.7?
2. I did search the forum and it seems like looking up JMS objects from JNDI is available on Oracle 9i. Is that true? And what administration tool am I supposed to use?
Thanks,
AndyHi,
I am not sure with OSB. I never seen the face of it. But when you say you are not able to see the subscriber in the table then you cannot consume the message.
Can quickly create AQJMS adapter service in bpel and select your topic and deploy the service in SOA server. Once it deploy go to the aq$my_topic1_s check if you able to see or not. And also try de-queue a message from the same topic.
I am using JMS Transport for Proxy Service and i have enabled the durable subscriber option as well. Please tell me how the entries in the subscribers table gets added.
You no need to do any thing. Just deploy your service and after that you should able to see record in the table. If record is not created then connection is not established between Topic and your service.
I have doubt with the endpoints only
jms://localhost:8011/aqjms.XATopicConnectionFactory/AqTopic
Your JNDI name for connection factories given as aqjms/XATopicConnectionFactory and here its aqjms.XATopicConnectionFactory. Can you check it.
Apart of this everthing looks same. Try above and let us know it.
Regards,
Tarak.
Edited by: Tarak on Nov 1, 2012 3:36 PM -
Transform JMS objects to XML in ESB
All,
Is there a possibility of converting the JMS objects into XML using adapter services in ESB?
Thanks,
M.RajeshRajesh,
If it is Text message(payload) then you can do that,
but for Java objects i never came across any thing? -
Is Object Table a true Reference Table?
Does Object table only contain reference of each row objects within the table?
Does the Object Table take up the same disk space as compare to relational table with the same number of rows?
Your help in the above two questions is very appreciated!
Fred.
nullVB.Net is object oriented in the same sense as C++ is. It provides objects but doesn't require them. Java goes further by requiring that all code must be in classes and Smalltalk goes all the way by treating primitive types as objects as well.
VB.Net is much more object oriented than VB6, which didn't have classes but did have components. All of VB, C# and Managed C++ run under the Common Language Runtime so share a lot of structure. -
FBR2 post with reference without copying XREF1 + XREF2
Hello experts,
Is there a way to use FBR2 (post with reference) without copying XREF1 + XREF2 to the the new document ?
Thank you in advance,
DanThank you Mauri,
The problem is that if I will use substitution I might delete data that the user entered in XREF1+2,
while my goal is to delete only the data that was copied from the original document.
Regards,
Dan -
Copying an object not it's reference
Hi,
is there a function provided by the java API that allows you to copy an object into a new instance as opposed to just copying the reference to that object?You could use the clone() method. Refer the documentation for more help.
Alternatively, you could write the object to an java.io.ObjectOuputStream and read it from java.io.ObjectInputStream.
This will give you the copy of the object written to ObjectOutputStream.
-Manish. -
All objects are inactive in derived roles (copied from existing derived role)
I need to create more than 1000 derived roles, from existing reference roles.
Reference roles are also derived roles. So I executed LSMW for mass copy.
Eg: Reference role XYZ with parent role XXX
New role(ABC) copied from XYZ ,so ABC is having same values as XYZ and master role also.
Now the issue is after executing the LSMW all roles are copied to new roles, but all objects are inactive in new roles .I am not able to activate the object also.Hi Colleen,
Issue: I have derived roles for plant XX, now I want to derive same set of roles for YY plant. My reference plant is XX, So what am doing is copying the XX roles to New roles (YY) .No change in object or description, just copy role to new role. And I am using LSMW for the same.
After copy the roles, I will change the description and profile using another script and manually change the org values. But after copy the roles to new roles using script all objects are inactive (In red color),if am selecting the org tab ,I will get message like ,no org levels maintained. Because all objects are inactive .And there are no options (edit) to activate the objects or maintain the fields.
Thanks,
Anusha -
Serializing & Deserializing objects through ObjectMessage
Hi,
I'm having trouble sending objects/instances of a class (Data) through the message queue. I also made Data to be serializable.
public class Data implements Serializable {
}The following are snippets of code from the Message producer side:
objectMessage = mySess.createObjectMessage();
MessageProducer myMsgProducer = mySess.createProducer(myQueue);
Data e = new Data();
objectMessage.setObject(e);
myMsgProducer.send(objectMessage);And the following are snippets of code from the message consumer:
public void onMessage(Message message) {
if(message instanceof ObjectMessage ){
try{
ObjectMessage objMsg = (ObjectMessage) message;
Data myData = (Data)objMsg.getObject();
catch(JMSException e){
System.out.println("Exception occured: " + e.toString());
}The result of attempting to cast the objMsg to a Data is an exception thrown.
i did noticed however, that when I was debugging the message consumer, that the byteArrayInputStream values for both message and objMsg are null meaning that the data is not being sent or received. Any help would be greatly appreciated, thanks!
Edited by: 883631 on Sep 13, 2011 4:09 PM
Edited by: EJP on 14/09/2011 09:22: added {noformat}{noformat} tags. Please use them.Sorry, the exception thrown is:
Exception occured: com.sun.messaging.jms.MessageFormatException: [C4015]: Deserialize message failed. - cause: java.lang.ClassNotFoundException: MsgSender.Data
Sep 14, 2011 8:53:50 AM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
WARNING: [I500]: Caught JVM Exception: java.lang.ClassNotFoundException: MsgSender.Data
where MsgSender is the name of the project that produces the messages to the queue.
Data is the class that is both on the sender and receiver side, and the exception is thrown as a result of casting the object message back into a type Data.
Data myData = (Data)objMsg.getObject();
I hope this isn't too confusing. What I'm wondering is if there are extra steps to serializing your object or if the ObjectMessage's setObject method automatically does that for you so as long as you declare your class to implement Serializable. And if that's the case, how do you deserialize it back to the original object?
Thank you -
3D Picture Control: Find Object function closes scene reference when it has no children
I am using Labview 8.2
The "Find Object.vi" function is causing me some problems as it is closing the reference to the Scene Object passed into it when that Scene object does not contain any child objects. The attached screengrab shows the relevant part of the "Find Object.vi" function - the input (parent) reference is added to the front of the queue, and if the "ObjectCount" method returns 0, then the reference is closed (and hence unavailable from that point on. By removing the "Close Reference" function, the reference remains valid, but I am unsure of what other consequences this would have (and I don't like editing NI VI's!).
I have attached an example VI to illustrate this, hopefully it is clear enough what is happening. Basically, I want to be able to check for the existence of a child object without risking losing the parent object's reference. I could always write my own but perhaps the "Find Object.vi" function is incorrect?
Attachments:
Find Object Testing.vi 30 KB
Find Object_closingreference.png 5 KBpauldavey,
I agree with you again that the behavior of "Find Object.vi" does not appear to be optimal. It is almost as if it should be called "Select Object.vi" as it doesn't appear to be handling the case in which no objects are found very well.
The help file states that it:
Takes a 3D scene reference
and an object name and returns the first object in the scene with a matching
name.
As it's behavior is not defined for the event that a matching object is not found I would recommend writing your own VI to perform the function you need.
I plan on looking a little further into this and I may end up filing a CAR for this behavior too.
We appreciate the feedback and I apologize for the difficulties this VI is causing you.
Regards,
Simon H
Applications Engineer
National Instruments -
[SOLVED] ADF BC : View Object "second level" Entity reference issue
hi
If I insert a row in a View Object that uses "two levels" of Entity references, the attributes of the Entity on the "second level" don't get a value.
Consider these tables:
MY_ROW (MY_ROW_ID, MY_ROW_STUFF, MY_ROW_LU1_ID)
MY_ROW_LU1 (MY_ROW_LU1_ID, MY_ROW_LU1_STUFF, MY_ROW_LU1_LU1_ID)
MY_ROW_LU1_LU1 (MY_ROW_LU1_LU1_ID, MY_ROW_LU1_LU1_STUFF)
Where MY_ROW.MY_ROW_LU1_ID is a "look-up" in MY_ROW_LU1 and MY_ROW_LU1.MY_ROW_LU1_LU1_ID is a "second level look-up" in MY_ROW_LU1_LU1.
I created default Entities and Associations on these tables and a View Object that uses all 3 Entities (MyRow as Updatable, MyRowLu1 and MyRowLu1Lu1 as Reference).
See example code in
http://verveja.footsteps.be/~verveja/files/oracle/ViewObjectEntityReferenceIssue-v0.03.zip
(contains no Java code, all out-of-the-box ADF BC)
problem scenario:
If run the MyRowService Application Module in the Oracle Business Component Browser and "open" the MyRowViewAll View Object instance, I get the rows and their related "look-up values".
If I click the "Insert a new record" button and fill out values for MyRowId, MyRowStuf and MyRowLu1IdEntity, I only get "look-up" values for the "first level". While the "second level" stays empty.
For example, a MyRowLu1IdEntity of "2003" gives a MyRowLu1Stuff value of "2003 stuff", but no value in MyRowLu1Lu1Stuff.
What am I doing wrong? What should I change to also get a value in the "second level" MyRowLu1Lu1Stuff attribute?
many thanks
Jan VerveckenJan,
If you create a view object on Emp and Dept, with Dept as a reference entity, you might choose to build the view object to only include the:
Emp.Empno (required, since it's the PK of Emp entity usage)
Emp.Ename (included since you want to show the ename)
Dept.Deptno (required, since it's the PK of the Dept entity usage)
Dept.Dname (included since you want to show the dname)
The wizard enforces the inclusion of the required attributes above.
When you run this view object, a join is performed and you see the reference data.
Now, if you want to allow the user to UPDATE the reference data, you need to add one more attribute to the list of attributes:
Emp.Empno
Emp.Ename
Emp.Deptno (To allow user to change Deptno employee belongs to)Dept.Deptno
Dept.Dname
At this point, not only is the join performed for you, but the ADF BC reference mechanism reacts to any modification of the Emp.Deptno attribute, correctly showing the reference information for that new foreign-key-referenced department (even before commiting and requerying, at which time the SQL join would pickup that correct, related information).
The "second level" problem you describe in this thread is simply the same issue described here as a master/first-level-detail situation, taken to its logical next step. If you want the end-user to be able to change the second-level detail to which the first-level-detail is associated, you need to include the first-level-detail's foreign key attributes in the view object's select list. Otherwise, there is no foreign key attribute whose value-change event the framework can react to in order to coordinate the related reference data in the row.
I've blogged a link to a working example of a four-level reference information view object here:
http://radio.weblogs.com/0118231/2007/05/09.html#a818
based on the HR schema. -
Non-Latin is converted into entity reference in "Copy Text" of Extract
The Japanese (other than Latin) text which I copied in a clipboard is converted into entity reference when I perform "copy text" in a letter layer using Extract for Brackets.
Is this problem a known thing? This does not rise in Extract of Creative Clouds, Dream Weaver.
An example:
Oh, it is → あ
아 → 아
أ نا ← أناHi Bernard,
This is really a 'browser issue' (which is probably not what you wanted to hear). Since it's up to the browser how it handles copy/paste. -
InDesign could create styles automatically. If I am copying and paste an object or paragraph - that means I will be using it in multiple pages and consequently be making changes to it. I know I can always create a syle for all my elements, but having that feature build-in would be great. Especially for the designers like me who works on small documents. Great Forum!
Thanks!InDesign make it really easy for you to create styles. I just believe that having it as an automatic feature (of course, an optional feature) would save time when working in small - mini publications, where there is really no need to create syles . Just my thought.
Maybe you are looking for
-
Problem with opening doc. files in pages '09
Hello, can anybody help me, ever since i installed " snow leopard" v10.6.2, pages '09 doesn't open doc. files ( word ) anymore. Even documents produced in pages en ""saved as" a word document can't be opened again. Keep receiving pop up whit message
-
I cannot sync my iPod. I keep getting the following messagei: AppleSyncNotifier.exe. entry point not fond. The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll Help!
-
Importing class from different directory
Hi, Can anyone tell me how to import a class from a different directory? I have a DGenerator class in ./generator directory. I have tried Import generator.DGenerator; to use the DGenerator class. However. I got the error: cannot access generator.DGen
-
The left side of my screen is not responding to any touch and I have tried all the troubleshooting suggestions (reboot, restore, etc.). I cannot 'slide to open' my Ipod and I cannot enter my password on the left side of the screen but the right side
-
Hi All, While i excute the RIDC code to retrieve the information using the COLLECTION_INFO service. i got the following error. Error: Event generated by user 'weblogic' at host 'CIS'. Unable to display virtual folder information. Unable to open folde